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

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

Issue 2721633004: [inspector] fixed crash on attempt to access empty scope_info on break (Closed)
Patch Set: better test 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/ast/scopes.cc ('k') | test/inspector/debugger/step-into-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('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);
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | test/inspector/debugger/step-into-arrow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698