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

Side by Side Diff: test/mjsunit/harmony/super.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/rest-params.js ('k') | test/mjsunit/harmony/toMethod.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-classes --harmony-arrow-functions --allow-natives-syntax 5 // Flags: --harmony-arrow-functions --allow-natives-syntax
6 // Flags: --harmony-spreadcalls 6 // Flags: --harmony-spreadcalls
7 7
8 (function TestSuperNamedLoads() { 8 (function TestSuperNamedLoads() {
9 function Base() { } 9 function Base() { }
10 function fBase() { } 10 function fBase() { }
11 Base.prototype = { 11 Base.prototype = {
12 f() { 12 f() {
13 return "Base " + this.toString(); 13 return "Base " + this.toString();
14 }, 14 },
15 x: 15, 15 x: 15,
(...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 } 2206 }
2207 } 2207 }
2208 class Derived extends Base { 2208 class Derived extends Base {
2209 constructor(x) { 2209 constructor(x) {
2210 (() => super(...[x]))(); 2210 (() => super(...[x]))();
2211 } 2211 }
2212 } 2212 }
2213 let d = new Derived(42); 2213 let d = new Derived(42);
2214 assertSame(42, d.x); 2214 assertSame(42, d.x);
2215 })(); 2215 })();
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/rest-params.js ('k') | test/mjsunit/harmony/toMethod.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698