OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 | |
6 | 5 |
7 function get() { | 6 function get() { |
8 return 3; // Break | 7 return 3; // Break |
9 } // Break | 8 } // Break |
10 | 9 |
11 function set(x) { | 10 function set(x) { |
12 this.x = x; // Break | 11 this.x = x; // Break |
13 } // Break | 12 } // Break |
14 | 13 |
15 var o = {}; | 14 var o = {}; |
(...skipping 24 matching lines...) Expand all Loading... |
40 | 39 |
41 var Debug = debug.Debug; | 40 var Debug = debug.Debug; |
42 Debug.setListener(listener); | 41 Debug.setListener(listener); |
43 | 42 |
44 debugger; // Break | 43 debugger; // Break |
45 f(); // Break | 44 f(); // Break |
46 | 45 |
47 Debug.setListener(null); // Break | 46 Debug.setListener(null); // Break |
48 assertEquals(86, break_count); | 47 assertEquals(86, break_count); |
49 assertNull(exception); | 48 assertNull(exception); |
OLD | NEW |