Skip to content

Commit ebfa967

Browse files
committed
Fix wasm
1 parent 0fc181f commit ebfa967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl<'i> From<CompileError<'i>> for napi::Error {
343343
impl<'i> From<CompileError<'i>> for wasm_bindgen::JsValue {
344344
fn from(e: CompileError) -> wasm_bindgen::JsValue {
345345
match e {
346-
CompileError::SourceMapError(e) => e.into(),
346+
CompileError::SourceMapError(e) => js_sys::Error::new(&e.to_string()).into(),
347347
_ => js_sys::Error::new(&e.reason()).into()
348348
}
349349
}

0 commit comments

Comments
 (0)