js/src/jit-test/tests/basic/testInvalidCharCodeAt.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 doTestInvalidCharCodeAt(input)
     2 {
     3     var q = "";
     4     for (var i = 0; i < 10; i++)
     5        q += input.charCodeAt(i);
     6     return q;
     7 }
     8 function testInvalidCharCodeAt()
     9 {
    10     return doTestInvalidCharCodeAt("");
    11 }
    12 assertEq(testInvalidCharCodeAt(), "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN");

mercurial