diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-27 12:15:10 +1000 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-28 14:15:58 +0200 |
commit | b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79 (patch) | |
tree | d27f1299ae4324395367703cf311ec4d3dc54ea7 /src/lapi.js | |
parent | 86c357cd0c0184b640d0c2233ff53b6f23188d90 (diff) | |
download | fengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.tar.gz fengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.tar.bz2 fengari-b45dc3dd1e3f9ef4548a5e422cb6f7daa9a3ba79.zip |
Add table construction function
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |