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

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?


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 )

-- 
Simon Pieters
Opera Software

Received on Wednesday, 1 October 2014 10:08:45 UTC