I would like to pass a function (or functions) via a postMessage() to a web worker, because I can\'t refer to regular files.
postMessage()
To kick the web worker off, I a
Turns out this method works fine, there was merely a bug in my worker:
var result = greeter("john");
should be
var result = greet("john");
which makes sense - I'm passing the greeter variable to the worker, but there's no reason for it to know the variable name of the object I'm passing.