Transform Reflect into a namespace

This commit is contained in:
Ingvar Stepanyan
2019-04-13 02:11:44 +01:00
parent fe939bc911
commit 75c2971ab9
2 changed files with 139 additions and 150 deletions

View File

@ -229,18 +229,6 @@ fn set_prototype_of() {
);
}
#[wasm_bindgen_test]
fn reflect_extends() {
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_name = Reflect)]
static reflect: Reflect;
}
assert!(reflect.is_instance_of::<Object>());
let _: &Object = reflect.as_ref();
}
#[wasm_bindgen_test]
fn reflect_bindings_handle_proxies_that_just_throw_for_everything() {
let p = throw_all_the_time();