Following the announcement of Safari 5 [ 5.0 (7533.16) ] today, I did some due diligence and ran it through the json-object, array, boolean and string Worker message cases that I had produced for testing against Chrome 5. The results are in and thankfully consistent – so not much to report here accept that – yes – Safari 5′s Web Worker API has been updated to fully support complex messages as arguments to postMessage() natively.
Nothing new, but here are the cases if you want to try them yourself:
*Edit*
In the time since this was originally published, Chrome, Safari & Opera now support complex JSON messages.
3 Comments
What part of the web worker implementation is resultOf testing?
Nothing. Not one thing. Not even kind of.
It’s just there to look visually stimulating to my eyes.
See, even it’s return value alludes to its own use: ‘returned from self executing function’
… Because a function any other way would be non-thread safe. But look on the bright side, now I’ll be able to remove that obnoxious JSON.stringify/parse code from jQuery.Hive/Pollen.