JSCPP
JSCPP copied to clipboard
Webworkers cannot handle includes
When the config variable is sent to the WebWorker, functions cannot be sent. There is an explicit work around using this.hooks for stdio.write, so that the write function still exists mainthread side.
However, the load function on custom includes is not saved as a hook and therefore the postMessage to the webworker does not work.
Unfortunate... our target audience has code that is sleeping a lot. So running on the main thread is not good :(