From 9136aea9f85db964dc368051326a2678d962b8f8 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 6 May 2017 10:57:11 +1000 Subject: src/lobject.js: Be consistent in LClosure/CClosure constructors --- src/lobject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ } } -- cgit v1.2.3-70-g09d2