- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 30 Jun 2015 01:43:32 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 30 June 2015 08:44:10 UTC
> + releaseLock() {
> + if (!IsReadableByteStreamReader(this)) {
> + throw new TypeError(
> + 'ReadableByteStreamReader.prototype.releaseLock can only be used on a ReadableByteStreamReader');
> + }
> +
> + if (this._ownerReadableByteStream === undefined) {
> + return;
> + }
> +
> + if (this._readRequests.length > 0) {
> + throw new TypeError('Tried to release a reader lock when that reader has pending read() calls un-settled');
> + }
> +
> + if (this._ownerReadableByteStream._state === 'errored') {
> + MarkReadableByteStreamReaderErrored(this, this._ownerReadableByteStream._storedError)
This function seems to be missing? I can't find it with Ctrl+F...
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/361/files#r33551687
Received on Tuesday, 30 June 2015 08:44:10 UTC