MCPcopy Index your code
hub / github.com/nodejs/node / testCharCodeTruncation

Function testCharCodeTruncation

deps/v8/test/mjsunit/string-fromcharcode.js:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38function 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);
47assertEquals(expected, testCharCodeTruncation());
48assertEquals(expected, testCharCodeTruncation());

Callers 1

Calls 1

assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…