| Index: third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js b/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| index b6e0996878a272c95eb7528444303dc22e0b4c7f..18beac0e03ceea0d897f7d584a6a38984c51eddd 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js
|
| @@ -45,11 +45,14 @@ Debug.clearBreakOnException();
|
| Debug.clearBreakOnUncaughtException();
|
|
|
| /**
|
| - * @param {!CompileEvent} eventData
|
| + * @param {?CompileEvent} eventData
|
| */
|
| DebuggerScript.getAfterCompileScript = function(eventData)
|
| {
|
| - return DebuggerScript._formatScript(eventData.script().value());
|
| + var script = eventData.script().value();
|
| + if (!script.is_debugger_script)
|
| + return DebuggerScript._formatScript(eventData.script().value());
|
| + return null;
|
| }
|
|
|
| /** @type {!Map<!ScopeType, string>} */
|
| @@ -180,6 +183,8 @@ DebuggerScript.getScripts = function(contextGroupId)
|
| if (script.context_data.indexOf(contextDataPrefix) !== 0)
|
| continue;
|
| }
|
| + if (script.is_debugger_script)
|
| + continue;
|
| result.push(DebuggerScript._formatScript(script));
|
| }
|
| return result;
|
| @@ -217,8 +222,7 @@ DebuggerScript._formatScript = function(script)
|
| endColumn: endColumn,
|
| executionContextId: DebuggerScript._executionContextId(script.context_data),
|
| // Note that we cannot derive aux data from context id because of compilation cache.
|
| - executionContextAuxData: DebuggerScript._executionContextAuxData(script.context_data),
|
| - isInternalScript: script.is_debugger_script
|
| + executionContextAuxData: DebuggerScript._executionContextAuxData(script.context_data)
|
| };
|
| }
|
|
|
|
|