mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: refactor GetCreationContext calls
PR-URL: https://github.com/nodejs/node/pull/51367 Refs: https://github.com/nodejs/node/pull/51287 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
29492e2c88
commit
b271cc5b16
1 file changed
+1
-1
+1
-1
@@ -120,7 +120,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
|
||||
Local<Context> context;
|
||||
ContextifyContext* contextify_context = nullptr;
|
||||
if (args[1]->IsUndefined()) {
|
||||
context = that->GetCreationContext().ToLocalChecked();
|
||||
context = that->GetCreationContextChecked();
|
||||
} else {
|
||||
CHECK(args[1]->IsObject());
|
||||
contextify_context = ContextifyContext::ContextFromContextifiedSandbox(
|
||||
|
||||
Reference in new issue
Block a user