| 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 | 5 // Flags: --harmony-async-await |
| 6 | 6 |
| 7 Debug = debug.Debug | 7 Debug = debug.Debug |
| 8 | 8 |
| 9 let events = 0; | 9 let events = 0; |
| 10 | 10 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 consumer(producer); | 201 consumer(producer); |
| 202 %RunMicrotasks(); | 202 %RunMicrotasks(); |
| 203 | 203 |
| 204 Debug.setListener(null); | 204 Debug.setListener(null); |
| 205 if (caught) { | 205 if (caught) { |
| 206 Debug.clearBreakOnException(); | 206 Debug.clearBreakOnException(); |
| 207 } else { | 207 } else { |
| 208 Debug.clearBreakOnUncaughtException(); | 208 Debug.clearBreakOnUncaughtException(); |
| 209 } | 209 } |
| 210 if (expectedEvents != events) { | 210 if (expectedEvents != events) { |
| 211 print(`producer ${producer} consumer ${consumer} expectedEvents ` + | 211 %AbortJS(`producer ${producer} consumer ${consumer} expectedEvents ` + |
| 212 `${expectedEvents} caught ${caught} events ${events}`); | 212 `${expectedEvents} caught ${caught} events ${events}`); |
| 213 quit(1); | |
| 214 } | 213 } |
| 215 } | 214 } |
| 216 } | 215 } |
| OLD | NEW |