Skip to content

Commit

Permalink
src: refactor GetCreationContext calls
Browse files Browse the repository at this point in the history
PR-URL: nodejs#51367
Refs: nodejs#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 marco-ippolito committed Jan 10, 2024
1 parent c63f465 commit 8d7bd70
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 @@ -121,7 +121,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 8d7bd70

Please sign in to comment.