Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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");