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

Function TestArraySortingWithHoles

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

Source from the content-addressed store, hash-verified

79
80// Test array sorting with holes in the array.
81function TestArraySortingWithHoles() {
82 var a = [];
83 a[4] = "18";
84 a[10] = "12";
85 a.sort();
86 assertEquals(11, a.length);
87 assertEquals("12", a[0]);
88 assertEquals("18", a[1]);
89}
90
91TestArraySortingWithHoles();
92

Callers 1

array-sort.jsFile · 0.85

Calls 2

sortMethod · 0.80
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…