| 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 | |
| 6 | 5 |
| 7 | 6 |
| 8 Debug = debug.Debug | 7 Debug = debug.Debug |
| 9 | 8 |
| 10 let error = false; | 9 let error = false; |
| 11 let uncaught; | 10 let uncaught; |
| 12 | 11 |
| 13 function listener(event, exec_state, event_data, data) { | 12 function listener(event, exec_state, event_data, data) { |
| 14 if (event != Debug.DebugEvent.Exception) return; | 13 if (event != Debug.DebugEvent.Exception) return; |
| 15 try { | 14 try { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 function* f() { yield* iterable } | 78 function* f() { yield* iterable } |
| 80 | 79 |
| 81 let g = f(); | 80 let g = f(); |
| 82 g.next(); | 81 g.next(); |
| 83 assertEquals({value: undefined, done: true}, g.throw()); | 82 assertEquals({value: undefined, done: true}, g.throw()); |
| 84 assertNull(uncaught); // No exception event was generated. | 83 assertNull(uncaught); // No exception event was generated. |
| 85 } | 84 } |
| 86 | 85 |
| 87 | 86 |
| 88 assertFalse(error); | 87 assertFalse(error); |
| OLD | NEW |