| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 InspectorTest.log( | 5 let {session, contextGroup, Protocol} = InspectorTest.start( |
| 6 'Checks that stepInto nested arrow function doesn\'t produce crash.'); | 6 'Checks that stepInto nested arrow function doesn\'t produce crash.'); |
| 7 | 7 |
| 8 InspectorTest.setupScriptMap(); | 8 session.setupScriptMap(); |
| 9 InspectorTest.addScript(` | 9 contextGroup.addScript(` |
| 10 const rec = (x) => (y) => | 10 const rec = (x) => (y) => |
| 11 rec(); | 11 rec(); |
| 12 //# sourceURL=test.js`); | 12 //# sourceURL=test.js`); |
| 13 | 13 |
| 14 Protocol.Debugger.onPaused(message => { | 14 Protocol.Debugger.onPaused(message => { |
| 15 InspectorTest.log("paused"); | 15 InspectorTest.log("paused"); |
| 16 InspectorTest.logCallFrames(message.params.callFrames); | 16 session.logCallFrames(message.params.callFrames); |
| 17 Protocol.Debugger.stepInto(); | 17 Protocol.Debugger.stepInto(); |
| 18 }) | 18 }) |
| 19 | 19 |
| 20 Protocol.Debugger.enable(); | 20 Protocol.Debugger.enable(); |
| 21 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 }) | 21 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 }) |
| 22 .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' })) | 22 .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' })) |
| 23 .then(InspectorTest.completeTest); | 23 .then(InspectorTest.completeTest); |
| OLD | NEW |