Transform JSON into a namespace

This commit is contained in:
Ingvar Stepanyan
2019-04-13 02:13:47 +01:00
parent 75c2971ab9
commit 62b7d3e3c4
2 changed files with 57 additions and 68 deletions

View File

@ -198,15 +198,3 @@ fn stringify_with_replacer_and_space_error() {
let err_msg: String = From::from(err.message());
assert!(err_msg.contains("rust really rocks"));
}
#[wasm_bindgen_test]
fn json_extends() {
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_name = JSON)]
static json: JSON;
}
assert!(json.is_instance_of::<Object>());
let _: &Object = json.as_ref();
}