W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] WebWorkers and images

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 14 Jan 2011 09:10:31 -0500
Message-ID: <4D305957.9060000@mit.edu>
On 1/14/11 5:42 AM, Jorge wrote:
> Are you sure there's really a "maybe" for methods ?
> Methods' functions have access to (at least) the sender's global context and contexts can't be shared, how to deal with that if not by prohibiting methods ?

We might need some ES spec changes/additions to produce methods that 
would be safe to pass.  I agree that it's not that feasible for now.

(Though with enough hackery it could all be done: the method could sync 
proxy the property access on things that are not on the worker thread to 
the main thread, etc.  It's probably not worth it.)

> WRT to prototypes, to keep it simple, I think .__proto__ should be null, because we can't pass (and make unreachable) things like Object.prototype :-)

So proto is null on the result of the clone; not required to be null on 
the thing being cloned.  Right?

Received on Friday, 14 January 2011 06:10:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC