Skip to content

Commit b271cc5

Browse files
Jungku Leetargos
Jungku Lee
authored andcommitted
src: refactor GetCreationContext calls
PR-URL: #51367 Refs: #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>
1 parent 29492e2 commit b271cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module_wrap.cc

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

0 commit comments

Comments
 (0)