| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 // Test that the parameter initialization block scope set up for | 6 // Test that the parameter initialization block scope set up for |
| 8 // sloppy eval is visible to the debugger. | 7 // sloppy eval is visible to the debugger. |
| 9 | 8 |
| 10 var Debug = debug.Debug; | 9 var Debug = debug.Debug; |
| 11 var exception = null; | 10 var exception = null; |
| 12 var break_count = 0; | 11 var break_count = 0; |
| 13 | 12 |
| 14 function call_for_break() { | 13 function call_for_break() { |
| 15 return 5; | 14 return 5; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 51 } |
| 53 | 52 |
| 54 Debug.setListener(listener); | 53 Debug.setListener(listener); |
| 55 | 54 |
| 56 assertEquals(12, test()); | 55 assertEquals(12, test()); |
| 57 | 56 |
| 58 Debug.setListener(null); | 57 Debug.setListener(null); |
| 59 | 58 |
| 60 assertNull(exception); | 59 assertNull(exception); |
| 61 assertEquals(2, break_count); | 60 assertEquals(2, break_count); |
| OLD | NEW |