Run the following commands to set up the required dependencies:
# Download and run Mozilla's bootstrap script
curl -O https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
python3 bootstrap.py --vcs=git
# Add the WebAssembly target for Rust
rustup target add wasm32-wasi
# Install Wasmtime (WebAssembly runtime)
curl https://wasmtime.dev/install.sh -sSf | bashAfter running these commands, you can delete the mozilla-unified directory if it was created during bootstrapping.
./js/src/devtools/automation/autospider.py wasiThis script will automatically configure and build SpiderMonkey for the WASI target.
wasmtime obj-spider/js.wasmThis executes the compiled WebAssembly SpiderMonkey binary using Wasmtime.