- From: Adam Rice <notifications@github.com>
- Date: Fri, 10 Jul 2020 18:38:13 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 11 July 2020 01:38:25 UTC
@ricea commented on this pull request. > + 1. Let |writable| be a [=new=] {{WritableStream}}. + 1. Perform ! [$SetUpCrossRealmTransformWritable$](|writable|, |port1|). + 1. Let |promise| be ! [$ReadableStreamPipeTo$](|value|, |writable|, false, false, false, undefined). + 1. Set |promise|.\[[PromiseIsHandled]] to true. + 1. Let |messagePortDataHolder| be { \[[Type]]: `"MessagePort"` }. + 1. Perform {{MessagePort}}'s transfer steps <!-- TODO(ricea): Link this somehow --> with |port2| + and |messagePortDataHolder|. + 1. Set |dataHolder|.\[[port]] to |messagePortDataHolder|. + +</div> + +<div algorithm="ReadableStream transfer receiving steps"> +Their [=transfer-receiving steps=], given |dataHolder| and |value|, are: + + 1. Let |port| be a new {{MessagePort}}. + 1. Perform {{MessagePort}}'s transfer-receiving steps with |dataHolder|.\[[port]] and |port|. Done. -- 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_r453139363
Received on Saturday, 11 July 2020 01:38:25 UTC