From d46b886875d2b8c1f7579a6ffbc3ec67c4557959 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 2 Jun 2020 14:57:21 -0500 Subject: [PATCH] Remove JavaScript error from non-JavaScript builds. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 6c71641..6a9ca6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,7 @@ pub enum Error { IO(#[from] std::io::Error), #[error("Value not received")] NoneError, + #[cfg(target_arch = "wasm32")] #[error("JavaScript error: [0])]")] JavaScriptError(wasm_bindgen::JsValue), #[cfg(windows)]