js2
js2 copied to clipboard
ECMAScript ahead-of-time compiler
**Is your feature request related to a problem? Please describe.** fail-components/webtransport uses a `.node` file for `google/quiche` dependency, and uses networking to implement `WebTransport` server and client. **Describe the solution...
Host mode: a number-initialised `var` assigned a string reads back as `NaN` (`var x = 1; x = "one"`)
_Disclosure: found and reduced with LLM-assisted differential testing; I checked the reproduction by hand on current `main`._ A `var`/`let` initialised with a number and later assigned a string reads back...
**Describe the bug** `--target wasai` is now creating a `.js` file and importing `"env" "__extern_get"` when importing `node:fs` **To Reproduce** ```shell bun ~/localscripts/*js2wasm/node_modules/@loopdive/js2/src/cli.ts nm_bun_sync_stream.ts --no-dts --no-wat -O4 --target=wasi --no-host-imports --emulate=none...
Is there any plan to support compilation to native binaries (for example by using LLVM or a C backend)?