set_error_hook

Function set_error_hook 

Source
pub fn set_error_hook()
Examples found in repository?
examples/main.rs (line 39)
38async fn main() {
39    rwasm::set_error_hook();
40    // Log something to the console.
41    rwasm::log("async fn main() says: Hi!");
42    // Make a string uppercase from JS and return it to Rust.
43    make_string_uppercase_from_js("this will be uppercase!");
44    main_async().await;
45    rwasm::log("async fn main() says: Bye!");
46}