From e7ba844bfaba3af9863b79957ec28cdc0f751d7d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Mon, 29 May 2017 14:35:19 +0200 Subject: Fixed bad ref to proto in collectvalidlines --- src/ldebug.js | 4 ++-- 1 file 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); } }; -- cgit v1.2.3-70-g09d2