@@ -886,16 +886,15 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
886886 host_defined_options->Set (
887887 isolate, loader::HostDefinedOptions::kID , id_symbol);
888888
889- ScriptOrigin origin (isolate,
890- filename,
891- line_offset, // line offset
892- column_offset, // column offset
893- true , // is cross origin
894- -1 , // script id
895- Local<Value>(), // source map URL
896- false , // is opaque (?)
897- false , // is WASM
898- false , // is ES Module
889+ ScriptOrigin origin (filename,
890+ line_offset, // line offset
891+ column_offset, // column offset
892+ true , // is cross origin
893+ -1 , // script id
894+ Local<Value>(), // source map URL
895+ false , // is opaque (?)
896+ false , // is WASM
897+ false , // is ES Module
899898 host_defined_options);
900899 ScriptCompiler::Source source (code, origin, cached_data);
901900 ScriptCompiler::CompileOptions compile_options =
@@ -1006,7 +1005,7 @@ MaybeLocal<Function> CompileFunction(Local<Context> context,
10061005 Local<String> filename,
10071006 Local<String> content,
10081007 std::vector<Local<String>>* parameters) {
1009- ScriptOrigin script_origin (context-> GetIsolate (), filename, 0 , 0 , true );
1008+ ScriptOrigin script_origin (filename, 0 , 0 , true );
10101009 ScriptCompiler::Source script_source (content, script_origin);
10111010
10121011 return ScriptCompiler::CompileFunction (context,
@@ -1116,7 +1115,6 @@ bool ContextifyScript::EvalMachine(Local<Context> context,
11161115 }
11171116
11181117 TryCatchScope try_catch (env);
1119- Isolate::SafeForTerminationScope safe_for_termination (env->isolate ());
11201118 ContextifyScript* wrapped_script;
11211119 ASSIGN_OR_RETURN_UNWRAP (&wrapped_script, args.Holder (), false );
11221120 Local<UnboundScript> unbound_script =
@@ -1270,8 +1268,7 @@ void ContextifyContext::CompileFunction(
12701268 Local<PrimitiveArray> host_defined_options =
12711269 loader::ModuleWrap::GetHostDefinedOptions (isolate, id_symbol);
12721270
1273- ScriptOrigin origin (isolate,
1274- filename,
1271+ ScriptOrigin origin (filename,
12751272 line_offset, // line offset
12761273 column_offset, // column offset
12771274 true , // is cross origin
@@ -1452,8 +1449,7 @@ static MaybeLocal<Function> CompileFunctionForCJSLoader(Environment* env,
14521449 Local<Symbol> symbol = env->vm_dynamic_import_default_internal ();
14531450 Local<PrimitiveArray> hdo =
14541451 loader::ModuleWrap::GetHostDefinedOptions (isolate, symbol);
1455- ScriptOrigin origin (isolate,
1456- filename,
1452+ ScriptOrigin origin (filename,
14571453 0 , // line offset
14581454 0 , // column offset
14591455 true , // is cross origin
0 commit comments