- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 16 Mar 2015 05:59:26 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 16 March 2015 12:59:52 UTC
> + return Promise.reject(
> + new TypeError('ReadableStreamReader.prototype.closed can only be used on a ReadableStreamReader'));
> + }
> +
> + return this._closedPromise;
> + }
> +
> + cancel(reason) {
> + if (IsReadableStreamReader(this) === false) {
> + return Promise.reject(
> + new TypeError('ReadableStreamReader.prototype.cancel can only be used on a ReadableStreamReader'));
> + }
> +
> + if (this._ownerReadableStream === undefined) {
> + return Promise.resolve(undefined);
> + }
Amended last commit in the PR with fix
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/296/files#r26481459
Received on Monday, 16 March 2015 12:59:52 UTC