Add a new test case for upvalues, and enhance upvalue handling so that

they pass.
This commit is contained in:
Ian Farmer
2007-07-09 04:10:25 +00:00
parent 45964d7e22
commit f7d6a49acb
6 changed files with 104 additions and 15 deletions

View File

@@ -13,8 +13,6 @@ public class Closure extends LFunction {
this.env = state._G;
this.p = p;
upVals = new UpVal[p.nups];
for ( int i=0; i<p.nups; i++ )
upVals[i] = new UpVal( p.upvalues[i] );
}
// perform a lua call