- From: Mattias Buelens <notifications@github.com>
- Date: Wed, 05 Aug 2020 16:05:21 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 5 August 2020 23:05:34 UTC
Ran into an issue. [ReadableStreamClose](https://streams.spec.whatwg.org/commit-snapshots/d6ea924ae7e2f445b913aa1df394029bf73804b7/#readable-stream-close) has the following step: > 6. Resolve _reader_.[[closedPromise]] with undefined. However, `[[closedPromise]]` may refer to the internal slot of *either* `ReadableStreamDefaultReader` or `ReadableStreamBYOBReader`. So there's no single link I can put here. 😕 Do we need to introduce an "interface mixin" (like [`TextDecoderCommon` in the Encoding spec](https://encoding.spec.whatwg.org/#interface-mixin-textdecodercommon)) where we can define the internal slots shared between the two reader classes (i.e. `[[closedPromise]]` and `[[stream]]`)? Or should we add a section "Interfacing with readers" just to define the common internal slots without any Web IDL, like we did with ["Interfacing with controllers"](https://streams.spec.whatwg.org/commit-snapshots/d6ea924ae7e2f445b913aa1df394029bf73804b7/#rs-abstract-ops-used-by-controllers)? -- 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/1050#issuecomment-669589271
Received on Wednesday, 5 August 2020 23:05:34 UTC