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

Side by Side Diff: test/mjsunit/harmony/rest-params.js

Issue 1213813003: [es6] Remove harmony-classes flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove empty flags field from json Created 5 years, 5 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
« no previous file with comments | « test/mjsunit/harmony/regress/regress-crbug-451770.js ('k') | test/mjsunit/harmony/super.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: --harmony-rest-parameters --harmony-classes 5 // Flags: --harmony-rest-parameters
6 6
7 (function testRestIndex() { 7 (function testRestIndex() {
8 assertEquals(5, (function(...args) { return args.length; })(1,2,3,4,5)); 8 assertEquals(5, (function(...args) { return args.length; })(1,2,3,4,5));
9 assertEquals(4, (function(a, ...args) { return args.length; })(1,2,3,4,5)); 9 assertEquals(4, (function(a, ...args) { return args.length; })(1,2,3,4,5));
10 assertEquals(3, (function(a, b, ...args) { return args.length; })(1,2,3,4,5)); 10 assertEquals(3, (function(a, b, ...args) { return args.length; })(1,2,3,4,5));
11 assertEquals(2, (function(a, b, c, ...args) { 11 assertEquals(2, (function(a, b, c, ...args) {
12 return args.length; })(1,2,3,4,5)); 12 return args.length; })(1,2,3,4,5));
13 assertEquals(1, (function(a, b, c, d, ...args) { 13 assertEquals(1, (function(a, b, c, d, ...args) {
14 return args.length; })(1,2,3,4,5)); 14 return args.length; })(1,2,3,4,5));
15 assertEquals(0, (function(a, b, c, d, e, ...args) { 15 assertEquals(0, (function(a, b, c, d, e, ...args) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 args.push(arguments[i]); 205 args.push(arguments[i]);
206 } 206 }
207 assertEquals(args, b); 207 assertEquals(args, b);
208 } 208 }
209 } 209 }
210 210
211 var c = new Child(1, 2, 3); 211 var c = new Child(1, 2, 3);
212 assertEquals([1, 2, 3], c.child); 212 assertEquals([1, 2, 3], c.child);
213 assertEquals([1, 2, 3], c.base); 213 assertEquals([1, 2, 3], c.base);
214 })(); 214 })();
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/regress/regress-crbug-451770.js ('k') | test/mjsunit/harmony/super.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698