babycat 0.0.14

An audio decoding and manipulation library, with bindings for C, Python, and WebAssembly.
use std::fmt::Display;

use wasm_bindgen::prelude::*;

#[allow(clippy::module_name_repetitions)]
pub fn throw_js_error<E: Display>(err: E) -> JsValue {
    let err_string: String = err.to_string();
    js_sys::Error::new(&err_string).into()
}