Skip to content

Commit

Permalink
add more debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Feb 22, 2024
1 parent b19c612 commit a524b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mcla_wasm/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ func asJsValue(v any) (res js.Value) {
reflect.Float32, reflect.Float64:
return js.ValueOf(v)
}
println("Marshaling in asJsValue:", v)
buf, err := json.Marshal(v)
if err != nil {
panic(err)
}
var v1 any
println("Unmarshaling in asJsValue:", (string)(buf))
if err = json.Unmarshal(buf, &v1); err != nil {
panic(err)
}
Expand Down

0 comments on commit a524b18

Please sign in to comment.