From ae8f8e35ff3b480a8844bf92f06b9cdbec8e2587 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Thu, 28 Nov 2024 18:15:12 +0200 Subject: [PATCH] Work around for 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 | 2 +- test/test_js_of_ocaml.ml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/dune b/test/dune index 2a652c8d..0ce4ed69 100644 --- a/test/dune +++ b/test/dune @@ -222,7 +222,7 @@ (<> %{os_type} Win32) (<> %{architecture} i386) (<> %{architecture} riscv))) - (libraries picos)) + (libraries picos js_of_ocaml)) ;; diff --git a/test/test_js_of_ocaml.ml b/test/test_js_of_ocaml.ml index 66925ef0..501748ce 100644 --- a/test/test_js_of_ocaml.ml +++ b/test/test_js_of_ocaml.ml @@ -1,6 +1,6 @@ open Picos let () = - Printf.printf "Hello, from js_of_ocaml with Picos!\n%!"; let trigger = Trigger.create () in - Trigger.signal trigger + Trigger.signal trigger; + match Trigger.await trigger with None -> () | Some _ -> assert false