- From: Domenic Denicola <notifications@github.com>
- Date: Sun, 27 Jan 2019 09:39:58 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 27 January 2019 17:40:20 UTC
domenic commented on this pull request. > + } + if (reader._readRequests.length > 0) { + return Promise.reject(new TypeError( + 'Tried to release a reader lock when that reader has pending read() calls un-settled')); + } + if (this._preventCancel === false) { + const result = ReadableStreamReaderGenericCancel(reader, value); + ReadableStreamReaderGenericRelease(reader); + return result.then(() => ReadableStreamCreateReadResult(value, true, true)); + } + ReadableStreamReaderGenericRelease(reader); + return Promise.resolve(ReadableStreamCreateReadResult(value, true, true)); + } +}, AsyncIteratorPrototype); + +ReadableStream.prototype[Symbol.asyncIterator] = ReadableStream.prototype.getIterator; Yeah, non-enumerable please! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/980#discussion_r251247148
Received on Sunday, 27 January 2019 17:40:20 UTC