Skip to content

Commit

Permalink
Work around breaking change in js_of_ocaml 5.9.0
Browse files Browse the repository at this point in the history
`js_of_ocaml` 5.9.0 started using `node:` prefixed modules, which do not exist
on old node versions.
  • Loading branch information
polytypic committed Nov 28, 2024
1 parent 6ccc15b commit 84d5428
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@
(<> %{os_type} Win32)
(<> %{architecture} i386)
(<> %{architecture} riscv)))
(action
;; It is fine if 'node:fs' cannot be found. js_of_ocaml>=5.9 does not like
;; old node versions.
(with-accepted-exit-codes
(or 0 1)
(run node %{test})))
(libraries picos))

;;
Expand Down

0 comments on commit 84d5428

Please sign in to comment.