summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js3
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