Re: [geometry] Expose DOMPoint, DOMRect, DOMMatrix to Workers

On Oct 1, 2014, at 8:30 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> 
> 
> On Wed, Oct 1, 2014 at 3:08 AM, Simon Pieters <simonp@opera.com> wrote:
> On Wed, 01 Oct 2014 09:30:22 +0200, Dirk Schulze <dschulze@adobe.com> wrote:
> 
> Hi,
> 
> I plan to expose the interfaces DOMPoint, DOMRect, DOMMatrix and the readonly pendants to Workers as well. Currently they are just exposed to Window and therefore can’t be created in Workers. There is no need for this limitation. Any objections?
> 
> What is the use case?
> 
> We want to make more API's available in workers (ie canvas workers) so we need  primitives such as these supported there as well.
>  
> You should also make them cloneable and/or transferable (whichever is appropriate) if you do that.
> 
> https://html.spec.whatwg.org/multipage/infrastructure.html#safe-passing-of-structured-data
> 
> (That might be moved to the ES spec at some point, http://wiki.ecmascript.org/doku.php?id=strawman:structured_clone )
> 
> Is it really necessary to make them transferable? It seems that it's easy enough to use the stringifier to accomplish this.

I agree with Rik here.

Greetings,
Dirk

Received on Thursday, 2 October 2014 07:28:48 UTC