summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-27 12:15:10 +1000
committerBenoit Giannangeli <giann008@gmail.com>2017-04-28 14:15:58 +0200
commitb45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79 (patch)
treed27f1299ae4324395367703cf311ec4d3dc54ea7 /src/ldebug.js
parent86c357cd0c0184b640d0c2233ff53b6f23188d90 (diff)
downloadfengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.tar.gz
fengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.tar.bz2
fengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.zip
Add table construction function
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 984f441..6350c3e 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -7,6 +7,7 @@ const defs = require('./defs.js');
const ldo = require('./ldo.js');
const lobject = require('./lobject.js');
const lstate = require('./lstate.js');
+const ltable = require('./ltable.js');
const luaconf = require('./luaconf.js');
const OC = require('./lopcodes.js');
const lvm = require('./lvm.js');
@@ -179,7 +180,7 @@ const collectvalidlines = function(L, f) {
assert(L.top <= L.ci.top, "stack overflow");
} else {
let lineinfo = f.l.p.lineinfo;
- let t = new TValue(CT.LUA_TTABLE, new Map());
+ let t = new TValue(CT.LUA_TTABLE, ltable.luaH_new(L));
L.stack[L.top++] = t;
assert(L.top <= L.ci.top, "stack overflow");
let v = new TValue(true, CT.LUA_TBOOLEAN);