- From: Adam Rice <notifications@github.com>
- Date: Thu, 09 Jul 2020 16:35:06 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 July 2020 23:35:19 UTC
@ricea commented on this pull request. > + + 1. Perform [$PackAndPostMessage$](|port|, `"error"`, |error|), discarding the result. + + <p class="note">As we are already in an errored state when this abstract operation is performed, we + cannot handle further errors, so we just discard them.</p> + +</div> + +<div algorithm> + <dfn abstract-op lt="SetUpCrossRealmTransformReadable">SetUpCrossRealmTransformReadable(|stream|, + |port|)</dfn> performs the following steps: + + 1. Perform ! [$InitializeReadableStream$](|stream|). + 1. Let |controller| be a [=new=] {{ReadableStreamDefaultController}}. + 1. Let |backpressurePromise| be [=a new promise=]. + 1. Add a handler for |port|'s {{MessagePort/message}} event with the following steps: It feels odd having to route the event via JavaScript in the standard when in Blink's implementation we just have [blink::NativeEventListener](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/dom/events/native_event_listener.h?q=blink::NativeEventListener). And it's not like it's some weird edge-case either: it's used in loads of places. -- 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/1053#discussion_r452545453
Received on Thursday, 9 July 2020 23:35:19 UTC