summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-03 15:59:29 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-03 16:16:23 +0100
commitb618b835c74a8637e00ba1f4adf6b8884d360d43 (patch)
tree1fae753a1fd2d3cc1da33e2989bbbb1ce0a9f6aa /src/lvm.js
parent2cf246d68c5e658eb6c36a00ac35c7862a54e90e (diff)
downloadfengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.tar.gz
fengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.tar.bz2
fengari-b618b835c74a8637e00ba1f4adf6b8884d360d43.zip
Table, metatable
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 3d6f43a..9518721 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -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": {