| 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 global_marker = 7; | 6 var global_marker = 7; |
| 9 | 7 |
| 10 async function thrower() { throw 'Exception'; } | 8 async function thrower() { throw 'Exception'; } |
| 11 | 9 |
| 12 async function test(name, func, args, handler, continuation) { | 10 async function test(name, func, args, handler, continuation) { |
| 13 var handler_called = false; | 11 var handler_called = false; |
| 14 var exception = null; | 12 var exception = null; |
| 15 | 13 |
| 16 function listener(event, exec_state, event_data, data) { | 14 function listener(event, exec_state, event_data, data) { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 | 539 |
| 542 if (scope_size < count) { | 540 if (scope_size < count) { |
| 543 print('Names found in scope:'); | 541 print('Names found in scope:'); |
| 544 var names = scope.scopeObject().propertyNames(); | 542 var names = scope.scopeObject().propertyNames(); |
| 545 for (var i = 0; i < names.length; i++) { | 543 for (var i = 0; i < names.length; i++) { |
| 546 print(names[i]); | 544 print(names[i]); |
| 547 } | 545 } |
| 548 } | 546 } |
| 549 assertTrue(scope_size >= count); | 547 assertTrue(scope_size >= count); |
| 550 } | 548 } |
| OLD | NEW |