| 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: --crankshaft |
| 5 | 6 |
| 6 Debug = debug.Debug | 7 Debug = debug.Debug |
| 7 | 8 |
| 8 var exception = null; | 9 var exception = null; |
| 9 | 10 |
| 10 function f() { | 11 function f() { |
| 11 let a = 0; | 12 let a = 0; |
| 12 function g() { | 13 function g() { |
| 13 let a = 1; | 14 let a = 1; |
| 14 { | 15 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 42 print("Caught something. " + e + " " + e.stack); | 43 print("Caught something. " + e + " " + e.stack); |
| 43 }; | 44 }; |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 Debug.setListener(listener); | 47 Debug.setListener(listener); |
| 47 | 48 |
| 48 f(); | 49 f(); |
| 49 | 50 |
| 50 Debug.setListener(null); | 51 Debug.setListener(null); |
| 51 assertNull(exception); | 52 assertNull(exception); |
| OLD | NEW |