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

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.

Received on Wednesday, 1 October 2014 18:30:40 UTC