From a02f4e93b92e7ebb7ef038ad151e51652b0ce84d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 18 Apr 2017 15:20:37 +0200 Subject: No more Table, just TValue with table type and Map value --- src/ldebug.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index 16449e2..4090011 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -14,7 +14,6 @@ const ltm = require('./ltm.js'); const lfunc = require('./lfunc.js'); const lapi = require('./lapi.js'); const TValue = lobject.TValue; -const Table = lobject.Table; const CT = lua.constant_types; const TS = lua.thread_status; @@ -181,12 +180,12 @@ const collectvalidlines = function(L, f) { assert(L.top <= L.ci.top, "stack overflow"); } else { let lineinfo = f.l.p.lineinfo; - let t = new Table(); + let t = new TValue(CT.LUA_TTABLE, new Map()); L.stack[L.top++] = t; assert(L.top <= L.ci.top, "stack overflow"); let v = new TValue(true, CT.LUA_TBOOLEAN); for (let i = 0; i < f.l.p.length; i++) - t.__newindex(t, lineinfo[i], v); + lobject.table_newindex(t, lineinfo[i], v); } }; -- cgit v1.2.3-54-g00ecf