js/src/jit-test/tests/basic/testInvalidCharCodeAt.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:4029be2d6910
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