| Index: test/inspector/debugger/wasm-get-breakable-locations.js
|
| diff --git a/test/inspector/debugger/wasm-get-breakable-locations.js b/test/inspector/debugger/wasm-get-breakable-locations.js
|
| index f947161b5ec1d8dd2da2f49b38b76699524afe0b..f03faaa24d976ed0c850364882131bdac456aa57 100644
|
| --- a/test/inspector/debugger/wasm-get-breakable-locations.js
|
| +++ b/test/inspector/debugger/wasm-get-breakable-locations.js
|
| @@ -89,7 +89,7 @@ function printFailure(message) {
|
|
|
| function printBreakableLocations(message, expectedScriptId, source) {
|
| var lines = source.split('\n');
|
| - var locations = message.result.locations;
|
| + var locations = message.result.locations.map(location => location.location);
|
| InspectorTest.log(locations.length + ' breakable location(s):');
|
| for (var i = 0; i < locations.length; ++i) {
|
| if (locations[i].scriptId != expectedScriptId) {
|
| @@ -122,7 +122,7 @@ function checkGetBreakableLocations(wasmScriptNr) {
|
| () => Protocol.Debugger.getPossibleBreakpoints(
|
| {start: {lineNumber: 0, columnNumber: 0, scriptId: scriptId}}))
|
| .then(printFailure)
|
| - .then(msg => (allBreakableLocations.push(...msg.result.locations), msg))
|
| + .then(msg => (allBreakableLocations.push(...msg.result.locations.map(l => l.location)), msg))
|
| .then(msg => printBreakableLocations(msg, scriptId, source))
|
| .then(
|
| () => InspectorTest.log(
|
|
|