summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 16:46:56 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 16:52:49 +1000
commitb54eee30383e4eaae74551afc9d1c59126269305 (patch)
tree4902003c0ce70ac1b0b81d4b40aa144e30e61c2f /src/lvm.js
parent1dc893efcd664df86606b571d4b6bbee5b5868ca (diff)
downloadfengari-b54eee30383e4eaae74551afc9d1c59126269305.tar.gz
fengari-b54eee30383e4eaae74551afc9d1c59126269305.tar.bz2
fengari-b54eee30383e4eaae74551afc9d1c59126269305.zip
An open upvalue already knows which lua_State it comes from
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 9748ab4..bd38575 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -161,7 +161,7 @@ const luaV_execute = function(L) {
break;
}
case OCi.OP_GETUPVAL: {
- let o = cl.upvals[i.B].val(L);
+ let o = cl.upvals[i.B].val();
L.stack[ra] = new lobject.TValue(o.type, o.value);
break;
}
@@ -170,7 +170,7 @@ const luaV_execute = function(L) {
break;
}
case OCi.OP_GETTABUP: {
- let table = cl.upvals[i.B].val(L);
+ let table = cl.upvals[i.B].val();
let key = RKC(L, base, k, i);
gettable(L, table, key, ra);
@@ -178,7 +178,7 @@ const luaV_execute = function(L) {
break;
}
case OCi.OP_SETTABUP: {
- let table = cl.upvals[i.A].val(L);
+ let table = cl.upvals[i.A].val();
let key = RKB(L, base, k, i);
let v = RKC(L, base, k, i);