JavaScript polyfill for WebAssembly
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
third_party
.gitattributes
.gitignore
.gitmodules
LICENSE
README.md
astDecoder.ts
compile-watcher.bat
compile-watcher.sh
moduleDecoder.ts
opcodes.ts
package.json
runtests.html
wasm.ts

README.md

WebAssembly reference polyfill

This repository contains the (in-development) reference JS polyfill for WebAssembly. It offers a simple, extensible implementation of the WebAssembly binary format and a translator* that emits runnable JavaScript on the fly (to act as a substitute for a native implementation).

* Not implemented yet :-)

The reference polyfill is intended to serve as a middle ground between an interpreter and a highly-optimized polyfill, for scenarios where you need to debug a compute-heavy application. It also provides a great starting point for people who want to explore the format and is designed to be easy to integrate into tools that need to manipulate WebAssembly module files.