summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/luaconf.js')
-rw-r--r--src/luaconf.js12
1 files changed, 12 insertions, 0 deletions
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