QuickJS is a small and embeddable JavaScript engine. It supports the ES2019 specification including modules, asynchronous generators and proxies.
It optionally supports mathematical extensions such as big integers (BigInt), big floating point numbers (BigFloat) and operator overloading.
Install it with:
wapm install -g quickjs
Original Source: https://bellard.org/quickjs/quickjs-2019-07-09.tar.xz
Modifications: We made some changes to adapt the codebase to the WASI interface.
Without any arguments a simple REPL will be launched.
# Run a file
qjs --dir=. --module examples/hello_module.js
# Run the REPL
qjs
The following script will download the WASI SDK and build the Wasm binary.
./build.sh