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

Function clampHWM

lib/internal/streams/iter/utils.js:53–55  ·  view source on GitHub ↗

* Clamp a high water mark to [1, MAX_SAFE_INTEGER]. * @param {number} value * @returns {number}

(value)

Source from the content-addressed store, hash-verified

51 * @returns {number}
52 */
53function clampHWM(value) {
54 return MathMax(1, MathMin(NumberMAX_SAFE_INTEGER, value));
55}
56
57/**
58 * Register a handler for an AbortSignal, handling the already-aborted case.

Callers 4

shareFunction · 0.85
shareSyncFunction · 0.85
broadcastFunction · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…