File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ class ContextifyScript : public BaseObject {
524
524
else if (produce_cached_data)
525
525
compile_options = ScriptCompiler::kProduceCodeCache ;
526
526
527
- Local <UnboundScript> v8_script = ScriptCompiler::CompileUnbound (
527
+ MaybeLocal <UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript (
528
528
env->isolate (),
529
529
&source,
530
530
compile_options);
@@ -536,7 +536,8 @@ class ContextifyScript : public BaseObject {
536
536
try_catch.ReThrow ();
537
537
return ;
538
538
}
539
- contextify_script->script_ .Reset (env->isolate (), v8_script);
539
+ contextify_script->script_ .Reset (env->isolate (),
540
+ v8_script.ToLocalChecked ());
540
541
541
542
if (compile_options == ScriptCompiler::kConsumeCodeCache ) {
542
543
args.This ()->Set (
You can’t perform that action at this time.
0 commit comments