pub fn throw_str(s: &str) -> !
Throw a JS exception with the given message.
This function always panics when running outside of WASM.