- From: Adam Rice <notifications@github.com>
- Date: Thu, 09 Jul 2020 17:02:30 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 July 2020 00:02:43 UTC
@ricea commented on this pull request. > + + <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: + 1. Let |data| be the data of the message. + 1. If ! [$Type$](|data|) is not Object, return. I'm uncomfortable using asserts in a case that implementations absolutely must handle. There's a big difference between an error being ignored because the current render process is compromised, and an error being ignored become some other render process is compromised. -- 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_r452553424
Received on Friday, 10 July 2020 00:02:43 UTC