From e3346f1c04a9e63cddfc23c9c5352719a2a0cc95 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/test_js_of_ocaml.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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