Index: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html b/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html |
index 8658d0f0848f7dfa0cb17304d7179dc3cbb37e1f..26900aa6e03c7a0bb1936f177fc11f5ef02389aa 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html |
+++ b/third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html |
@@ -89,7 +89,8 @@ function test() |
function liveLocationsCount() |
{ |
- return Bindings.debuggerWorkspaceBinding._ensureInfoForScript(script)._locations.size; |
+ var scriptInfo = Bindings.debuggerWorkspaceBinding._ensureInfoForScript(script); |
+ return scriptInfo._locations ? scriptInfo._locations.size : 0; |
} |
} |