Gbury / ocaml-memgraph

A small library to output memory graph for ocaml values
MIT License
35 stars 3 forks source link

closures and js_of_ocaml #8

Closed Armael closed 7 months ago

Armael commented 9 months ago

Running ocaml-memgraph under js_of_ocaml means that the closure representation is different from native and bytecode. For instance, trying to display the graph for (fun () () -> ()) will raise an assertion failure in mk_closinfo.

One idea would be to read Sys.backend_type to avoid reading into a closure block in the Other case.

Armael commented 7 months ago

Fixed by #10 .