| 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);
|
|
|