js/src/jit-test/tests/basic/testApply.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 testApply() {
     2     var q = [];
     3     for (var i = 0; i < 10; ++i)
     4         Array.prototype.push.apply(q, [5]);
     5     return q.join(",");
     6 }
     7 assertEq(testApply(), "5,5,5,5,5,5,5,5,5,5");

mercurial