A JavaScript code runner that runs arbitary JavaScript code inside a WebWorker.
It supports
- Timeout (terminates the worker when timeout is reached)
- Error Handling
- Bridges to Host Window
The spec is in spec/code-runner-spec.js
. You can run it by run spec.html
.
The example is available in test.html
.