We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c7181 commit 0838778Copy full SHA for 0838778
runtime/js/sys.js
@@ -377,8 +377,8 @@ function caml_sys_io_buffer_size(_unit) {
377
//Requires: caml_string_of_jsstring
378
//Version: >= 5.4
379
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());
+ if (os_type === "Win32") {
+ return caml_string_of_jsstring(require("node:os").tmpdir());
382
} else {
383
return caml_string_of_jsstring("");
384
}
0 commit comments