aboutsummaryrefslogtreecommitdiff
path: root/src/defs.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-09 11:36:14 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-09 11:36:14 +0200
commit697ef457e1b0eabd3aa9fb2332a5d04478b39603 (patch)
tree4d93ec7e3d1cc698a5c54de9785d688bf510ed15 /src/defs.js
parent3e439ed653093e6e124a4997f64053164f1043b8 (diff)
downloadfengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.gz
fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.bz2
fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.zip
Webpack (single bundle for now)
Diffstat (limited to 'src/defs.js')
-rw-r--r--src/defs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defs.js b/src/defs.js
index 3b5a923..be27032 100644
--- a/src/defs.js
+++ b/src/defs.js
@@ -293,7 +293,7 @@ const LUA_VDIR = LUA_VERSION_MAJOR + "." + LUA_VERSION_MINOR;
module.exports.LUA_VDIR = LUA_VDIR;
let os = false;
-if (typeof require === "function" && (os = require('os')) && typeof os.platform === "function" && os.platform() === 'win32') {
+if (!WEB && os.platform() === 'win32') {
const LUA_DIRSEP = "\\";
module.exports.LUA_DIRSEP = LUA_DIRSEP;