Skip to content

Commit

Permalink
src: refactor GetCreationContext calls
Browse files Browse the repository at this point in the history
PR-URL: #51367
Refs: #51287
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Jungku Lee authored and richardlau committed Mar 25, 2024
1 parent 4ce2ecb commit 50ec55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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(
Expand Down

0 comments on commit 50ec55c

Please sign in to comment.