Thanks for pointing out this example. My test suite only runs on desktop where this doesn’t trigger an error (it only shows up in js_of_ocaml, which uses the JavaScript Number type to represent ints), so I hadn’t caught it. This particular example now works, but it’s certainly possible there are others (I haven’t yet removed all exception-triggering conversions from the code).
1 Like