summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 15:06:04 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 16:54:49 +1000
commitb4f2d04d28332b6d91098dd5d5aaaec40a2ec367 (patch)
tree2a6e72b209a387df22d6ed24b988129bbe929570
parent662d01cc30a60a5ef63f489570c3cdaf3f35b9ce (diff)
downloadfengari-b4f2d04d28332b6d91098dd5d5aaaec40a2ec367.tar.gz
fengari-b4f2d04d28332b6d91098dd5d5aaaec40a2ec367.tar.bz2
fengari-b4f2d04d28332b6d91098dd5d5aaaec40a2ec367.zip
src/lstate.js: preinit doesn't need to initialise L.stack to an array
-rw-r--r--src/lstate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 020971a..3dd50bf 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -124,7 +124,7 @@ const f_luaopen = function(L) {
const preinit_thread = function(L, g) {
L.id = g.id_counter++;
L.l_G = g;
- L.stack = [];
+ L.stack = null;
L.ci = null;
L.nci = 0;
L.errorJmp = null;