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 --harmony-destructuring-bind | 5 // Flags: --expose-debug-as debug |
6 | 6 |
7 var exception = null; | 7 var exception = null; |
8 var Debug = debug.Debug; | 8 var Debug = debug.Debug; |
9 var break_count = 0; | 9 var break_count = 0; |
10 | 10 |
11 function listener(event, exec_state, event_data, data) { | 11 function listener(event, exec_state, event_data, data) { |
12 if (event != Debug.DebugEvent.Break) return; | 12 if (event != Debug.DebugEvent.Break) return; |
13 try { | 13 try { |
14 var source = exec_state.frame(0).sourceLineText(); | 14 var source = exec_state.frame(0).sourceLineText(); |
15 print(source, break_count); | 15 print(source, break_count); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 var { | 101 var { |
102 x: a, // B46 | 102 x: a, // B46 |
103 y: b = 9 // B47 | 103 y: b = 9 // B47 |
104 } = { x: 4 }; | 104 } = { x: 4 }; |
105 assertEquals([4, 9], [a, b]); // B48 | 105 assertEquals([4, 9], [a, b]); // B48 |
106 } // B49 | 106 } // B49 |
107 | 107 |
108 test(); | 108 test(); |
109 Debug.setListener(null); // B50 | 109 Debug.setListener(null); // B50 |
110 assertNull(exception); | 110 assertNull(exception); |
OLD | NEW |