From ad57b7efbcafa3b22cb0efd40ea875421c18397c Mon Sep 17 00:00:00 2001 From: anweiss <2326106+anweiss@users.noreply.github.com> Date: Mon, 26 Sep 2022 14:54:48 -0400 Subject: [PATCH] fix wasm build error --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 087f6481..c1d0cd37 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -3577,7 +3577,7 @@ pub fn format_cddl_from_str(input: &str) -> result::Result { Err(Error::INCREMENTAL) => { if !p.errors.is_empty() { return Err( - JsValue::from_serde( + serde_wasm_bindgen::to_value( &p.errors .iter() .filter_map(|e| {