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

Unified Diff: src/inspector/debugger-script.js

Issue 2415073003: [debug] [reland] Consistently use script from FrameMirror (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/debugger-script.js
diff --git a/src/inspector/debugger-script.js b/src/inspector/debugger-script.js
index 98910d69df7167d0bb7e1ff8b9cd5b777cf6ec23..4746ee821ee18128c79c766fd513628d769baaa3 100644
--- a/src/inspector/debugger-script.js
+++ b/src/inspector/debugger-script.js
@@ -516,7 +516,7 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
{
if (!details) {
var scopeObjects = ensureScopeChain();
- var script = ensureFuncMirror().script();
+ var script = frameMirror.script();
kozy 2016/10/13 16:06:18 Please store scriptMirror at the beginning of this
Clemens Hammacher 2016/10/14 10:22:50 Done. I also removed two checks for the existence
/** @type {!Array<Scope>} */
var scopes = [];
for (var i = 0; i < scopeObjects.length; ++i) {
@@ -575,7 +575,7 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
function ensureLocation()
{
if (!location) {
- var script = ensureFuncMirror().script();
+ var script = frameMirror.script();
if (script)
location = script.locationFromPosition(sourcePosition, true);
if (!location)
@@ -620,7 +620,7 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
*/
function sourceID()
{
- var script = ensureFuncMirror().script();
+ var script = frameMirror.script();
return script && script.id();
}
« no previous file with comments | « no previous file | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698