Skip to content

Commit 84d5428

Browse files
committed
Work around breaking change in js_of_ocaml 5.9.0
`js_of_ocaml` 5.9.0 started using `node:` prefixed modules, which do not exist on old node versions.
1 parent 6ccc15b commit 84d5428

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@
222222
(<> %{os_type} Win32)
223223
(<> %{architecture} i386)
224224
(<> %{architecture} riscv)))
225+
(action
226+
;; It is fine if 'node:fs' cannot be found. js_of_ocaml>=5.9 does not like
227+
;; old node versions.
228+
(with-accepted-exit-codes
229+
(or 0 1)
230+
(run node %{test})))
225231
(libraries picos))
226232

227233
;;

0 commit comments

Comments
 (0)