diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-06 10:57:11 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-09 13:28:28 +1000 |
commit | 9136aea9f85db964dc368051326a2678d962b8f8 (patch) | |
tree | 001834d7613f3e3c130ef0a747ff50fee2a885de /src/lobject.js | |
parent | 2b8656a31155525e4098f91059d0aaee6214cbfe (diff) | |
download | fengari-9136aea9f85db964dc368051326a2678d962b8f8.tar.gz fengari-9136aea9f85db964dc368051326a2678d962b8f8.tar.bz2 fengari-9136aea9f85db964dc368051326a2678d962b8f8.zip |
src/lobject.js: Be consistent in LClosure/CClosure constructors
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 4 |
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 */ } } |