Re: [whatwg] Web Workers API

2010-07-02 Thread Oliver Hunt
All meesaging through postMessage uses the internal structured cloning algorithm detailed at http://www.w3.org/TR/2010/WD-html5-20100304/Overview.html#internal-structured-cloning-algorithm It's basically a deep copy, but has a few restrictions on the types cloned, and doesn't copy functions or

[whatwg] Web Workers API

2010-07-01 Thread Evan Ireland
Hi, The IDL for Worker in the Web Workers API specification shows: void postMessage(in any message, in optional MessagePortArray ports); I have a question regarding the 'any' type for message. If a caller of postMessage passes an object to a worker that is not a string, is it converted to