Bindings to Duktape in the browser.
Planned:
- [ ] An API for Duktape's debugger
- [ ] An event loop (Probably libuv)
- [ ] setTimeout, setInterval
var duktape = require('duktape-wasm')
var runtime = duktape()
runtime.on('ready', () => {
runtime.eval('var a = 1;')
})
Register an event listener.
-
ready
: Called when the wasm module has finished loading.
Ask Duktape to evaluate a javascript string.