| 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('Checks that stepInto nested arrow function doesn\'t produce c
rash.'); |
| 6 |
| 7 InspectorTest.setupScriptMap(); |
| 8 InspectorTest.addScript(`const mult = (x) => (y) => |
| 9 y ? mult(x * y) : x; |
| 10 //# sourceURL=test.js`); |
| 11 |
| 12 Protocol.Debugger.onPaused(message => { |
| 13 InspectorTest.logCallFrameSourceLocation(message.params.callFrames[0]); |
| 14 Protocol.Debugger.stepInto(); |
| 15 }) |
| 16 |
| 17 Protocol.Debugger.enable(); |
| 18 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 1 }) |
| 19 .then(() => Protocol.Runtime.evaluate({ expression: 'mult(5)(4)()' })) |
| 20 .then(InspectorTest.completeTest); |
| OLD | NEW |