File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
crates/web-sys/tests/wasm Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ extern crate wasm_bindgen_futures;
7
7
extern crate wasm_bindgen_test;
8
8
extern crate web_sys;
9
9
10
- use wasm_bindgen:: { JsValue , JsCast } ;
11
10
use wasm_bindgen_test:: * ;
12
11
13
12
wasm_bindgen_test_configure ! ( run_in_browser) ;
@@ -60,8 +59,10 @@ pub mod indexeddb;
60
59
61
60
#[ wasm_bindgen_test]
62
61
fn deref_works ( ) {
63
- let x = JsValue :: from ( 3 ) ;
64
- let x = x. unchecked_into :: < web_sys:: XmlHttpRequestUpload > ( ) ;
65
- let y: & web_sys:: XmlHttpRequestEventTarget = & x;
66
- drop ( y) ;
62
+ fn _check ( a : & web_sys:: XmlHttpRequestUpload ) {
63
+ let _x: & web_sys:: XmlHttpRequestEventTarget = a;
64
+ let _x: & web_sys:: EventTarget = a;
65
+ let _x: & js_sys:: Object = a;
66
+ let _x: & wasm_bindgen:: JsValue = a;
67
+ }
67
68
}
You can’t perform that action at this time.
0 commit comments