mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-25 09:22:19 +00:00
fix wasm build
This commit is contained in:
parent
88e6320cf7
commit
b2e27b423a
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user