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 | 5 // Flags: --expose-debug-as debug |
6 | 6 |
7 function get() { | 7 function get() { |
8 return 3; // Break | 8 return 3; // Break |
9 } // Break | 9 } // Break |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 var Debug = debug.Debug; | 41 var Debug = debug.Debug; |
42 Debug.setListener(listener); | 42 Debug.setListener(listener); |
43 | 43 |
44 debugger; // Break | 44 debugger; // Break |
45 f(); // Break | 45 f(); // Break |
46 | 46 |
47 Debug.setListener(null); // Break | 47 Debug.setListener(null); // Break |
48 assertEquals(87, break_count); | 48 assertEquals(86, break_count); |
49 assertNull(exception); | 49 assertNull(exception); |
OLD | NEW |