summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-29 13:28:24 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-29 13:43:11 +1000
commitb3f5b92b221c0ad8a94b8cb95081bb85d235c39f (patch)
treeddfacca952778520fe74976a88bd97b3cdb68785 /src/ldebug.js
parent587b5c78d193426410c45c6f055272acf4a8bc7c (diff)
downloadfengari-b3f5b92b221c0ad8a94b8cb95081bb85d235c39f.tar.gz
fengari-b3f5b92b221c0ad8a94b8cb95081bb85d235c39f.tar.bz2
fengari-b3f5b92b221c0ad8a94b8cb95081bb85d235c39f.zip
Have lua closures point to directly to their upvalues on stack
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 45d126f..510221f 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -518,7 +518,7 @@ const isinstack = function(L, ci, o) {
const getupvalname = function(L, ci, o) {
let c = ci.func.value;
for (let i = 0; i < c.nupvalues; i++) {
- if (c.upvals[i].val() === o) {
+ if (c.upvals[i].v === o) {
return {
name: upvalname(c.p, i),
funcname: defs.to_luastring('upvalue', true)