Function wasm_bindgen::throw [−][src]
pub fn throw(s: &str) -> !
Throws a JS exception.
This function will throw a JS exception with the message provided. The function will not return as the wasm stack will be popped when the exception is thrown.