From b833d3ff91f346717d598b9086f6f76f68199d3b Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 13:01:51 +1000 Subject: src/ldebug.js: Don't localise TValue --- src/ldebug.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/ldebug.js b/src/ldebug.js index acd6261..5b537c2 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -14,9 +14,8 @@ const ltm = require('./ltm.js'); const luaconf = require('./luaconf.js'); const lvm = require('./lvm.js'); -const TValue = lobject.TValue; -const CT = defs.constant_types; -const TS = defs.thread_status; +const CT = defs.constant_types; +const TS = defs.thread_status; const currentline = function(ci) { return ci.func.value.p.lineinfo ? ci.func.value.p.lineinfo[ci.pcOff-1] : -1; @@ -177,14 +176,14 @@ const funcinfo = function(ar, cl) { const collectvalidlines = function(L, f) { if (f === null || f instanceof lobject.CClosure) { - L.stack[L.top++] = new TValue(CT.LUA_TNIL, null); + L.stack[L.top++] = new lobject.TValue(CT.LUA_TNIL, null); assert(L.top <= L.ci.top, "stack overflow"); } else { let lineinfo = f.l.p.lineinfo; let t = ltable.luaH_new(L); - L.stack[L.top++] = new TValue(CT.LUA_TTABLE, t); + L.stack[L.top++] = new lobject.TValue(CT.LUA_TTABLE, t); assert(L.top <= L.ci.top, "stack overflow"); - let v = new TValue(CT.LUA_TBOOLEAN, true); + let v = new lobject.TValue(CT.LUA_TBOOLEAN, true); for (let i = 0; i < f.l.p.length; i++) ltable.luaH_setint(t, lineinfo[i], v); } -- cgit v1.2.3-70-g09d2