pub fn gen_wasm_error_converter(error: &ErrorDef, core_import: &str) -> String
Generate a converter function that maps a core error to JsValue.
JsValue