aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lobject.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 4b83bdb..ab50af8 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -184,7 +184,7 @@ class LClosure {
this.p = null;
this.nupvalues = n;
- this.upvals = Array(n);
+ this.upvals = new Array(n); /* list of upvalues as UpVals. initialised in luaF_initupvals */
}
}
@@ -196,7 +196,7 @@ class CClosure {
this.f = f;
this.nupvalues = n;
- this.upvalue = new Array(n);
+ this.upvalue = new Array(n); /* list of upvalues as TValues */
}
}