We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023c317 commit 16b0a8cCopy full SHA for 16b0a8c
src/node_contextify.cc
@@ -524,7 +524,7 @@ class ContextifyScript : public BaseObject {
524
else if (produce_cached_data)
525
compile_options = ScriptCompiler::kProduceCodeCache;
526
527
- Local<UnboundScript> v8_script = ScriptCompiler::CompileUnbound(
+ MaybeLocal<UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript(
528
env->isolate(),
529
&source,
530
compile_options);
@@ -536,7 +536,8 @@ class ContextifyScript : public BaseObject {
536
try_catch.ReThrow();
537
return;
538
}
539
- contextify_script->script_.Reset(env->isolate(), v8_script);
+ contextify_script->script_.Reset(env->isolate(),
540
+ v8_script.ToLocalChecked());
541
542
if (compile_options == ScriptCompiler::kConsumeCodeCache) {
543
args.This()->Set(
0 commit comments