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; |
} |