diff options
| author | daurnimator <quae@daurnimator.com> | 2017-05-05 15:53:14 +1000 | 
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2017-05-05 15:58:55 +1000 | 
| commit | 1dc893efcd664df86606b571d4b6bbee5b5868ca (patch) | |
| tree | faac1dcfacdad1de1cc8fa71123fc994c4bc2c94 /src/lvm.js | |
| parent | 4c8de564f08e122e011c5f5ecaa96bea595603ed (diff) | |
| download | fengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.tar.gz fengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.tar.bz2 fengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.zip | |
Need to copy to the stack if not coming from a stack
Diffstat (limited to 'src/lvm.js')
| -rw-r--r-- | src/lvm.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -161,7 +161,8 @@ const luaV_execute = function(L) {                  break;              }              case OCi.OP_GETUPVAL: { -                L.stack[ra] = cl.upvals[i.B].val(L); +                let o = cl.upvals[i.B].val(L); +                L.stack[ra] = new lobject.TValue(o.type, o.value);                  break;              }              case OCi.OP_SETUPVAL: { | 
