| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 170b45402ad9b9c6c2b81efaa101f669a9897021..bdff68c46a6adedbf1a338ae2b2186c0ba63d326 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -9465,7 +9465,9 @@ MaybeLocal<UnboundScript> debug::CompileInspectorScript(Isolate* v8_isolate,
|
| result = i::Compiler::GetSharedFunctionInfoForScript(
|
| str, i::Handle<i::Object>(), 0, 0, origin_options,
|
| i::Handle<i::Object>(), isolate->native_context(), NULL, &script_data,
|
| - ScriptCompiler::kNoCompileOptions, i::INSPECTOR_CODE);
|
| + ScriptCompiler::kNoCompileOptions,
|
| + i::FLAG_compile_inspector_scripts_as_user ? i::NOT_NATIVES_CODE
|
| + : i::INSPECTOR_CODE);
|
| has_pending_exception = result.is_null();
|
| RETURN_ON_FAILED_EXECUTION(UnboundScript);
|
| }
|
|
|