OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 InspectorTest.log('getPossibleBreakpoints should not crash during lazy compilati
on (crbug.com/715334)'); |
| 6 |
| 7 InspectorTest.addScript(` |
| 8 function test() { continue; } |
| 9 //# sourceURL=test.js`); |
| 10 |
| 11 (async function test() { |
| 12 Protocol.Debugger.enable(); |
| 13 let script = await Protocol.Debugger.onceScriptParsed(); |
| 14 InspectorTest.logMessage(script); |
| 15 let scriptId = script.params.scriptId; |
| 16 Protocol.Debugger.onScriptFailedToParse(msg => { |
| 17 InspectorTest.logMessage(msg); |
| 18 if (msg.params.scriptId !== script.params.scriptId) { |
| 19 InspectorTest.log('Failed script to parse event has different scriptId'); |
| 20 } else { |
| 21 InspectorTest.log('One script is reported twice'); |
| 22 } |
| 23 }); |
| 24 let response = await Protocol.Debugger.getPossibleBreakpoints({ |
| 25 start: {scriptId, lineNumber: 0, columnNumber: 0}}); |
| 26 InspectorTest.logMessage(response); |
| 27 InspectorTest.completeTest(); |
| 28 })(); |
OLD | NEW |