diff options
Diffstat (limited to 'deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js')
-rw-r--r-- | deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js b/deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js index 2b4c8343d52..32182b58072 100644 --- a/deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js +++ b/deps/v8/test/inspector/debugger/asm-js-breakpoint-before-exec.js @@ -25,8 +25,6 @@ function testFunction() { debugger; } - %PrepareFunctionForOptimization(generateAsmJs); - %OptimizeFunctionOnNextCall(generateAsmJs); var fun = generateAsmJs(this, {'call_debugger': call_debugger}, undefined); fun(); } @@ -106,6 +104,13 @@ function handleScriptParsed(messageObject) var startLine = messageObject.params.startLine + 3; var endLine = messageObject.params.endLine; + if (startLine > endLine) { + InspectorTest.log( + `Terminating early: start line ${startLine} is after end line ${endLine}.` + ); + return; + } + InspectorTest.log('First script; assuming testFunction.'); InspectorTest.log( 'Flooding script with breakpoints for the lines ' + startLine + ' to ' + |