diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-02 11:06:38 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-02 11:06:38 +0200 |
commit | f2bb5dee9b90197185dd0367cee98b61b066ae70 (patch) | |
tree | b3222d28e409053e6c6e1036de25c8e5701c9d7d /src/lfunc.js | |
parent | d35f4e1dcec1494483a9257b7a2cacb172047c1f (diff) | |
parent | 59d5ff59e3b9eacc2b2aa8e92e71f31914d09545 (diff) | |
download | fengari-f2bb5dee9b90197185dd0367cee98b61b066ae70.tar.gz fengari-f2bb5dee9b90197185dd0367cee98b61b066ae70.tar.bz2 fengari-f2bb5dee9b90197185dd0367cee98b61b066ae70.zip |
Merge remote-tracking branch 'daurnimator/fix-errors'
Diffstat (limited to 'src/lfunc.js')
-rw-r--r-- | src/lfunc.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lfunc.js b/src/lfunc.js index 3f8fe2d..69c7581 100644 --- a/src/lfunc.js +++ b/src/lfunc.js @@ -56,10 +56,7 @@ class UpVal { } const luaF_newLclosure = function(L, n) { - let c = new lobject.LClosure(); - c.p = null; - c.nupvalues = n; - while (n--) c.upvals[n] = null; + let c = new lobject.LClosure(L, n); return c; }; |