- From: isonmad <notifications@github.com>
- Date: Sat, 29 Oct 2016 19:47:04 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Sunday, 30 October 2016 02:47:36 UTC
> you can't really tell if something is cloneable until you try to clone it (e.g. it may have a throwing getter property). So we couldn't really perform this check until we're ready to do the clone/transfer. Is cloning synchronously on enqueue, instead of on dequeue, not feasible/performant? I guess the queue has to stay in the underlyingSource's thread so that desiredSize is always known synchronously... Actually I always wondered why structured-clone isn't ever exposed as an API to javascript. Does any implementation of it exist outside of the engines themselves? [realistic-structured-clone](https://www.npmjs.com/package/realistic-structured-clone) tries but it says it's really incomplete (can't handle Map, Set, ArrayBuffer, etc). -- 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/244#issuecomment-257128679
Received on Sunday, 30 October 2016 02:47:36 UTC