summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testInvalidCharCodeAt.js
blob: 748220fcd0b654c2969e60abe50c1f13987288f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function doTestInvalidCharCodeAt(input)
{
    var q = "";
    for (var i = 0; i < 10; i++)
       q += input.charCodeAt(i);
    return q;
}
function testInvalidCharCodeAt()
{
    return doTestInvalidCharCodeAt("");
}
assertEq(testInvalidCharCodeAt(), "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN");