feat(bindings/crypto-js): Redirect errors to console.error.

This commit is contained in:
Ivan Enderlin
2022-07-18 09:51:44 +02:00
parent decd3fcb43
commit 3d1c96fbec

View File

@@ -155,8 +155,8 @@ mod inner {
#[wasm_bindgen(js_namespace = console, js_name = "warn")]
fn log_warn(message: String);
#[wasm_bindgen(js_namespace = console, js_name = "log")]
fn log(message: String);
#[wasm_bindgen(js_namespace = console, js_name = "error")]
fn log_error(message: String);
}
struct Layer {
@@ -215,7 +215,7 @@ mod inner {
Level::DEBUG => log_debug(message),
Level::INFO => log_info(message),
Level::WARN => log_warn(message),
Level::ERROR => log(message),
Level::ERROR => log_error(message),
}
}
}