summaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 17:24:42 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 17:24:42 +0100
commit4b764aa6a84289f04acde43108425c392d2e4806 (patch)
treeeac70ef0e59290a1af12eabed20489c7529a8636 /src/lstate.js
parent9ff3e69b37f7b7603056b684a19b1dd8c641c8d5 (diff)
downloadfengari-4b764aa6a84289f04acde43108425c392d2e4806.tar.gz
fengari-4b764aa6a84289f04acde43108425c392d2e4806.tar.bz2
fengari-4b764aa6a84289f04acde43108425c392d2e4806.zip
Tables are JS Maps, lua_next
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 30e4b15..eec9fae 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -96,8 +96,8 @@ const stack_init = function(L1, L) {
const init_registry = function(L, g) {
let registry = new Table();
g.l_registry = registry;
- registry.value.array[lua.LUA_RIDX_MAINTHREAD - 1] = L;
- registry.value.array[lua.LUA_RIDX_GLOBALS - 1] = new Table();
+ registry.value.set(lua.LUA_RIDX_MAINTHREAD - 1, L);
+ registry.value.set(lua.LUA_RIDX_GLOBALS - 1, new Table());
};
/*