diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-02-07 21:55:34 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-02-07 21:55:34 +0100 |
commit | 364326b97450564d41d37cdc7b2c4fbb8049c62f (patch) | |
tree | dd22cf1a0ae16632842ac5057e272e59e711426a /src/lstate.js | |
parent | c7b6e2364b3ff9bed781215f57a6398979b287d4 (diff) | |
download | fengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.tar.gz fengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.tar.bz2 fengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.zip |
First CallInfo expects LUA_MULTRET results
Diffstat (limited to 'src/lstate.js')
-rw-r--r-- | src/lstate.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lstate.js b/src/lstate.js index ef84e07..b919f0e 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -1,6 +1,7 @@ /*jshint esversion: 6 */ "use strict"; +const LUA_MULTRET = require('./lua.js').LUA_MULTRET; class CallInfo { @@ -28,6 +29,7 @@ class lua_State { this.top = 1; this.ci = new CallInfo(0, cl, 1, 1, null, null); this.ci.u.l.savedpc = cl.p.code; + this.ci.nresults = LUA_MULTRET; this.ciOff = 0; this.stack = [ cl |