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

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 function f1(...arguments) {
     2     assertEq("1,2,3", arguments.toString());
     3 }
     4 f1(1, 2, 3);
     5 function f2(arguments, ...rest) {
     6     assertEq(arguments, 42);
     7     assertEq("1,2,3", rest.toString());
     8 }
     9 f2(42, 1, 2, 3);

mercurial