summaryrefslogtreecommitdiff
path: root/src/ldebug.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/ldebug.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/ldebug.js')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 34c6fc5..910720f 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -513,7 +513,7 @@ const isinstack = function(L, ci, o) {
const getupvalname = function(L, ci, o) {
let c = ci.func;
for (let i = 0; i < c.nupvalues; i++) {
- if (c.upvals[i].val(L) === o) {
+ if (c.upvals[i].val() === o) {
return {
name: upvalname(c.p, i),
funcname: defs.to_luastring('upvalue', true)