From 3e7c7039680f80f3fa90cf357e5448d42397ea16 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 3 Feb 2017 11:24:18 +0100 Subject: VM Tests, OP_MOVE, OP_LOAK, partial OP_RETURN --- src/lstate.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/lstate.js') 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 -- cgit v1.2.3-54-g00ecf