js/src/jit-test/tests/collections/Array-of-generic-2.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 // Array.of passes the number of arguments to the constructor it calls.
     3 var hits = 0;
     4 function Herd(n) {
     5     assertEq(arguments.length, 1);
     6     assertEq(n, 5);
     7     hits++;
     8 }
     9 Herd.of = Array.of;
    10 Herd.of("sheep", "cattle", "elephants", "whales", "seals");
    11 assertEq(hits, 1);

mercurial