Move the js module to a js_sys crate (#512)

* Move the `js` module to a `js_sys` crate

* Update js-sys tests to pass again

* Update binding_to_unimplemented_apis_doesnt_break_everything

Remove its dependency on the `js` module

* Update metadata for js-sys

* Fix the `closures` example
This commit is contained in:
Alex Crichton
2018-07-19 14:30:58 -05:00
committed by GitHub
parent 3e2d1e6519
commit 6eef5f7b52
36 changed files with 683 additions and 605 deletions

View File

@ -8,3 +8,4 @@ crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = { path = "../.." }
js-sys = { path = "../../crates/js-sys" }

View File

@ -1,9 +1,10 @@
#![feature(use_extern_macros, wasm_import_module)]
extern crate wasm_bindgen;
extern crate js_sys;
use wasm_bindgen::js::Date;
use wasm_bindgen::js::JsString;
use js_sys::Date;
use js_sys::JsString;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]