diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-27 17:20:28 +1000 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-28 14:15:58 +0200 |
commit | 18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd (patch) | |
tree | 57a32acf8fc5f7149c94a8e979ed39b9dba7e912 /src/ldo.js | |
parent | 4cd7e4062219ccffbbc9e397e1ab599c26a3ae76 (diff) | |
download | fengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.tar.gz fengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.tar.bz2 fengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.zip |
LClosure and CClosure shouldn't subclass TValue
Diffstat (limited to 'src/ldo.js')
-rw-r--r-- | src/ldo.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ const luaD_precall = function(L, off, nresults) { switch(func.type) { case CT.LUA_TCCL: case CT.LUA_TLCF: { - let f = func.type === CT.LUA_TCCL ? func.f : func.value; + let f = func.type === CT.LUA_TCCL ? func.value.f : func.value; // next_ci if (L.ci.next) { @@ -85,7 +85,7 @@ const luaD_precall = function(L, off, nresults) { return true; } case CT.LUA_TLCL: { - let p = func.p; + let p = func.value.p; let n = L.top - off - 1; let fsize = p.maxstacksize; let base; |