Function try_catch

Source
pub fn try_catch<R>(run: impl FnOnce() -> R) -> Result<R, JsError>