Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: test/inspector/debugger/step-into-nested-arrow.js

Issue 2751573003: [debugger] correctly find inner function scope. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | test/inspector/debugger/step-into-nested-arrow-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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);
OLDNEW
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | test/inspector/debugger/step-into-nested-arrow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698