- From: Adam Rice <notifications@github.com>
- Date: Fri, 10 Jul 2020 17:22:37 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 11 July 2020 00:22:50 UTC
@ricea commented on this pull request. > + 1. Let |result| be [$PackAndPostMessage$](|port|, |type|, |value|). + 1. If |result| is an abrupt completion, + 1. Perform ! [$CrossRealmTransformSendError$](|port|, |result|.\[[Value]]). + 1. Return [=a promise rejected with=] |result|.\[[Value]]. + 1. Otherwise, return [=a promise resolved with=] undefined. + +</div> + +<div algorithm> + <dfn abstract-op lt="CrossRealmTransformSendError">CrossRealmTransformSendError(|port|, + |error|)</dfn> performs the following steps: + + 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> `PackAndPostMessage()` doesn't create a promise. -- 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_r453129970
Received on Saturday, 11 July 2020 00:22:50 UTC