Fix upvalues that allow closures to work properly.
This commit is contained in:
@@ -14,7 +14,7 @@ public class Closure extends LValue {
|
||||
this.p = p;
|
||||
upVals = new UpVal[p.nups];
|
||||
for ( int i=0; i<p.nups; i++ )
|
||||
upVals[i] = new UpVal();
|
||||
upVals[i] = new UpVal( p.upvalues[i] );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user