Re: [streams] Make released stream readers look like closed streams (e119976)

When the stream is closed, right, the `this@stream@[[closedPromise]]` which continues to be exposed is resolved and is correct also for the `reader.closed`'s concept.

Please think of the case where the stream is not closed but the `reader.releaseLock()` is called. I'd expect that the promise obtained at `reader.closed` before `releaseLock()` call to be resolved on `releaseLock()` call. I think this is consistent with that `reader.closed` returns a resolved promise after `releaseLock()` call.

Created a PR. See the tests. The promise obtained from `reader.closed` won't be fulfilled on `releaseLock()` call without the fix in the PR.
https://github.com/whatwg/streams/pull/267

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/commit/e1199763f3de8ae5e181310a4dc48b520789a3e8#commitcomment-9350435

Received on Tuesday, 20 January 2015 05:47:36 UTC