michael@0: // Rest parameters work in arrow functions michael@0: michael@0: var f = (a, b, ...rest) => [a, b, rest]; michael@0: assertEq(f().toSource(), "[(void 0), (void 0), []]"); michael@0: assertEq(f(1, 2, 3, 4).toSource(), "[1, 2, [3, 4]]");