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 @@ -525,7 +525,7 @@ class ContextifyScript : public BaseObject {
525525 else if (produce_cached_data)
526526 compile_options = ScriptCompiler::kProduceCodeCache ;
527527
528- Local <UnboundScript> v8_script = ScriptCompiler::CompileUnbound (
528+ MaybeLocal <UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript (
529529 env->isolate (),
530530 &source,
531531 compile_options);
@@ -537,7 +537,8 @@ class ContextifyScript : public BaseObject {
537537 try_catch.ReThrow ();
538538 return ;
539539 }
540- contextify_script->script_ .Reset (env->isolate (), v8_script);
540+ contextify_script->script_ .Reset (env->isolate (),
541+ v8_script.ToLocalChecked ());
541542
542543 if (compile_options == ScriptCompiler::kConsumeCodeCache ) {
543544 args.This ()->Set (
You can’t perform that action at this time.
0 commit comments