From 382bfe27205d5ade172fa088fcab0b2e123838e4 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 10 Dec 2017 01:01:43 +1100 Subject: Use `typeof process === "undefined"` instead of WEB global This removes requirement to set global.WEB before requiring in node --- src/defs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/defs.js') diff --git a/src/defs.js b/src/defs.js index 3ebb747..268e76e 100644 --- a/src/defs.js +++ b/src/defs.js @@ -291,7 +291,7 @@ module.exports.LUA_EXEC_DIR = LUA_EXEC_DIR; const LUA_VDIR = LUA_VERSION_MAJOR + "." + LUA_VERSION_MINOR; module.exports.LUA_VDIR = LUA_VDIR; -if (WEB) { +if (typeof process === "undefined") { const LUA_DIRSEP = "/"; module.exports.LUA_DIRSEP = LUA_DIRSEP; -- cgit v1.2.3-54-g00ecf