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

Side by Side Diff: test/mjsunit/es6/object-literals-super.js

Issue 1373633002: Remove --harmony-arrow-functions flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 2 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/es6/arrow-functions-this.js ('k') | test/mjsunit/es6/regress/regress-3501.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-arrow-functions --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 6
7 7
8 (function TestHomeObject() { 8 (function TestHomeObject() {
9 var object = { 9 var object = {
10 method() { 10 method() {
11 return super.method(); 11 return super.method();
12 }, 12 },
13 get getter() { 13 get getter() {
14 return super.getter; 14 return super.getter;
15 }, 15 },
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 var o = { 173 var o = {
174 __proto__: p, 174 __proto__: p,
175 arrow() { 175 arrow() {
176 assertSame(super.x, (() => super.x)()); 176 assertSame(super.x, (() => super.x)());
177 assertSame(super.m(), (() => super.m())()); 177 assertSame(super.m(), (() => super.m())());
178 return (() => super.m())(); 178 return (() => super.m())();
179 } 179 }
180 }; 180 };
181 assertSame(1, o.arrow()); 181 assertSame(1, o.arrow());
182 })(); 182 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/arrow-functions-this.js ('k') | test/mjsunit/es6/regress/regress-3501.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698