JavaScript (ECMAScript) ahead-of-time compiler
https://js2.loopdive.com β// readme
js2wasm
Direct AOT compilation from JavaScript and TypeScript to machine code (current target WebAssembly GC).
Status: early-stage research prototype β a tech demo, not a production-ready compiler.
js2wasmis an experimental ahead-of-time JavaScript/TypeScript-to-WasmGC compiler under active development. It explores one specific point in the design space: full ECMAScript backwards compatibility via direct AOT compilation, with no JavaScript engine or interpreter bundled into the output. It does not claim production readiness, full language coverage, or stable APIs β expect rough edges, gaps, and breaking changes. Beyond the auto-updated conformance figure below, live numbers live in STATUS.md (they change frequently and are not otherwise duplicated here).
js2wasm compiles source code into WasmGC binaries without embedding a JavaScript interpreter or shipping a bundled runtime. That avoids the runtime tax common in the interpreter-based and engine-embedding approaches β where a JavaScript interpreter or full engine is compiled to Wasm and shipped inside every module β and keeps the output aligned withβ¦