Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks for js_of_ocaml #10

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Tweaks for js_of_ocaml #10

merged 1 commit into from
Jan 19, 2024

Conversation

Armael
Copy link
Contributor

@Armael Armael commented Jan 19, 2024

In jsoo closures are js functions that are not inspectable, so treat them as abstract.
Right now this simply displays the contents of a closure block as . I don't know if we could display slightly more info?
In any case this helps not crashing on closures when running in jsoo.

src/core/repr.ml Outdated Show resolved Hide resolved
In other backends (e.g. js_of_ocaml), closures might not be
inspectable (in jsoo they are javascript closures), so treat them as
abstract.
@Armael
Copy link
Contributor Author

Armael commented Jan 19, 2024

Fixes #8 .

@Gbury Gbury merged commit 7c5f9f8 into Gbury:master Jan 19, 2024
4 checks passed
@Armael Armael mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants