I would like to pass a function (or functions) via a postMessage()
to a web worker, because I can\'t refer to regular files.
To kick the web worker off, I a
For those who are looking for more generic answer: here is a plugin, which allows you to execute any function of your javascript code in a thread.
http://www.eslinstructor.net/vkthread/
Consider it as "function outsourcing". You pass any function to the plugin as an argument and get result in callback. You also can "outsource" object's methods, function with dependecies, anonymous function and lambda.
Enjoy.
--Vadim