quickjs-oxide is a Rust JavaScript engine available through its command-line application, embedding API, native adapter and WebAssembly build. The crate layout and the host boundary are in the architecture guide; Execution and the heap describe the core's loop, caches, heap and collector, and Execution and performance their measurement.
- The front end (
src/engine/compiler) parses Script and ECMAScript Module source, resolves bindings and emits stack code; the register lowering (src/engine/compiler/register) turns each function into a code unit ofquickjs-oxide-core. The core validates each unit once when it is published. - The core runs register bytecode in one loop over register windows, with inline caches for property reads and writes, global accesses and construction, a fast path for iterating ordinary arrays, and suspension for generators and async functions.
qjs --disassemble FILEprints the register code. - The heap holds NaN-boxed values, typed arenas, a value heap, shapes with validity cells and a mark-sweep collector that runs on heap growth.
RuntimeOptionssets the collection threshold, its growth factor, a heap cap and the register file's limit;MemoryReportreports what every part of the runtime holds. - The core implements objects, strings, numbers, BigInts, regular expressions (through
quickjs-oxide-regexp), binary data, collections, weak references, Promises, jobs, modules,SharedArrayBuffer/Atomicsand the corresponding builtins. - A runtime has one realm.
withis an earlySyntaxError, directevalruns as indirect eval, and nothing readsSymbol.speciesorSymbol.unscopables; the deviation ledger records each. - The embedding API (
quickjs_oxide::engine::api::core) exposesRuntime,Context,Value, theHosttrait, host functions that receive aScope, host objects, module loaders that receive aModuleScope,RuntimeOptionsand the collector, memory and inline-cache reports. - Host adapters supply environment capabilities:
SystemHost(adapters/native) andWebHost(adapters/web). Applications own file loading, output, diagnostics and job driving. qjsand the WebAssembly build run the engine through the embedding API. Exact source bytes, malformed string data and diagnostic positions travel through the embedding and loader APIs.
The authoritative Test262 vector has:
- 81,441 passes out of the 83,562 variants in QuickJS 2026-06-04's scope (97.462%)
- 81,441 full-corpus passes out of 102,037 variants (79.815%)
- 83,354 eligible variants out of 102,037 (81.690%)
- 1,913 failures and no timeouts among the 83,354 eligible variants
The profile, admission vector and result hashes are recorded in dev-support/test262/current.conf. Test262 guidance explains the runner and metric definitions.
cargo test --locked --workspace --all-targets
cargo test --locked --workspace --features test262-host --lib --bins
cargo test --locked -p quickjs-oxide-core --features gc-stress
cargo build -p quickjs-oxide-cli --features gc-stress --bin qjs
python3 scripts/checks/check-gc-stress.py --qjs target/debug/qjs
./scripts/checks/check-oracle-registry.sh
./scripts/quickjs/test-quickjs-fixtures.sh --all
./scripts/quickjs/test-quickjs-c-oracles.sh --check
./scripts/checks/test-parity-slice.sh
./scripts/test262/test-test262.sh --check
./scripts/test262/test-test262.sh --focused
TEST262_WORKERS=2 ./scripts/test262/test-test262.sh --full
./scripts/web/test-site.shcheck-gc-stress.py runs the fixed probes and the core's corpus programs on qjs --gc-stress=1, collecting before every allocation, and compares their output with the normal run.