Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: test/mjsunit/es6/destructuring-parameters-literalcount-nolazy.js

Issue 1776683003: Remove destructuring and default arguments runtime flags (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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({},{});
OLDNEW
« no previous file with comments | « test/mjsunit/es6/destructuring-parameters-literalcount.js ('k') | test/mjsunit/es6/new-target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698