summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-11-12 21:47:20 +1100
committerdaurnimator <quae@daurnimator.com>2017-11-12 22:20:05 +1100
commit81a0e90a502faf9edebc63f54fce51aae4397e72 (patch)
treeddafa864320c720117d6efc73a22e29d1dcdd7da /tests
parent57027388763058b030a91e82d7cbfe04153aa38c (diff)
downloadfengari-81a0e90a502faf9edebc63f54fce51aae4397e72.tar.gz
fengari-81a0e90a502faf9edebc63f54fce51aae4397e72.tar.bz2
fengari-81a0e90a502faf9edebc63f54fce51aae4397e72.zip
src/loslib.js: Check that var exists in process.env before indexing
Solves issues with os.getenv'hasOwnProperty'
Diffstat (limited to 'tests')
-rw-r--r--tests/loslib.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/loslib.js b/tests/loslib.js
index 5f49043..2470359 100644
--- a/tests/loslib.js
+++ b/tests/loslib.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lua = require('../src/lua.js');
const lauxlib = require('../src/lauxlib.js');
const lualib = require('../src/lualib.js');