summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/rest-in-Function.js
blob: e2966be6916cc940628b45c033b4db20870aa594 (plain)
1
2
3
h = Function("a", "b", "c", "...rest", "return rest.toString();");
assertEq(h.length, 3);
assertEq(h(1, 2, 3, 4, 5), "4,5");