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 // |
| 5 // Flags: --noanalyze-environment-liveness |
4 | 6 |
5 | 7 |
6 Debug = debug.Debug | 8 Debug = debug.Debug |
7 | 9 |
8 listenerComplete = false; | 10 listenerComplete = false; |
9 breakPointCount = 0; | 11 breakPointCount = 0; |
10 exception = null; | 12 exception = null; |
11 | 13 |
12 function listener(event, exec_state, event_data, data) { | 14 function listener(event, exec_state, event_data, data) { |
13 if (event != Debug.DebugEvent.Break) return; | 15 if (event != Debug.DebugEvent.Break) return; |
(...skipping 29 matching lines...) Expand all Loading... |
43 c = (function() { debugger; })()) { | 45 c = (function() { debugger; })()) { |
44 var d = 'local'; | 46 var d = 'local'; |
45 debugger; | 47 debugger; |
46 }; | 48 }; |
47 | 49 |
48 f(); | 50 f(); |
49 | 51 |
50 // Make sure that the debug event listener vas invoked. | 52 // Make sure that the debug event listener vas invoked. |
51 assertEquals(3, breakPointCount); | 53 assertEquals(3, breakPointCount); |
52 assertNull(exception); | 54 assertNull(exception); |
OLD | NEW |