MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / ExtractHighWaterMark

Function ExtractHighWaterMark

out/cli.cjs:12037–12046  ·  view source on GitHub ↗
(strategy, defaultHWM)

Source from the content-addressed store, hash-verified

12035 return new TypeError(`ReadableStreamBYOBReader.prototype.${name} can only be used on a ReadableStreamBYOBReader`);
12036 }
12037 function ExtractHighWaterMark(strategy, defaultHWM) {
12038 const { highWaterMark } = strategy;
12039 if (highWaterMark === void 0) {
12040 return defaultHWM;
12041 }
12042 if (NumberIsNaN(highWaterMark) || highWaterMark < 0) {
12043 throw new RangeError("Invalid highWaterMark");
12044 }
12045 return highWaterMark;
12046 }
12047 function ExtractSizeAlgorithm(strategy) {
12048 const { size } = strategy;
12049 if (!size) {

Callers 3

constructorMethod · 0.85
constructorMethod · 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…