| 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 we break at every assignment in a var-statement with multiple | 6 // Test we break at every assignment in a var-statement with multiple |
| 8 // variable declarations. | 7 // variable declarations. |
| 9 | 8 |
| 10 var exception = null; | 9 var exception = null; |
| 11 var log = [] | 10 var log = [] |
| 12 | 11 |
| 13 function f() { | 12 function f() { |
| 14 var l1 = 1, // l | 13 var l1 = 1, // l |
| 15 l2, // m | 14 l2, // m |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 "a0", // debugger statement | 64 "a0", // debugger statement |
| 66 "b9","c9", // global var | 65 "b9","c9", // global var |
| 67 "e9","f4","g9", // global let | 66 "e9","f4","g9", // global let |
| 68 "h11","i11","j11", // global const | 67 "h11","i11","j11", // global const |
| 69 "l11","n11", // local var | 68 "l11","n11", // local var |
| 70 "o6","p11","q11", // local let | 69 "o6","p11","q11", // local let |
| 71 "r13","s13","t13", // local const | 70 "r13","s13","t13", // local const |
| 72 "u2","v0", // return | 71 "u2","v0", // return |
| 73 ]; | 72 ]; |
| 74 assertEquals(expected, log); | 73 assertEquals(expected, log); |
| OLD | NEW |