From c7ef3aada90e6930bc29a1fc22d82f29f51bed91 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 26 Mar 2018 00:16:31 +1100 Subject: src/luaconf.js: Set LUAI_MAXSTACK back to PUC-Rio default FENGARICONF lets us override for travis --- .travis.yml | 2 +- src/luaconf.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb33e24..02a1448 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: script: - yarn lint - yarn build - - travis_wait yarn test + - FENGARICONF='{"LUAI_MAXSTACK":100000}' travis_wait yarn test notifications: email: false diff --git a/src/luaconf.js b/src/luaconf.js index 424d4ea..3ca3a24 100644 --- a/src/luaconf.js +++ b/src/luaconf.js @@ -19,8 +19,7 @@ const LUA_MININTEGER = -2147483648; ** its only purpose is to stop Lua from consuming unlimited stack ** space (and to reserve some numbers for pseudo-indices). */ -/* TODO: put back to 1000000. Node would go out of memory in some cases (e.g. travis) */ -const LUAI_MAXSTACK = conf.LUAI_MAXSTACK || 100000; +const LUAI_MAXSTACK = conf.LUAI_MAXSTACK || 1000000; /* @@ LUA_IDSIZE gives the maximum size for the description of the source -- cgit v1.2.3-70-g09d2