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

Side by Side Diff: test/debugger/debug/harmony/async-debug-step-nested.js

Issue 2487673002: [debugger] Basic scope functionality and exception events in wrapper (Closed)
Patch Set: Formatting Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 // Flags: --expose-debug-as debug --allow-natives-syntax --harmony-async-await 5 // Flags: --harmony-async-await
6 6
7 var Debug = debug.Debug; 7 var Debug = debug.Debug;
8 var step_count = 0; 8 var step_count = 0;
9 9
10 function listener(event, execState, eventData, data) { 10 function listener(event, execState, eventData, data) {
11 if (event != Debug.DebugEvent.Break) return; 11 if (event != Debug.DebugEvent.Break) return;
12 try { 12 try {
13 var line = execState.frame(0).sourceLineText(); 13 var line = execState.frame(0).sourceLineText();
14 print(line); 14 print(line);
15 var [match, expected_count, step] = /\/\/ B(\d) (\w+)$/.exec(line); 15 var [match, expected_count, step] = /\/\/ B(\d) (\w+)$/.exec(line);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return b; 49 return b;
50 } 50 }
51 51
52 f1(); 52 f1();
53 53
54 late_resolve(3); 54 late_resolve(3);
55 55
56 %RunMicrotasks(); 56 %RunMicrotasks();
57 57
58 assertEquals(9, step_count); 58 assertEquals(9, step_count);
OLDNEW
« no previous file with comments | « test/debugger/debug/harmony/async-debug-step-in-and-out.js ('k') | test/debugger/debug/harmony/async-debug-step-next.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698