summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 4e4b701..086af00 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -163,13 +163,13 @@ class Table extends TValue {
class LClosure extends TValue {
- constructor(n) {
+ constructor(L, n) {
super(CT.LUA_TLCL, null);
this.p = null;
this.nupvalues = n;
- let _ENV = new UpVal();
+ let _ENV = new UpVal(L);
_ENV.refcount = 0;
_ENV.v = null;
_ENV.u.open.next = null;