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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js

Issue 2198443004: [DevTools] Fix location.script().sourceURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
index ab89ed06a24b96a872b24e24048ce17a296cab89..78f6ebd7e0c9f633cbd13171b33ed82c6728f53d 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
@@ -157,7 +157,7 @@ WebInspector.DebuggerWorkspaceBinding.prototype = {
createCallFrameLiveLocation: function(location, updateDelegate, locationPool)
{
var target = location.target();
- this._ensureInfoForScript(location.script());
+ this._ensureInfoForScript(/** @type {!WebInspector.Script} */(location.script()));
lushnikov 2016/07/30 01:03:06 why are you sure there's a script?
kozy 2016/07/30 01:19:03 I'll address it in followup: crbug.com/632933
var liveLocation = this.createLiveLocation(location, updateDelegate, locationPool);
this._registerCallFrameLiveLocation(target, liveLocation);
return liveLocation;

Powered by Google App Engine
This is Rietveld 408576698