- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 30 Jun 2015 21:58:40 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 1 July 2015 04:59:08 UTC
> +
> + releaseLock() {
> + if (!IsReadableByteStreamByobReader(this)) {
> + throw new TypeError(
> + 'ReadableByteStreamByobReader.prototype.releaseLock can only be used on a ReadableByteStreamByobReader');
> + }
> +
> + if (this._ownerReadableByteStream === undefined) {
> + return;
> + }
> +
> + if (this._readIntoRequests.length > 0) {
> + throw new TypeError('Tried to release a reader lock when that reader has pending read() calls un-settled');
> + }
> +
> + if (this._ownerReadableByteStream._state === 'readable') {
Also added some auto release tests f174dd56021e124aa055566a53bd95145a85f180
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/361/files#r33648474
Received on Wednesday, 1 July 2015 04:59:08 UTC