mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
This commit adds `#[derive(PartialEq, Eq)]` to many types throughout `js-sys`. These types are basically all based on `Object`, which means that `Object.is` can be used for `PartialEq` and the `Eq` requirements are upheld. The macro has also been updated to internally store the deref target instead of unconditionally storing `JsValue`, allowing `#[derive]` to work a bit better in these situations.
js-sys
Raw bindings to JS global APIs for projects using wasm-bindgen
. This crate is
handwritten and intended to work in all JS environments like browsers and
Node.js.