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

Function test

deps/v8/test/mjsunit/array-sort.js:453–463  ·  view source on GitHub ↗
(proto, length, expected)

Source from the content-addressed store, hash-verified

451// Test special prototypes
452(function testSortSpecialPrototypes() {
453 function test(proto, length, expected) {
454 var result = {
455 length: length,
456 __proto__: proto,
457 };
458 Array.prototype.sort.call(result);
459 assertEquals(expected.length, result.length, "result.length");
460 for (var i = 0; i<expected.length; i++) {
461 assertEquals(expected[i], result[i], "result["+i+"]");
462 }
463 }
464
465 (function fast() {
466 // Fast elements, non-empty

Callers 2

array-sort.jsFile · 0.70
TestPrototypeHolesFunction · 0.70

Calls 5

assertEqualsFunction · 0.50
assertFalseFunction · 0.50
callMethod · 0.45
definePropertyMethod · 0.45
hasOwnPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…