MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / ensureNotClosed

Method ensureNotClosed

src/audio_data.ts:125–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 private ensureNotClosed() {
126 if (this.closed) {
127 throw new DOMException('AudioData is closed.', 'InvalidStateError');
128 }
129 }
130
131 /**
132 * Returns the number of bytes needed to hold a copy of the audio data.

Callers 3

allocationSizeMethod · 0.95
copyToMethod · 0.95
cloneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected