Skip to content

Commit

Permalink
Work around for 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 ae8f8e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
(<> %{os_type} Win32)
(<> %{architecture} i386)
(<> %{architecture} riscv)))
(libraries picos))
(libraries picos js_of_ocaml))

;;

Expand Down
4 changes: 2 additions & 2 deletions test/test_js_of_ocaml.ml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ae8f8e3

Please sign in to comment.