OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 --harmony | 5 // Flags: --harmony |
6 | 6 |
7 Debug = debug.Debug; | 7 Debug = debug.Debug; |
8 var break_count = 0 | 8 var break_count = 0 |
9 var exception = null; | 9 var exception = null; |
10 var log = [] | 10 var log = [] |
11 | 11 |
12 var s = 0; | 12 var s = 0; |
13 var a = [1, 2, 3]; | 13 var a = [1, 2, 3]; |
14 var b = [1, 2, 3, 4]; | 14 var b = [1, 2, 3, 4]; |
15 var null_value = null; | 15 var null_value = null; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Spread: expression statement, spread | 126 // Spread: expression statement, spread |
127 "o2", "o9", | 127 "o2", "o9", |
128 // Exit. | 128 // Exit. |
129 "y0","z0", | 129 "y0","z0", |
130 ] | 130 ] |
131 print("expected:\n"+ JSON.stringify(expected)); | 131 print("expected:\n"+ JSON.stringify(expected)); |
132 | 132 |
133 assertArrayEquals(expected, log); | 133 assertArrayEquals(expected, log); |
134 assertEquals(54, s); | 134 assertEquals(54, s); |
135 assertNull(exception); | 135 assertNull(exception); |
OLD | NEW |