summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/params-rest-1.js
blob: 9d2737a5a63d094adde3448784da660f0c918aa4 (plain)
1
2
3
4
5
// Rest parameters are allowed in arrow functions.

var A = (...x) => x;
assertEq(A().toSource(), "[]");
assertEq("" + A(3, 4, 5), "3,4,5");