aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/defs.js3
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;