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

load(libdir + "asserts.js");

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