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 var test_y = false; | 6 var test_y = false; |
8 | 7 |
9 function foo(a = 1) { | 8 function foo(a = 1) { |
10 var x = 2; | 9 var x = 2; |
11 debugger; | 10 debugger; |
12 eval("var y = 3"); | 11 eval("var y = 3"); |
13 test_y = true; | 12 test_y = true; |
14 debugger; | 13 debugger; |
15 } | 14 } |
(...skipping 19 matching lines...) Expand all Loading... |
35 } catch (e) { | 34 } catch (e) { |
36 print(e); | 35 print(e); |
37 exception = e; | 36 exception = e; |
38 } | 37 } |
39 } | 38 } |
40 Debug.setListener(listener); | 39 Debug.setListener(listener); |
41 foo(); | 40 foo(); |
42 | 41 |
43 assertNull(exception); | 42 assertNull(exception); |
44 assertEquals(2, break_count); | 43 assertEquals(2, break_count); |
OLD | NEW |