js/src/jit-test/tests/arguments/rest-arguments-as-parameters.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/arguments/rest-arguments-as-parameters.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,9 @@
     1.4 +function f1(...arguments) {
     1.5 +    assertEq("1,2,3", arguments.toString());
     1.6 +}
     1.7 +f1(1, 2, 3);
     1.8 +function f2(arguments, ...rest) {
     1.9 +    assertEq(arguments, 42);
    1.10 +    assertEq("1,2,3", rest.toString());
    1.11 +}
    1.12 +f2(42, 1, 2, 3);
    1.13 \ No newline at end of file

mercurial