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