Skip to content

Commit

Permalink
Runtime: Sys.os_type should not be unix under node+windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 20, 2021
1 parent a9578a5 commit ab869a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/sys.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ function caml_sys_const_backend_type () {
//Provides: caml_sys_get_config const
//Requires: caml_string_of_jsbytes
function caml_sys_get_config () {
if (joo_global_object.process &&
joo_global_object.process.platform &&
joo_global_object.process.platform == "win32")
return [0, caml_string_of_jsbytes("Cygwin"), 32, 0];
return [0, caml_string_of_jsbytes("Unix"), 32, 0];
}

Expand Down

0 comments on commit ab869a1

Please sign in to comment.