.cargo/vendor/wasm-bindgen/tests/worker/shared.rs
raw| 1 | #![cfg(target_arch = "wasm32")] |
| 2 | |
| 3 | extern crate js_sys; |
| 4 | extern crate wasm_bindgen; |
| 5 | extern crate wasm_bindgen_test; |
| 6 | |
| 7 | use wasm_bindgen::prelude::*; |
| 8 | use wasm_bindgen_test::wasm_bindgen_test_configure; |
| 9 | |
| 10 | wasm_bindgen_test_configure!(run_in_shared_worker); |
| 11 | |
| 12 | pub mod modules; |
| 13 | |
| 14 | // should not be executed |
| 15 | #[wasm_bindgen(start)] |
| 16 | fn start() { |
| 17 | panic!(); |
| 18 | } |