summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/rest-arguments-as-parameters.js
blob: 120b0ce1c03df3e6e44d769d1f3c60e32d74d20e (plain)
1
2
3
4
5
6
7
8
9
function f1(...arguments) {
    assertEq("1,2,3", arguments.toString());
}
f1(1, 2, 3);
function f2(arguments, ...rest) {
    assertEq(arguments, 42);
    assertEq("1,2,3", rest.toString());
}
f2(42, 1, 2, 3);