Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js

Issue 2247483003: [DevTools] Removed isInternalScript flag from protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-internal-script-flag
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
};
}

Powered by Google App Engine
This is Rietveld 408576698