Index: test/inspector/debugger/get-possible-breakpoints.js |
diff --git a/test/inspector/debugger/get-possible-breakpoints.js b/test/inspector/debugger/get-possible-breakpoints.js |
index 640c3e61eaf9aa6f75141e82f5d781b93b94ddbb..bd2b9b4f668d96d8b639de341ccbfb7ce354541e 100644 |
--- a/test/inspector/debugger/get-possible-breakpoints.js |
+++ b/test/inspector/debugger/get-possible-breakpoints.js |
@@ -174,7 +174,7 @@ function waitForPossibleBreakpointsOnPause(source, start, end, next) { |
function setAllBreakpoints(message) { |
var promises = []; |
for (var location of message.result.locations) |
- promises.push(Protocol.Debugger.setBreakpoint({ location: location }).then(checkBreakpoint)); |
+ promises.push(Protocol.Debugger.setBreakpoint({ location: location.location }).then(checkBreakpoint)); |
return Promise.all(promises); |
} |
@@ -202,8 +202,8 @@ function dumpAllLocations(message, source, lineOffset, columnOffset) { |
var sourceLines = source.split('\n') |
var lineOffsets = Array(sourceLines.length).fill(0); |
for (var location of message.result.locations) { |
- var lineNumber = location.lineNumber - lineOffset; |
- var columnNumber = lineNumber !== 0 ? location.columnNumber : location.columnNumber - columnOffset; |
+ var lineNumber = location.location.lineNumber - lineOffset; |
+ var columnNumber = lineNumber !== 0 ? location.location.columnNumber : location.location.columnNumber - columnOffset; |
var line = sourceLines[lineNumber] || ''; |
var offset = lineOffsets[lineNumber]; |
line = line.slice(0, columnNumber + offset) + '#' + line.slice(columnNumber + offset); |