This documentation is no longer maintained at this domain, and is now maintained at wasm-bindgen.github.io instead.

Testing

You can test the js-sys crate by running cargo test --target wasm32-unknown-unknown within the crates/js-sys directory in the wasm-bindgen repository:

cd wasm-bindgen/crates/js-sys cargo test --target wasm32-unknown-unknown

These tests are largely executed in Node.js right now via the wasm-bindgen-test framework