From ab13f4a023e66d6db74985482d902348149095e9 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 24 May 2017 17:17:42 +1000 Subject: src/lvm.js: Use 'uv.isopen' instead of assuming members --- src/lvm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]); -- cgit v1.2.3-70-g09d2