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( |
| 6 'Checks that stepInto nested arrow function doesn\'t produce crash.'); |
| 7 |
| 8 InspectorTest.setupScriptMap(); |
| 9 InspectorTest.addScript(` |
| 10 const rec = (x) => (y) => |
| 11 rec(); |
| 12 //# sourceURL=test.js`); |
| 13 |
| 14 Protocol.Debugger.onPaused(message => { |
| 15 InspectorTest.log("paused"); |
| 16 InspectorTest.logCallFrames(message.params.callFrames); |
| 17 Protocol.Debugger.stepInto(); |
| 18 }) |
| 19 |
| 20 Protocol.Debugger.enable(); |
| 21 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 }) |
| 22 .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' })) |
| 23 .then(InspectorTest.completeTest); |
OLD | NEW |