From 21651359a7f07e4e39ca4e477bf85eeea98fffd2 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Thu, 28 Nov 2024 18:15:12 +0200 Subject: [PATCH] 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. --- test/dune | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/dune b/test/dune index 2a652c8d..48b81eb4 100644 --- a/test/dune +++ b/test/dune @@ -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)) ;;