diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-24 17:17:42 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-24 17:17:42 +1000 |
commit | ab13f4a023e66d6db74985482d902348149095e9 (patch) | |
tree | 76026ae2f67ff0c85e7e3d263b8f021f9f3090e8 /src/lvm.js | |
parent | 9bec9a5d038cfa488019e9370ff0b9ba785b313d (diff) | |
download | fengari-ab13f4a023e66d6db74985482d902348149095e9.tar.gz fengari-ab13f4a023e66d6db74985482d902348149095e9.tar.bz2 fengari-ab13f4a023e66d6db74985482d902348149095e9.zip |
src/lvm.js: Use 'uv.isopen' instead of assuming members
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ const luaV_execute = function(L) { } case OCi.OP_SETUPVAL: { let uv = cl.upvals[i.B]; - if (uv.v !== null) { + if (uv.isopen()) { uv.L.stack[uv.v] = L.stack[ra]; } else { uv.value.setfrom(L.stack[ra]); |