Index: test/mjsunit/harmony/rest-params.js |
diff --git a/test/mjsunit/harmony/rest-params.js b/test/mjsunit/harmony/rest-params.js |
index 49515f4f2c964678fb61e729ba0012a2edb112c0..6ceb87e3318fd725477e7679541311872314cdec 100644 |
--- a/test/mjsunit/harmony/rest-params.js |
+++ b/test/mjsunit/harmony/rest-params.js |
@@ -16,6 +16,7 @@ |
return args.length; })(1,2,3,4,5)); |
})(); |
+ |
var strictTest = (function() { |
"use strict"; |
return function strictTest(a, b, ...c) { |
@@ -31,6 +32,7 @@ var strictTest = (function() { |
}; |
})(); |
+ |
function sloppyTest(a, b, ...c) { |
assertEquals(Array, c.constructor); |
assertTrue(Array.isArray(c)); |
@@ -169,22 +171,6 @@ var O = { |
})(); |
-/* TODO(caitp): support arrow functions (blocked on spread operator support) |
-(function testRestParamsArrowFunctions() { |
- "use strict"; |
- |
- var fn = (a, b, ...c) => c; |
- assertEquals([], fn()); |
- assertEquals([], fn(1, 2)); |
- assertEquals([3], fn(1, 2, 3)); |
- assertEquals([3, 4], fn(1, 2, 3, 4)); |
- assertEquals([3, 4, 5], fn(1, 2, 3, 4, 5)); |
- assertThrows("var x = ...y => y;", SyntaxError); |
- assertEquals([], ((...args) => args)()); |
- assertEquals([1,2,3], ((...args) => args)(1,2,3)); |
-})();*/ |
- |
- |
(function testRestParamsWithNewTarget() { |
"use strict"; |
class Base { |