wasm-bindgen 0.2.92

Easy support for interacting between JS and Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[wasm_bindgen_test]
#[should_panic]
fn should_panic() {
    panic!()
}

#[wasm_bindgen_test]
#[should_panic = "error message"]
fn should_panic_string() {
    panic!("error message")
}

#[wasm_bindgen_test]
#[should_panic(expected = "error message")]
fn should_panic_expected() {
    panic!("error message")
}