Expand description
PiWasm: WebAssembly polyfill for QuickJS runtime.
Provides globalThis.WebAssembly inside QuickJS, backed by wasmtime.
Enables JS extensions to use WebAssembly modules (e.g., Emscripten-compiled
code) even though QuickJS lacks native WebAssembly support.
Architecture:
- Native Rust functions (
__pi_wasm_*) handle compile/instantiate/call - A JS polyfill wraps them into the standard
WebAssemblynamespace - Optional staged virtual files and a small host import surface support Emscripten-style modules such as the DOOM overlay fixture