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

On Wed, 01 Oct 2014 20:30:12 +0200, Rik Cabanier <cabanier@gmail.com>  
wrote:

> Is it really necessary to make them transferable?

I think it is necessary to make them transferable *or* cloneable (or  
both). I didn't want to say which one. But probably it is not necessary to  
make them transferable since the objects are usually lightweight, right?

> It seems that it's easy
> enough to use the stringifier to accomplish this.

It doesn't stringify in postMessage(), it throws DataCloneError if it's  
not cloneable or transferable. As a general rule, any object that can  
exist in workers and windows should also be able to be cloned or  
transfered.

-- 
Simon Pieters
Opera Software

Received on Thursday, 2 October 2014 08:10:10 UTC