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

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

Powered by Google App Engine
This is Rietveld 408576698