diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-12 13:01:51 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-12 13:01:51 +1000 |
commit | b833d3ff91f346717d598b9086f6f76f68199d3b (patch) | |
tree | 4c91d49fc5c7d6bee6e83df139ca6e1e4883c4cf /src/ldebug.js | |
parent | 5db508d06b04018d92bcfe706203bdc696a36e1b (diff) | |
download | fengari-b833d3ff91f346717d598b9086f6f76f68199d3b.tar.gz fengari-b833d3ff91f346717d598b9086f6f76f68199d3b.tar.bz2 fengari-b833d3ff91f346717d598b9086f6f76f68199d3b.zip |
src/ldebug.js: Don't localise TValue
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 11 |
1 files changed, 5 insertions, 6 deletions
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); } |