| 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 f() { | 6 function f() { |
| 8 var a = 1; | 7 var a = 1; |
| 9 var b = 2; | 8 var b = 2; |
| 10 return a + b; | 9 return a + b; |
| 11 } | 10 } |
| 12 | 11 |
| 13 var exception = null; | 12 var exception = null; |
| 14 var break_count = 0; | 13 var break_count = 0; |
| 15 var throw_count = 0; | 14 var throw_count = 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 f(); | 47 f(); |
| 49 f(); | 48 f(); |
| 50 | 49 |
| 51 Debug.setListener(null); | 50 Debug.setListener(null); |
| 52 Debug.clearBreakOnException(); | 51 Debug.clearBreakOnException(); |
| 53 Debug.debuggerFlags().breakPointsActive.setValue(true); | 52 Debug.debuggerFlags().breakPointsActive.setValue(true); |
| 54 | 53 |
| 55 assertEquals(2, break_count); | 54 assertEquals(2, break_count); |
| 56 assertEquals(1, throw_count); | 55 assertEquals(1, throw_count); |
| 57 assertNull(exception); | 56 assertNull(exception); |
| OLD | NEW |