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

Side by Side Diff: test/mjsunit/es6/arrow-functions-lexical-arguments.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.js ('k') | test/mjsunit/es6/arrow-functions-this.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 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-arrow-functions
6
7 5
8 (function testInFunctionDeclaration() { 6 (function testInFunctionDeclaration() {
9 var calls = 0; 7 var calls = 0;
10 function f() { 8 function f() {
11 (() => { 9 (() => {
12 calls++; 10 calls++;
13 assertEquals(2, arguments.length); 11 assertEquals(2, arguments.length);
14 assertEquals('a', arguments[0]); 12 assertEquals('a', arguments[0]);
15 assertEquals('b', arguments[1]); 13 assertEquals('b', arguments[1]);
16 })(); 14 })();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 var calls = 0; 147 var calls = 0;
150 function f(arguments) { 148 function f(arguments) {
151 (() => { 149 (() => {
152 calls++; 150 calls++;
153 assertEquals('a', arguments); 151 assertEquals('a', arguments);
154 })(); 152 })();
155 } 153 }
156 f('a'); 154 f('a');
157 assertEquals(1, calls); 155 assertEquals(1, calls);
158 })(); 156 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/arrow-functions.js ('k') | test/mjsunit/es6/arrow-functions-this.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698