diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-04-12 10:06:25 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-12 10:54:41 +0200 |
commit | eeb3d8ac1de70703ce7db4788b7fb43fcda80aa8 (patch) | |
tree | a3d8b2dffceeb2cd7b0bc0dc95feaaa2386939c4 /src/ldebug.js | |
parent | fc08312ebf8cf01a53b4826acce0f1c3aedcdc53 (diff) | |
download | fengari-eeb3d8ac1de70703ce7db4788b7fb43fcda80aa8.tar.gz fengari-eeb3d8ac1de70703ce7db4788b7fb43fcda80aa8.tar.bz2 fengari-eeb3d8ac1de70703ce7db4788b7fb43fcda80aa8.zip |
debug.getinfo
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 8 |
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; } |