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

Method rawTimestampMin

deps/v8/tools/parse-processor.mjs:120–126  ·  view source on GitHub ↗
(...timestamps)

Source from the content-addressed store, hash-verified

118 // Returns the smallest timestamp from the given list, ignoring
119 // uninitialized (-1) values.
120 rawTimestampMin(...timestamps) {
121 timestamps = timestamps.length == 1 ? timestamps[0] : timestamps;
122 let result = timestamps.reduce((min, item) => {
123 return item == -1 ? min : (min == -1 ? item : Math.min(item, item));
124 }, -1);
125 return result;
126 }
127 timestampMin(...timestamps) {
128 let result = this.rawTimestampMin(...timestamps);
129 if (Number.isNaN(result) || result < 0) {

Callers 2

finalizeMethod · 0.95
timestampMinMethod · 0.95

Calls 2

reduceMethod · 0.80
minMethod · 0.45

Tested by

no test coverage detected