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

Unified Diff: test/mjsunit/harmony/arrow-rest-params-lazy-parsing.js

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Oops. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/harmony/arrow-rest-params-lazy-parsing.js
diff --git a/test/mjsunit/harmony/arrow-rest-params.js b/test/mjsunit/harmony/arrow-rest-params-lazy-parsing.js
similarity index 95%
copy from test/mjsunit/harmony/arrow-rest-params.js
copy to test/mjsunit/harmony/arrow-rest-params-lazy-parsing.js
index 0ee77390ed21496f590de890686891c29e7c3f96..6e760fcb17cedc5f9a8aa685ca2484a13ab563fb 100644
--- a/test/mjsunit/harmony/arrow-rest-params.js
+++ b/test/mjsunit/harmony/arrow-rest-params-lazy-parsing.js
@@ -1,8 +1,9 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
+// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-rest-parameters --harmony-arrow-functions
+// Flags: --min-preparse-length=0
(function testRestIndex() {
assertEquals(5, ((...args) => args.length)(1,2,3,4,5));
@@ -18,7 +19,7 @@
//
// strictTest(6,5,4,3,2,1)
//
-var strictTest = (() => {
+var strictTest = (function() {
"use strict";
return (a, b, ...c) => {
assertEquals(Array, c.constructor);
@@ -43,7 +44,7 @@ var sloppyTest = (a, b, ...c) => {
for (var i = 2; i < a; ++i) {
assertEquals(c[i - 2], a - i);
}
-}
+};
var O = {
@@ -99,7 +100,7 @@ var O = {
})();
-(function testRestParamssloppyMode() {
+(function testRestParamsSloppyMode() {
sloppyTest();
sloppyTest(2, 1);
sloppyTest(6, 5, 4, 3, 2, 1);

Powered by Google App Engine
This is Rietveld 408576698