Function javy::to_js_error
source ยท pub fn to_js_error(cx: Ctx<'_>, e: Error) -> ErrorExpand description
Converts an anyhow::Error to a JSError.
If the error is an anyhow::Error this function will construct and throw
a JS Exception in order to construct the JSError.