MCPcopy
hub / github.com/webpack/webpack / ensureBuffer

Method ensureBuffer

lib/serialization/BinaryMiddleware.js:215–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213 }
214
215 ensureBuffer() {
216 if (!this.currentIsBuffer) {
217 throw new Error(
218 this.currentBuffer === null
219 ? "Unexpected end of stream"
220 : "Unexpected lazy element in stream"
221 );
222 }
223 }
224
225 /**
226 * Returns buffer with bytes.

Callers 3

readMethod · 0.95
readUpToMethod · 0.95
readU8Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected