summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index ce62abc..713a0fb 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -179,13 +179,13 @@ const auxgetinfo = function(L, what, ar, f, ci) {
break;
}
case 'u': {
- ar.nups = f === null ? 0 : f.c.nupvalues;
- if (f === null || f.c.type === CT.LUA_TCCL) {
+ ar.nups = f === null ? 0 : f.nupvalues;
+ if (f === null || f.type === CT.LUA_TCCL) {
ar.isvararg = true;
ar.nparams = 0;
} else {
- ar.isvararg = f.l.p.is_vararg;
- ar.nparams = f.l.p.numparams;
+ ar.isvararg = f.p.is_vararg;
+ ar.nparams = f.p.numparams;
}
break;
}