aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lvm.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lvm.js b/src/lvm.js
index b7b1358..ce978f4 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -186,6 +186,12 @@ const luaV_execute = function(L) {
gettable(L, upval, rc, ra);
break;
}
+ case OCi.OP_GETTABLE: {
+ let rb = L.stack[RB(L, base, i)];
+ let rc = RKC(L, base, k, i);
+ gettable(L, rb, rc, ra);
+ break;
+ }
case OCi.OP_SETTABUP: {
let upval = cl.upvals[i.A].v;
let rb = RKB(L, base, k, i);
@@ -193,12 +199,6 @@ const luaV_execute = function(L) {
settable(L, upval, rb, rc);
break;
}
- case OCi.OP_GETTABLE: {
- let table = RKB(L, base, k, i);
- let key = RKC(L, base, k, i);
-
- gettable(L, table, key, ra);
- break;
}
case OCi.OP_SETTABLE: {
let table = L.stack[ra];