From a40ba55fa1784ef59adb858d6eebd6315a8ecf32 Mon Sep 17 00:00:00 2001
From: Benoit Giannangeli <giann008@gmail.com>
Date: Tue, 9 May 2017 11:48:09 +0200
Subject: Fixed bad os.platform test

---
 src/defs.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src')

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;
 
-- 
cgit v1.2.3-70-g09d2