JSCPP icon indicating copy to clipboard operation
JSCPP copied to clipboard

Webworkers cannot handle includes

Open ForrestFire0 opened this issue 6 months ago • 0 comments

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 :(

ForrestFire0 avatar Aug 09 '24 18:08 ForrestFire0