mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-25 01:12:17 +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 {
|
||||
match JsValue::from_serde(v) {
|
||||
fn replace_fun(v: Value, fun: &js_sys::Function) -> Value {
|
||||
match JsValue::from_serde(&v) {
|
||||
Ok(js_v) => match fun.call1(&JsValue::NULL, &js_v) {
|
||||
Ok(result) => match into_serde_json(&result) {
|
||||
Ok(json) => json,
|
||||
|
Loading…
x
Reference in New Issue
Block a user