OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 --allow-natives-syntax | |
6 | 5 |
7 var Debug = debug.Debug; | 6 var Debug = debug.Debug; |
8 var expected = ["debugger;", | 7 var expected = ["debugger;", |
9 "var x = y;", | 8 "var x = y;", |
10 "new Promise(f).catch(call_f_with_deeper_stack);", | 9 "new Promise(f).catch(call_f_with_deeper_stack);", |
11 "var a = 1;", "var a = 1;", | 10 "var a = 1;", "var a = 1;", |
12 "debugger;", | 11 "debugger;", |
13 "var x = y;"]; | 12 "var x = y;"]; |
14 | 13 |
15 function listener(event, exec_state, event_data, data) { | 14 function listener(event, exec_state, event_data, data) { |
(...skipping 14 matching lines...) Expand all Loading... |
30 var x = y; | 29 var x = y; |
31 print(x); | 30 print(x); |
32 } | 31 } |
33 | 32 |
34 function call_f_with_deeper_stack() { | 33 function call_f_with_deeper_stack() { |
35 (() => () => () => f())()()(); | 34 (() => () => () => f())()()(); |
36 } | 35 } |
37 | 36 |
38 new Promise(f).catch(call_f_with_deeper_stack); | 37 new Promise(f).catch(call_f_with_deeper_stack); |
39 var a = 1; | 38 var a = 1; |
OLD | NEW |