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

Function TestNonArrayLongerLength

deps/v8/test/mjsunit/array-sort.js:154–164  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

152
153
154function TestNonArrayLongerLength(length) {
155 var x = {};
156 x[0] = 42;
157 x[2] = 37;
158 x.length = length;
159 Array.prototype.sort.call(x);
160 assertEquals(length, x.length, "longlength length");
161 assertEquals(37, x[0], "longlength first");
162 assertEquals(42, x[1], "longlength second");
163 assertFalse(2 in x,"longlength third");
164}
165
166TestNonArrayLongerLength(4);
167TestNonArrayLongerLength(10);

Callers 1

array-sort.jsFile · 0.85

Calls 3

assertEqualsFunction · 0.50
assertFalseFunction · 0.50
callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…