Skip to content

Commit b25f2cd

Browse files
author
Jungku Lee
authored
src: refactor GetCreationContext calls
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]>
1 parent 15b38fa commit b25f2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
121121
Local<Context> context;
122122
ContextifyContext* contextify_context = nullptr;
123123
if (args[1]->IsUndefined()) {
124-
context = that->GetCreationContext().ToLocalChecked();
124+
context = that->GetCreationContextChecked();
125125
} else {
126126
CHECK(args[1]->IsObject());
127127
contextify_context = ContextifyContext::ContextFromContextifiedSandbox(

0 commit comments

Comments
 (0)