-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: pass context to Get() operations for cares_wrap #16641
Conversation
src/cares_wrap.cc
Outdated
int fam = elm->Get(env->context(), 0).ToLocalChecked()->Int32Value(); | ||
node::Utf8Value ip(env->isolate(), | ||
elm->Get(env->context(), 1).ToLocalChecked()); | ||
int port = elm->Get(env->context(), 2).ToLocalChecked()->Int32Value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, I think it would make sense to do the same for Int32Value
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Thanks!
Using Get() without the context argument will soon be deprecated. This also passed context to Int32Value() operations as well.
Updated. New CI: https://ci.nodejs.org/job/node-test-pull-request/11116/ |
Using Get() without the context argument will soon be deprecated. This also passed context to Int32Value() operations as well. PR-URL: #16641 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 635d064 |
Using Get() without the context argument will soon be deprecated. This also passed context to Int32Value() operations as well. PR-URL: nodejs#16641 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
@evanlucas this doesn't land cleanly on v6.x does it make sense to backport? |
Using Get() without the context argument will soon be deprecated. This also passed context to Int32Value() operations as well. PR-URL: #16641 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Using Get() without the context argument will soon be deprecated.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
src