summaryrefslogtreecommitdiff
path: root/src/lfunc.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lfunc.js')
-rw-r--r--src/lfunc.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lfunc.js b/src/lfunc.js
index e12816d..69c7581 100644
--- a/src/lfunc.js
+++ b/src/lfunc.js
@@ -57,7 +57,6 @@ class UpVal {
const luaF_newLclosure = function(L, n) {
let c = new lobject.LClosure(L, n);
- while (n--) c.upvals[n] = null;
return c;
};