From b54eee30383e4eaae74551afc9d1c59126269305 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 16:46:56 +1000 Subject: An open upvalue already knows which lua_State it comes from --- src/ldebug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldebug.js') 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) -- cgit v1.2.3-54-g00ecf