aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-18 10:03:36 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-18 10:03:36 +0200
commitc709857c7d6d1af740a5763ac0c78e010dd1757e (patch)
tree5e95e7a5b624b9ada1336d4d4a5c42704da69941
parent3152eb68f451568ee547eef3772d0070642d9b2e (diff)
downloadfengari-c709857c7d6d1af740a5763ac0c78e010dd1757e.tar.gz
fengari-c709857c7d6d1af740a5763ac0c78e010dd1757e.tar.bz2
fengari-c709857c7d6d1af740a5763ac0c78e010dd1757e.zip
Temp require to run constructs.lua
-rw-r--r--tests/lua.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lua.js b/tests/lua.js
index 7a0fb9b..c230dea 100644
--- a/tests/lua.js
+++ b/tests/lua.js
@@ -10,6 +10,8 @@ const linit = require('../src/linit.js');
test('constructs.lua', function (t) {
let luaCode = `
+ _soft = true
+ require = function(lib) return _G[lib] end -- NYI
return dofile("tests/lua-tests/constructs.lua")
`, L;