summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-17 07:28:36 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-17 07:28:36 +0100
commit0e7ae6679bc7950b93799500a7749fbe61690ffa (patch)
tree6ba3cae358f381468ea4d07ea85f40ce861aa582 /src/luaconf.js
parentbe0757bcfc96dc6146d72e9536fa8e32d9a3dec7 (diff)
downloadfengari-0e7ae6679bc7950b93799500a7749fbe61690ffa.tar.gz
fengari-0e7ae6679bc7950b93799500a7749fbe61690ffa.tar.bz2
fengari-0e7ae6679bc7950b93799500a7749fbe61690ffa.zip
LUA_REGISTRYINDEX
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