Mercurial Hosting > luan
comparison src/luan/interp/Chunk.java @ 49:8ede219cd111
add WebShell
git-svn-id: https://luan-java.googlecode.com/svn/trunk@50 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 19:35:04 +0000 |
parents | 64ecb7a3aad7 |
children |
comparison
equal
deleted
inserted
replaced
48:64ecb7a3aad7 | 49:8ede219cd111 |
---|---|
33 fixReturns( is.thenStmt ); | 33 fixReturns( is.thenStmt ); |
34 fixReturns( is.elseStmt ); | 34 fixReturns( is.elseStmt ); |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 Closure newClosure(LuanStateImpl lua) { | 38 @Override public Object eval(LuanStateImpl luan) { |
39 return new Closure(this,lua); | 39 return new Closure(luan,this); |
40 } | |
41 | |
42 @Override public Object eval(LuanStateImpl lua) { | |
43 return newClosure(lua); | |
44 } | 40 } |
45 | 41 |
46 } | 42 } |