diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-02-11 08:53:10 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-02-11 15:23:04 +0100 |
commit | a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e (patch) | |
tree | 1420dfdb17660fd5ca243f25d279dbd308263f7e /src/lobject.js | |
parent | 219d7cf24902b53385a1b6999e8bbf2c8512cf0b (diff) | |
download | fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.gz fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.bz2 fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.zip |
Fixed bad tailcall, _ENV is a closed upvalue
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lobject.js b/src/lobject.js index a1ed6ca..4c3290d 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -115,9 +115,10 @@ class LClosure extends TValue { let _ENV = new UpVal(); _ENV.refcount = 0; - _ENV.v = 0; // _ENV is on the stack at index 0 + _ENV.v = null; _ENV.u.open.next = null; _ENV.u.open.touched = true; + _ENV.u.value = new Table(); this.upvals = [ _ENV |