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

Function compare

deps/v8/tools/turbolizer/src/node.ts:100–107  ·  view source on GitHub ↗
(other: Node<any>)

Source from the content-addressed store, hash-verified

98 }
99
100 public compare(other: Node<any>): number {
101 if (this.visitOrderWithinRank < other.visitOrderWithinRank) {
102 return -1;
103 } else if (this.visitOrderWithinRank == other.visitOrderWithinRank) {
104 return 0;
105 }
106 return 1;
107 }
108
109 public identifier(): string {
110 return `${this.id}`;

Callers 4

percolateDownMethod · 0.50
percolateUpMethod · 0.50
areSimilarTypedArraysFunction · 0.50
areEqualArrayBuffersFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…