wasm-bindgen/crates/js-sys
Michael Hoffmann f5f541337c Create bindings for RegExp (#580)
* Create bindings for RegExp

* Address review comments

- Split the constructor into two: `new` and `new_regexp`. This way we
  can write RegExp::new("foo", "g") rather than
  RegExp::new(&JsValue::from("foo"), "g").

- The js_name for the setter for lastIndex should be `lastIndex` and
  not `set_lastIndex`. But fixing this causes a panic. Remove the
  method for now.
2018-07-29 16:13:42 -07:00
..
src Create bindings for RegExp (#580) 2018-07-29 16:13:42 -07:00
tests Create bindings for RegExp (#580) 2018-07-29 16:13:42 -07:00
Cargo.toml js-sys: Add some more Cargo.toml metadata like license 2018-07-26 15:06:24 -07:00
CHANGELOG.md js-sys: Add a js-sys specific CHANGELOG.md 2018-07-26 15:05:00 -07:00
README.md Move the js module to a js_sys crate (#512) 2018-07-19 14:30:58 -05:00

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.

Progress for this crate can be tracked at #275.