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: --harmony-async-await --expose-debug-as debug | 5 // Flags: --harmony-async-await |
6 | 6 |
7 var Debug = debug.Debug; | 7 var Debug = debug.Debug; |
8 var breakPointCount = 0; | 8 var breakPointCount = 0; |
9 | 9 |
10 function listener(event, exec_state, event_data, data) { | 10 function listener(event, exec_state, event_data, data) { |
11 if (event != Debug.DebugEvent.Break) return; | 11 if (event != Debug.DebugEvent.Break) return; |
12 ++breakPointCount; | 12 ++breakPointCount; |
13 try { | 13 try { |
14 if (breakPointCount === 1) { | 14 if (breakPointCount === 1) { |
15 assertEquals( | 15 assertEquals( |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 test(). | 131 test(). |
132 then(x => { | 132 then(x => { |
133 Debug.setListener(null); | 133 Debug.setListener(null); |
134 }). | 134 }). |
135 catch(error => { | 135 catch(error => { |
136 print(error.stack); | 136 print(error.stack); |
137 quit(1); | 137 quit(1); |
138 Debug.setListener(null); | 138 Debug.setListener(null); |
139 }); | 139 }); |
OLD | NEW |