OLD | NEW |
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: --expose-debug-as debug --allow-natives-syntax --harmony-async-await |
6 // Flags: --no-ignition-generators | |
7 | 6 |
8 var Debug = debug.Debug; | 7 var Debug = debug.Debug; |
9 var step_count = 0; | 8 var step_count = 0; |
10 | 9 |
11 function listener(event, execState, eventData, data) { | 10 function listener(event, execState, eventData, data) { |
12 if (event != Debug.DebugEvent.Break) return; | 11 if (event != Debug.DebugEvent.Break) return; |
13 try { | 12 try { |
14 var line = execState.frame(0).sourceLineText(); | 13 var line = execState.frame(0).sourceLineText(); |
15 print(line); | 14 print(line); |
16 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 Loading... |
50 return b; | 49 return b; |
51 } | 50 } |
52 | 51 |
53 f1(); | 52 f1(); |
54 | 53 |
55 late_resolve(3); | 54 late_resolve(3); |
56 | 55 |
57 %RunMicrotasks(); | 56 %RunMicrotasks(); |
58 | 57 |
59 assertEquals(9, step_count); | 58 assertEquals(9, step_count); |
OLD | NEW |