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 {
525
525
else if (produce_cached_data)
526
526
compile_options = ScriptCompiler::kProduceCodeCache ;
527
527
528
- Local <UnboundScript> v8_script = ScriptCompiler::CompileUnbound (
528
+ MaybeLocal <UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript (
529
529
env->isolate (),
530
530
&source,
531
531
compile_options);
@@ -537,7 +537,8 @@ class ContextifyScript : public BaseObject {
537
537
try_catch.ReThrow ();
538
538
return ;
539
539
}
540
- contextify_script->script_ .Reset (env->isolate (), v8_script);
540
+ contextify_script->script_ .Reset (env->isolate (),
541
+ v8_script.ToLocalChecked ());
541
542
542
543
if (compile_options == ScriptCompiler::kConsumeCodeCache ) {
543
544
args.This ()->Set (
You can’t perform that action at this time.
0 commit comments