diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-24 16:44:48 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-27 22:14:54 +1000 |
commit | 1428582c2d88b23f12c87921381796d03b388d9f (patch) | |
tree | c6f5f2ca9c336d37b38e9d55bb45a6a483c1c37a /src/lvm.js | |
parent | 35754b22d6130971a9d0b51177bfcb7c401bb196 (diff) | |
download | fengari-1428582c2d88b23f12c87921381796d03b388d9f.tar.gz fengari-1428582c2d88b23f12c87921381796d03b388d9f.tar.bz2 fengari-1428582c2d88b23f12c87921381796d03b388d9f.zip |
Use .setclLvalue
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -943,7 +943,7 @@ const pushclosure = function(L, p, encup, base, ra) { let uv = p.upvalues; let ncl = new lobject.LClosure(L, nup); ncl.p = p; - L.stack[ra] = new lobject.TValue(CT.LUA_TLCL, ncl); + L.stack[ra].setclLvalue(ncl); for (let i = 0; i < nup; i++) { if (uv[i].instack) ncl.upvals[i] = lfunc.luaF_findupval(L, base + uv[i].idx); |