summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 16:46:56 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 16:52:49 +1000
commitb54eee30383e4eaae74551afc9d1c59126269305 (patch)
tree4902003c0ce70ac1b0b81d4b40aa144e30e61c2f /src/lapi.js
parent1dc893efcd664df86606b571d4b6bbee5b5868ca (diff)
downloadfengari-b54eee30383e4eaae74551afc9d1c59126269305.tar.gz
fengari-b54eee30383e4eaae74551afc9d1c59126269305.tar.bz2
fengari-b54eee30383e4eaae74551afc9d1c59126269305.zip
An open upvalue already knows which lua_State it comes from
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 2c03c39..d3e4119 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -512,7 +512,7 @@ const aux_upvalue = function(L, fi, n) {
let name = p.upvalues[n-1].name;
return {
name: name ? name : "(*no name)",
- val: f.upvals[n-1].val(L)
+ val: f.upvals[n-1].val()
};
}
default: return null; /* not a closure */