MCPcopy
hub / github.com/google/brotli / makeError

Function makeError

js/decode.ts:1935–1943  ·  view source on GitHub ↗
(s: State, code: number)

Source from the content-addressed store, hash-verified

1933 return result;
1934}
1935function makeError(s: State, code: number): number {
1936 if (code >= 0) {
1937 return code;
1938 }
1939 if (s.runningState >= 0) {
1940 s.runningState = code;
1941 }
1942 throw new Error("Brotli error code: " + code);
1943}
1944
1945/* GENERATED CODE END */
1946

Callers 15

enableEagerOutputFunction · 0.70
enableLargeWindowFunction · 0.70
attachDictionaryChunkFunction · 0.70
initStateFunction · 0.70
closeFunction · 0.70
decodeMetaBlockLengthFunction · 0.70
readHuffmanCodeLengthsFunction · 0.70
checkDupesFunction · 0.70
readSimpleHuffmanCodeFunction · 0.70
readComplexHuffmanCodeFunction · 0.70
decodeContextMapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…