diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:48:09 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:48:09 +0200 |
commit | a40ba55fa1784ef59adb858d6eebd6315a8ecf32 (patch) | |
tree | 0d2d304004f1d226f94f33ef13c819d844bcdc2d /src/defs.js | |
parent | 3fb1e4dd487ee898a249023c36508cf8b9bdb98c (diff) | |
download | fengari-a40ba55fa1784ef59adb858d6eebd6315a8ecf32.tar.gz fengari-a40ba55fa1784ef59adb858d6eebd6315a8ecf32.tar.bz2 fengari-a40ba55fa1784ef59adb858d6eebd6315a8ecf32.zip |
Fixed bad os.platform test
Diffstat (limited to 'src/defs.js')
-rw-r--r-- | src/defs.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/defs.js b/src/defs.js index be27032..ba58fa7 100644 --- a/src/defs.js +++ b/src/defs.js @@ -292,8 +292,7 @@ module.exports.LUA_EXEC_DIR = LUA_EXEC_DIR; const LUA_VDIR = LUA_VERSION_MAJOR + "." + LUA_VERSION_MINOR; module.exports.LUA_VDIR = LUA_VDIR; -let os = false; -if (!WEB && os.platform() === 'win32') { +if (!WEB && (require('os')).platform() === 'win32') { const LUA_DIRSEP = "\\"; module.exports.LUA_DIRSEP = LUA_DIRSEP; |