Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Aug 26, 2024
1 parent 6ec6e75 commit f90904b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/js_of_ocaml/json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ let input_reviver =
let unsafe_input s =
match Sys.backend_type with
| Other "wasm_of_ocaml" ->
failwith
"Json.unsafe_input: not implemented (and not planned) in the Wasm backend as the \
inverse of `output` is not implementable"
(* https://github.com/ocsigen/js_of_ocaml/pull/1660#discussion_r1731099372
The encoding of OCaml values is ambiguous since both integers and floats
are mapped to numbers *)
failwith "Json.unsafe_input: not implemented in the Wasm backend"
| _ -> json##parse_ s input_reviver

class type obj = object
Expand Down

0 comments on commit f90904b

Please sign in to comment.