| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| env->domain_string(), | ||
| env->domain_array()->Get(0)).FromJust(); | ||
| env->domain_array()->Get(env->context(), 0).ToLocalChecked()) | ||
| .FromJust(); |
There was a problem hiding this comment.
actually, indentation nit: 4 spaces ;)
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks, done :)
Sorry, something went wrong.
| obj->Set(env->domain_string(), env->domain_array()->Get(0)); | ||
| if (env->in_domain()) { | ||
| obj->Set(env->domain_string(), | ||
| env->domain_array()->Get(env->context(), 0).ToLocalChecked()); |
There was a problem hiding this comment.
Any reason not to call .FromJust() here and below as well (à la RandomBytesBuffer())?
Sorry, something went wrong.
There was a problem hiding this comment.
I added checks to the result of Set() :)
Sorry, something went wrong.
Sorry, something went wrong.
|
This could likely benefit from a test. |
Sorry, something went wrong.
|
Landed in 1c36243.
@jasnell I considered adding one, but I was unable to cause a segmentation fault from JavaScript without using an undocumented internal API (process._setupDomainUse) in a very hackish way, and I didn't think it was a good idea to write a test revolving around that. CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/7699/ |
Sorry, something went wrong.
|
This does not land cleanly in LTS. Please feel free to manually backport by following the guide. Please also feel free to replace do-not-land if it is being backported |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #14519
I intentionally did not fix this in cares_wrap.cc as @addaleax already did that in #14518 (assuming it gets merged).
Checklist
Affected core subsystem(s)
crypto