From 81a0e90a502faf9edebc63f54fce51aae4397e72 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 12 Nov 2017 21:47:20 +1100 Subject: src/loslib.js: Check that var exists in process.env before indexing Solves issues with os.getenv'hasOwnProperty' --- tests/loslib.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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'); -- cgit v1.2.3-70-g09d2