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

Side by Side Diff: test/debugger/debug/es8/async-debug-step-next-constant.js

Issue 2621173002: Remove --harmony-async-await runtime flag (Closed)
Patch Set: Update test ref Created 3 years, 11 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
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: --harmony-async-await
6
7 var Debug = debug.Debug; 5 var Debug = debug.Debug;
8 var step_count = 0; 6 var step_count = 0;
9 7
10 function listener(event, execState, eventData, data) { 8 function listener(event, execState, eventData, data) {
11 if (event != Debug.DebugEvent.Break) return; 9 if (event != Debug.DebugEvent.Break) return;
12 try { 10 try {
13 var line = execState.frame(0).sourceLineText(); 11 var line = execState.frame(0).sourceLineText();
14 print(line); 12 print(line);
15 var [match, expected_count, step] = /\/\/ B(\d) (\w+)$/.exec(line); 13 var [match, expected_count, step] = /\/\/ B(\d) (\w+)$/.exec(line);
16 assertEquals(step_count++, parseInt(expected_count)); 14 assertEquals(step_count++, parseInt(expected_count));
(...skipping 13 matching lines...) Expand all
30 await // B3 StepNext 28 await // B3 StepNext
31 5; // B2 StepNext 29 5; // B2 StepNext
32 return a; // B4 StepNext 30 return a; // B4 StepNext
33 } // B5 Continue 31 } // B5 Continue
34 32
35 f(); 33 f();
36 34
37 %RunMicrotasks(); 35 %RunMicrotasks();
38 36
39 assertEquals(6, step_count); 37 assertEquals(6, step_count);
OLDNEW
« no previous file with comments | « test/debugger/debug/es8/async-debug-step-next.js ('k') | test/debugger/debug/es8/async-debug-step-out.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698