From 0e7ae6679bc7950b93799500a7749fbe61690ffa Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 17 Feb 2017 07:28:36 +0100 Subject: LUA_REGISTRYINDEX --- src/luaconf.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/luaconf.js (limited to 'src/luaconf.js') diff --git a/src/luaconf.js b/src/luaconf.js new file mode 100644 index 0000000..b0456e3 --- /dev/null +++ b/src/luaconf.js @@ -0,0 +1,12 @@ +/*jshint esversion: 6 */ +"use strict"; + +/* +@@ LUAI_MAXSTACK limits the size of the Lua stack. +** CHANGE it if you need a different limit. This limit is arbitrary; +** its only purpose is to stop Lua from consuming unlimited stack +** space (and to reserve some numbers for pseudo-indices). +*/ +const LUAI_MAXSTACK = 1000000; + +module.exports.LUAI_MAXSTACK = LUAI_MAXSTACK; \ No newline at end of file -- cgit v1.2.3-54-g00ecf