| Index: test/inspector/debugger/step-into-arrow.js
|
| diff --git a/test/inspector/debugger/step-into-arrow.js b/test/inspector/debugger/step-into-arrow.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8b024592b8f8c0d149cd1d7be2924d70ffc35741
|
| --- /dev/null
|
| +++ b/test/inspector/debugger/step-into-arrow.js
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +InspectorTest.log('Checks that stepInto nested arrow function doesn\'t produce crash.');
|
| +
|
| +InspectorTest.setupScriptMap();
|
| +InspectorTest.addScript(`const mult = (x) => (y) =>
|
| + y ? mult(x * y) : x;
|
| +//# sourceURL=test.js`);
|
| +
|
| +Protocol.Debugger.onPaused(message => {
|
| + InspectorTest.logCallFrameSourceLocation(message.params.callFrames[0]);
|
| + Protocol.Debugger.stepInto();
|
| +})
|
| +
|
| +Protocol.Debugger.enable();
|
| +Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 1 })
|
| + .then(() => Protocol.Runtime.evaluate({ expression: 'mult(5)(4)()' }))
|
| + .then(InspectorTest.completeTest);
|
|
|