You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assertion failure while trying to use the library from OCaml #1485
Thanks for pushing the package to OPAM. I gave it a quick try, and triggered an assertion failure:
Fatal error: exception File "binary/encode.ml", line 433, characters 37-43: Assertion failed
Raised at Encode.E.instr in file "binary/encode.ml", line 433, characters 37-49
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from Encode.E.list in file "binary/encode.ml" (inlined), line 77, characters 18-32
Called from Encode.E.code in file "binary/encode.ml", line 804, characters 4-19
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from Encode.E.section in file "binary/encode.ml", line 712, characters 6-9
Called from Encode.E.module_ in file "binary/encode.ml", line 899, characters 4-27
Called from Encode.encode in file "binary/encode.ml", line 906, characters 2-13
Called from OutputJs.write_all.(fun) in file "src/OutputJs.ml", line 89, characters 12-38
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from OutputJs.write_all in file "src/OutputJs.ml", line 80, characters 2-714
Called from Karamel in file "src/Karamel.ml", line 692, characters 4-64
Can the error message be made a little more meaningful in a future release? (I am aware that I am not generating a correct AST.)
Activity
rossberg commentedon Jun 7, 2022
@msprotz, please have a go at reviewing #1488. With that, you should get an exception
Encode.Code "illegal instruction i64.wrap_i64"instead.