ocsigen / js_of_ocaml

Compiler from OCaml to Javascript.
http://ocsigen.org/js_of_ocaml/
Other
952 stars 186 forks source link

Assertion fails in lib/parse_bytecode.ml #1599

Closed johnwhitington closed 5 months ago

johnwhitington commented 5 months ago

Describe the bug

I see:

js_of_ocaml -q nodestubs.js cpdfzlib.js cpdfcrypt.js coherentpdf.byte
js_of_ocaml: You found a bug. Please report it at https://github.com/ocsigen/js_of_ocaml/issues :
Error: File "compiler/lib/parse_bytecode.ml", line 870, characters 31-37: Assertion failed

To reproduce, download https://coherentpdf.com/tmp/jsbug.tar.gz and run make.

I have not yet tried to reduce to a minimal failing case. Obviously willing to, but I wanted to see if it rang any bells first, and what you suggest I try.

Versions

ocamlc 4.14.2, js_of_ocaml 5.7.1, MacOS.

hhugo commented 5 months ago

Can you test #1600 ?

johnwhitington commented 5 months ago

This works. Thanks for the prompt fix!