diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 14:35:19 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 14:48:49 +0200 |
commit | e7ba844bfaba3af9863b79957ec28cdc0f751d7d (patch) | |
tree | 42e16a3b9d31cb792aa8631dbf76921318c8ebc5 /src/ldebug.js | |
parent | 4ebec8b01a9d0634e55d371c2547bfe24abedfd4 (diff) | |
download | fengari-e7ba844bfaba3af9863b79957ec28cdc0f751d7d.tar.gz fengari-e7ba844bfaba3af9863b79957ec28cdc0f751d7d.tar.bz2 fengari-e7ba844bfaba3af9863b79957ec28cdc0f751d7d.zip |
Fixed bad ref to proto in collectvalidlines
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldebug.js b/src/ldebug.js index 4019413..4f8d385 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -186,13 +186,13 @@ const collectvalidlines = function(L, f) { L.top++; assert(L.top <= L.ci.top, "stack overflow"); } else { - let lineinfo = f.l.p.lineinfo; + let lineinfo = f.p.lineinfo; let t = ltable.luaH_new(L); L.stack[L.top] = new lobject.TValue(CT.LUA_TTABLE, t); L.top++; assert(L.top <= L.ci.top, "stack overflow"); let v = new lobject.TValue(CT.LUA_TBOOLEAN, true); - for (let i = 0; i < f.l.p.length; i++) + for (let i = 0; i < lineinfo.length; i++) ltable.luaH_setint(t, lineinfo[i], v); } }; |