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

Function TestArrayLongerLength

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

Source from the content-addressed store, hash-verified

134
135
136function TestArrayLongerLength(length) {
137 var x = new Array(4);
138 x[0] = 42;
139 x[2] = 37;
140 x.length = length;
141 Array.prototype.sort.call(x);
142 assertEquals(length, x.length, "longlength length");
143 assertEquals(37, x[0], "longlength first");
144 assertEquals(42, x[1], "longlength second");
145 assertFalse(2 in x,"longlength third");
146}
147
148TestArrayLongerLength(4);
149TestArrayLongerLength(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…