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 // | 4 // |
5 // Flags: --harmony-destructuring-bind | |
6 // Flags: --no-lazy --allow-natives-syntax | 5 // Flags: --no-lazy --allow-natives-syntax |
7 | 6 |
8 | 7 |
9 var t1 = [1]; | 8 var t1 = [1]; |
10 var t2 = [2]; | 9 var t2 = [2]; |
11 var t3 = [3]; | 10 var t3 = [3]; |
12 var t4 = [4]; | 11 var t4 = [4]; |
13 var t5 = [5]; | 12 var t5 = [5]; |
14 function g({x = {a:10,b:20}}, | 13 function g({x = {a:10,b:20}}, |
15 {y = [1,2,3], | 14 {y = [1,2,3], |
(...skipping 16 matching lines...) Expand all Loading... |
32 p = /abc/ }) => { | 31 p = /abc/ }) => { |
33 assertSame(10, x.a); | 32 assertSame(10, x.a); |
34 assertSame(20, x.b); | 33 assertSame(20, x.b); |
35 assertSame(2, y[1]); | 34 assertSame(2, y[1]); |
36 assertSame(0, n.length); | 35 assertSame(0, n.length); |
37 assertTrue(p.test("abc")); | 36 assertTrue(p.test("abc")); |
38 }; | 37 }; |
39 h({},{}); | 38 h({},{}); |
40 %OptimizeFunctionOnNextCall(h); | 39 %OptimizeFunctionOnNextCall(h); |
41 h({},{}); | 40 h({},{}); |
OLD | NEW |