We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fc181f commit ebfa967Copy full SHA for ebfa967
node/src/lib.rs
@@ -343,7 +343,7 @@ impl<'i> From<CompileError<'i>> for napi::Error {
343
impl<'i> From<CompileError<'i>> for wasm_bindgen::JsValue {
344
fn from(e: CompileError) -> wasm_bindgen::JsValue {
345
match e {
346
- CompileError::SourceMapError(e) => e.into(),
+ CompileError::SourceMapError(e) => js_sys::Error::new(&e.to_string()).into(),
347
_ => js_sys::Error::new(&e.reason()).into()
348
}
349
0 commit comments