We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec6e75 commit f90904bCopy full SHA for f90904b
lib/js_of_ocaml/json.ml
@@ -141,9 +141,10 @@ let input_reviver =
141
let unsafe_input s =
142
match Sys.backend_type with
143
| Other "wasm_of_ocaml" ->
144
- failwith
145
- "Json.unsafe_input: not implemented (and not planned) in the Wasm backend as the \
146
- 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 *)
147
+ failwith "Json.unsafe_input: not implemented in the Wasm backend"
148
| _ -> json##parse_ s input_reviver
149
150
class type obj = object
0 commit comments