diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-03 15:59:29 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-03 16:16:23 +0100 |
commit | b618b835c74a8637e00ba1f4adf6b8884d360d43 (patch) | |
tree | 1fae753a1fd2d3cc1da33e2989bbbb1ce0a9f6aa /src/lvm.js | |
parent | 2cf246d68c5e658eb6c36a00ac35c7862a54e90e (diff) | |
download | fengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.tar.gz fengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.tar.bz2 fengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.zip |
Table, metatable
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ const BytecodeParser = require("./lundump.js"); const OC = require('./lopcodes.js'); const CT = require('./lua.js').constant_types; const TValue = require('./lobject.js').TValue; +const Table = require('./lobject.js').Table; class LuaVM { @@ -104,6 +105,7 @@ class LuaVM { break; } case "OP_NEWTABLE": { + L.stack[ra] = new Table(); break; } case "OP_SELF": { |