Mercurial Hosting > luan
comparison src/luan/interp/ReturnStmt.java @ 112:f5af13062b10
fix previous rev
git-svn-id: https://luan-java.googlecode.com/svn/trunk@113 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 22:52:39 +0000 |
parents | 6ca02b188dba |
children |
comparison
equal
deleted
inserted
replaced
111:2428ecfed375 | 112:f5af13062b10 |
---|---|
28 if( tailFnExpr != null ) { | 28 if( tailFnExpr != null ) { |
29 LuanFunction tailFn = luan.bit(se).checkFunction( tailFnExpr.eval(luan) ); | 29 LuanFunction tailFn = luan.bit(se).checkFunction( tailFnExpr.eval(luan) ); |
30 if( tailFn instanceof Closure ) { | 30 if( tailFn instanceof Closure ) { |
31 luan.tailFn = (Closure)tailFn; | 31 luan.tailFn = (Closure)tailFn; |
32 } else { | 32 } else { |
33 luan.returnValues = luan.bit(tailFnExpr.se()).call(tailFn,tailFnExpr.se().text(),luan.returnValues); | 33 luan.returnValues = luan.bit(tailFnExpr.se()).call(tailFn,tailFnExpr.se().text(),Luan.array(luan.returnValues)); |
34 } | 34 } |
35 } | 35 } |
36 if( throwReturnException ) | 36 if( throwReturnException ) |
37 throw new ReturnException(); | 37 throw new ReturnException(); |
38 } | 38 } |