Index: third_party/WebKit/LayoutTests/inspector/sources/formatter-js.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/formatter-js.html b/third_party/WebKit/LayoutTests/inspector/sources/formatter-js.html |
index d80d1f3dc541e9de9738be1dde50ac6a6ade330b..8f22c08225069d98dddf120622268060dbebf79c 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/sources/formatter-js.html |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/formatter-js.html |
@@ -18,7 +18,7 @@ |
var positions = []; |
for (var offset = originalContent.indexOf("{"); offset >= 0; offset = originalContent.indexOf("{", offset + 1)) |
positions.push(text.positionFromOffset(offset)); |
- var script = Bindings.debuggerWorkspaceBinding.uiLocationToRawLocations(uiSourceCode, 0, 0)[0].script(); |
+ var script = Bindings.debuggerWorkspaceBinding.uiLocationToRawLocation(uiSourceCode, 0, 0).script(); |
InspectorTest.addResult("Location mapping with formatted source:"); |
dumpLocations(positions); |