Remove JavaScript error from non-JavaScript builds.

This commit is contained in:
Nolan Darilek 2020-06-02 14:57:21 -05:00
parent c24c1d3230
commit d46b886875
1 changed files with 1 additions and 0 deletions

View File

@ -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)]