Skip to content

Commit 0838778

Browse files
committed
fixup! Runtime: add js primitives for OCaml 5.4
1 parent e3c7181 commit 0838778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/js/sys.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ function caml_sys_io_buffer_size(_unit) {
377377
//Requires: caml_string_of_jsstring
378378
//Version: >= 5.4
379379
function caml_sys_temp_dir_name(_unit) {
380-
if (os_type === "Win32" && require("node:os").tmpdir) {
381-
return caml_string_of_jsstring(globalThis.os.tmpdir());
380+
if (os_type === "Win32") {
381+
return caml_string_of_jsstring(require("node:os").tmpdir());
382382
} else {
383383
return caml_string_of_jsstring("");
384384
}

0 commit comments

Comments
 (0)