summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-24 17:17:42 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-24 17:17:42 +1000
commitab13f4a023e66d6db74985482d902348149095e9 (patch)
tree76026ae2f67ff0c85e7e3d263b8f021f9f3090e8 /src
parent9bec9a5d038cfa488019e9370ff0b9ba785b313d (diff)
downloadfengari-ab13f4a023e66d6db74985482d902348149095e9.tar.gz
fengari-ab13f4a023e66d6db74985482d902348149095e9.tar.bz2
fengari-ab13f4a023e66d6db74985482d902348149095e9.zip
src/lvm.js: Use 'uv.isopen' instead of assuming members
Diffstat (limited to 'src')
-rw-r--r--src/lvm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lvm.js b/src/lvm.js
index e796e4e..07acb42 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -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]);