Chromium Code Reviews| 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. |
|
wingo
2015/08/31 13:07:31
IIRC we don't update these lines; Adam?
caitp (gmail)
2015/08/31 13:23:40
This isn't really an update, it's a new file
|
| // 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() { |
|
wingo
2015/08/31 13:07:31
Why this change?
caitp (gmail)
2015/08/31 13:23:40
It's not legal to have a language mode directive i
|
| "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); |