summaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-03 11:24:18 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-03 11:24:18 +0100
commit3e7c7039680f80f3fa90cf357e5448d42397ea16 (patch)
treedb633c610c9644c05f67739252abc068a2213409 /src/lstate.js
parent9fbe044cbff12b635e535a36abcf2fb2a03dee11 (diff)
downloadfengari-3e7c7039680f80f3fa90cf357e5448d42397ea16.tar.gz
fengari-3e7c7039680f80f3fa90cf357e5448d42397ea16.tar.bz2
fengari-3e7c7039680f80f3fa90cf357e5448d42397ea16.zip
VM Tests, OP_MOVE, OP_LOAK, partial OP_RETURN
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 9c7eec3..15dedcb 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -21,14 +21,19 @@ class lua_State {
constructor(cl) {
this.top = 1;
this.ci = [
- new CallInfo(0, 1, 1, null, null);
+ new CallInfo(0, 1, 1, null, null)
];
this.ci[0].savedpc = cl.p.code;
this.ciOff = 0;
this.stack = [
- closure
+ cl
];
this.openupval = [];
}
-} \ No newline at end of file
+}
+
+module.exports = {
+ lua_State: lua_State,
+ CallInfo: CallInfo
+}; \ No newline at end of file