From b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 27 Apr 2017 12:15:10 +1000 Subject: Add table construction function --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lapi.js') diff --git a/src/lapi.js b/src/lapi.js index 184630c..4b5223a 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -460,7 +460,7 @@ const lua_rawget = function(L, idx) { // narray and nrec are mostly useless for this implementation const lua_createtable = function(L, narray, nrec) { - let t = new lobject.TValue(CT.LUA_TTABLE, new Map()); + let t = new lobject.TValue(CT.LUA_TTABLE, ltable.luaH_new(L)); L.stack[L.top++] = t; assert(L.top <= L.ci.top, "stack overflow"); -- cgit v1.2.3-54-g00ecf