| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 170b45402ad9b9c6c2b81efaa101f669a9897021..68658ef193dd999211df2da57dd59e6a815518af 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_expose_inspector_scripts ? i::NOT_NATIVES_CODE
|
| + : i::INSPECTOR_CODE);
|
| has_pending_exception = result.is_null();
|
| RETURN_ON_FAILED_EXECUTION(UnboundScript);
|
| }
|
|
|