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 519e691 commit ed5cdceCopy full SHA for ed5cdce
runtime/js/sys.js
@@ -377,7 +377,7 @@ 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" && globalThis.os.tmpdir) {
+ if (os_type === "Win32" && require('node:os').tmpdir) {
381
return caml_string_of_jsstring(globalThis.os.tmpdir());
382
} else {
383
return caml_string_of_jsstring("");
0 commit comments