fix wasm build

This commit is contained in:
Guy Korland 2019-08-14 13:08:03 +03:00 committed by freestrings
parent 88e6320cf7
commit b2e27b423a

View File

@ -56,8 +56,8 @@ where
} }
} }
fn replace_fun(v: &Value, fun: &js_sys::Function) -> Value { fn replace_fun(v: Value, fun: &js_sys::Function) -> Value {
match JsValue::from_serde(v) { match JsValue::from_serde(&v) {
Ok(js_v) => match fun.call1(&JsValue::NULL, &js_v) { Ok(js_v) => match fun.call1(&JsValue::NULL, &js_v) {
Ok(result) => match into_serde_json(&result) { Ok(result) => match into_serde_json(&result) {
Ok(json) => json, Ok(json) => json,