()
| 36 | } |
| 37 | |
| 38 | function testCharCodeTruncation() { |
| 39 | var result = ""; |
| 40 | for (var i = 0x100000 + 100; i < 0x100000 + 500; i++) { |
| 41 | result += String.fromCharCode(i); |
| 42 | } |
| 43 | assertEquals(String.fromCharCode(0xFFFF), String.fromCharCode(0xFFFFFFFF)); |
| 44 | return result; |
| 45 | }; |
| 46 | %PrepareFunctionForOptimization(testCharCodeTruncation); |
| 47 | assertEquals(expected, testCharCodeTruncation()); |
| 48 | assertEquals(expected, testCharCodeTruncation()); |
no test coverage detected
searching dependent graphs…