From b4f2d04d28332b6d91098dd5d5aaaec40a2ec367 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 15:06:04 +1000 Subject: src/lstate.js: preinit doesn't need to initialise L.stack to an array --- src/lstate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2