Skip to content

Commit ed5cdce

Browse files
hhugovouillon
andauthored
Update runtime/js/sys.js
Co-authored-by: Jérôme Vouillon <[email protected]>
1 parent 519e691 commit ed5cdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/js/sys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ 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" && globalThis.os.tmpdir) {
380+
if (os_type === "Win32" && require('node:os').tmpdir) {
381381
return caml_string_of_jsstring(globalThis.os.tmpdir());
382382
} else {
383383
return caml_string_of_jsstring("");

0 commit comments

Comments
 (0)