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 | |
6 | |
7 Debug = debug.Debug | 5 Debug = debug.Debug |
8 | 6 |
9 listenerComplete = false; | 7 listenerComplete = false; |
10 breakPointCount = 0; | 8 breakPointCount = 0; |
11 | 9 |
12 async function f() { | 10 async function f() { |
13 await (async function() { var a = "a"; await 1; debugger; })(); | 11 await (async function() { var a = "a"; await 1; debugger; })(); |
14 | 12 |
15 var b = "b"; | 13 var b = "b"; |
16 | 14 |
(...skipping 13 matching lines...) Expand all Loading... |
30 assertEquals("c", exec_state.frame(2).evaluate("c")); | 28 assertEquals("c", exec_state.frame(2).evaluate("c")); |
31 } catch (e) { | 29 } catch (e) { |
32 exception = e; | 30 exception = e; |
33 }; | 31 }; |
34 }; | 32 }; |
35 | 33 |
36 Debug.setListener(listener); | 34 Debug.setListener(listener); |
37 | 35 |
38 var c = "c"; | 36 var c = "c"; |
39 f(); | 37 f(); |
OLD | NEW |