diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-05 16:46:56 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-05 16:52:49 +1000 |
commit | b54eee30383e4eaae74551afc9d1c59126269305 (patch) | |
tree | 4902003c0ce70ac1b0b81d4b40aa144e30e61c2f /src/lvm.js | |
parent | 1dc893efcd664df86606b571d4b6bbee5b5868ca (diff) | |
download | fengari-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.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |