bytecodealliance / ComponentizeJS

JS -> WebAssembly Component
Apache License 2.0
242 stars 32 forks source link

WASI Stubs #31

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

This stubs out the unused WASI APIs used in Spidermonkey as they are mostly unused.

By default, this disables console.log from printing to stdout, with a new option, enableStdout: bool to reenable logging which then brings back in the WASI dependence. In future this should be using wasi logging directly.