Re: [whatwg/streams] Links to "a new promise", "a promise resolved with", etc. are broken (#1020)

There's [this note](https://streams.spec.whatwg.org/#readable-stream-pipe-to) in `ReadableStreamPipeTo`:
> Various abstract operations performed here include object creation (often of promises), which usually would require specifying a realm for the created object. However, because of the locking, none of these objects can be observed by author code. As such, the realm used to create them does not matter.

The way I understand this: the promise returned by `pipeTo` **must** be in the current realm, but the intermediate promises (e.g. the actions passed to "shutdown with an action", or the write promises from "wait until every chunk that has been read has been written") **could** be in a different realm.

-- 
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/issues/1020#issuecomment-546885644

Received on Monday, 28 October 2019 10:30:39 UTC