Re: [whatwg/streams] can streams be transferred via postMessage()? (#276)

> we build something on top of the current draft, by reestablishing the state with a special message whose contents are [[state]], [[storedError]], and maybe [[disturbed]]? I guess it gets a decent bit uglier if we also have to do [[queue]] and [[queueTotalSize]], but I think that'd be all of it...

We don't have the other end of the message port. It's still in the original realm. So our only communication channel is the |dataHolder|. Then add in the fact that there may be a message in transit from the original realm that's trying to change our state at the same time we're trying to clone it and the whole thing becomes very painful.

-- 
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/276#issuecomment-656336260

Received on Thursday, 9 July 2020 20:31:14 UTC