forked from rustwasm/wasm-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add math-related intrinsics/functions for
JsValue
s (rustwasm#2629)
* Allow accessing JS math operators from Rust Useful for dealing with JS `BigInt`s * Add `typeof` and `in` methods/intrinsics * Add comparison operators * Remove Object.is intrinsic * Make conversion into f64 faillible * Add `#[inline]`s * Fix methods to make them take references * cargo fmt * Add BigInt to js-sys (no constructor yet) * Remove useless import * Fix UI tests * Add BigInt constructor * Allow catching `to_string` method for BigInt * Fix tests again * Add inlines * Rework PartialEq impl * Implement FromStr for BigInt * Add more inlines * Update formatting * Add more trait impls and feature for integration with `rust-num` * Add `PartialOrd` and `Ord` impls for more types * Cargo fmt * Remove `num-traits` from `wasm-bindgen`, integrate `js-sys` with `rust-num` further * Update Cargo.toml * Update Rust version for CI (to allow proc-macro2 to build again) * Fix link in Markdown * Remove all `rust-num` code from `js-sys`
- Loading branch information
1 parent
965b88c
commit d6d056c
Showing
6 changed files
with
1,176 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.