notes
notes copied to clipboard
RARVM: webassemblyjs
Looking into the issues, https://github.com/xtuc/webassemblyjs/ doesn't seem to be a complete or fully functional implementation. It seems to be well written, but wabt-compiled, wasm-metered .wasm files do not seem to be validated correctly.
I haven't been able to find another Javascript-interpreter so far. I doubt there is another that would allow me to access the runtime state (stack etc.) as easily as this one. It may be possible to cross-compile another implementation - for example https://github.com/kanaka/warpy - but this would be connected with much more effort.
Interfacing with Javascript would be another problem (it would be necessary to write glue code that connects external function calls through Javascript to Javascript functions).