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

Side by Side Diff: test/mjsunit/es6/super.js

Issue 1429653006: Remove flags for spread calls and arrays (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 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: --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 // Flags: --harmony-spread-calls --harmony-destructuring 6 // Flags: --harmony-destructuring --harmony-rest-parameters --harmony-sloppy
7 // Flags: --harmony-rest-parameters --harmony-sloppy
8 7
9 (function TestSuperNamedLoads() { 8 (function TestSuperNamedLoads() {
10 function Base() { } 9 function Base() { }
11 function fBase() { } 10 function fBase() { }
12 Base.prototype = { 11 Base.prototype = {
13 f() { 12 f() {
14 return "Base " + this.toString(); 13 return "Base " + this.toString();
15 }, 14 },
16 x: 15, 15 x: 15,
17 toString() { 16 toString() {
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 } 2249 }
2251 class Derived extends Base { 2250 class Derived extends Base {
2252 constructor(x) { 2251 constructor(x) {
2253 let r = (() => super(...[x]))(); 2252 let r = (() => super(...[x]))();
2254 assertEquals(this, r); 2253 assertEquals(this, r);
2255 } 2254 }
2256 } 2255 }
2257 let d = new Derived(42); 2256 let d = new Derived(42);
2258 assertSame(42, d.x); 2257 assertSame(42, d.x);
2259 })(); 2258 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/spread-call-super-property.js ('k') | test/mjsunit/harmony/regress/regress-4298.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698