Skip to content

Assertion failed while compiling #531

@zoggy

Description

@zoggy

Hello,

With js_of_ocaml 2.8.2:

$ js_of_ocaml --pretty --noinline \
    --disable staticeval --disable share \
     +js_of_ocaml/nat.js test_js.js.byte -o test_js.js
js_of_ocaml: You found a bug. Please report it at https://github.com/ocsigen/js_of_ocaml/issues :
Error: File "generate.ml", line 1127, characters 8-14: Assertion failed

To reproduce, checkout current master of https://github.com/zoggy/xtmpl/ and:

make all
make test_js.js

Without --disable staticeval --disable share, execution of the produced javascript code raises a TypeError: _v0_ is not a function .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions