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/lbaselib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lbaselib.js') diff --git a/src/lbaselib.js b/src/lbaselib.js index c598474..874a868 100644 --- a/src/lbaselib.js +++ b/src/lbaselib.js @@ -5,7 +5,7 @@ const lauxlib = require('./lauxlib.js'); let lua_writestring; let lua_writeline; -if (WEB) { +if (typeof process === "undefined") { let buff = []; lua_writestring = function(s) { buff = buff.concat(s); -- cgit v1.2.3-54-g00ecf