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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html

Issue 2613643002: DevTools: migrate from external Maps to symbols in the bindings objects. (Closed)
Patch Set: review comments addressed. Created 3 years, 12 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/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html
index d716b6c307da6eb39d2881522cfe406112d63a74..16989e240fb71e90658c87e538f7d2fad7135e57 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/callstack-placards-discarded.html
@@ -55,9 +55,9 @@ var test = function()
function liveLocationsCount()
{
var count = 0;
- var infos = Bindings.debuggerWorkspaceBinding._targetToData.get(InspectorTest.debuggerModel.target()).scriptDataMap.valuesArray();
+ var infos = Object.values(InspectorTest.debuggerModel.scripts).map(script => script[Bindings.DebuggerWorkspaceBinding._ScriptInfoSymbol]).filter(info => !!info);
infos.forEach(function(info) {
- count += info._locations.size;
+ count += info._locations ? info._locations.size : 0;
});
return count;
}

Powered by Google App Engine
This is Rietveld 408576698