Function throws

Source
pub fn throws(
    block: &Function,
    error: Option<&Object>,
    message: Option<&JsString>,
) -> Result<(), JsValue>