Mercurial Hosting > luan
diff src/luan/LuanState.java @ 140:f4ce03ff6b2f
add per_session for Http
git-svn-id: https://luan-java.googlecode.com/svn/trunk@141 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 13 Jun 2014 15:04:29 +0000 |
parents | 7e160d2f6d9c |
children | c2ee8a717b73 |
line wrap: on
line diff
--- a/src/luan/LuanState.java Fri Jun 13 12:26:44 2014 +0000 +++ b/src/luan/LuanState.java Fri Jun 13 15:04:29 2014 +0000 @@ -160,12 +160,15 @@ } } - public final Object eval(String cmd) throws LuanException { - LuanFunction fn = BasicLib.load(this,cmd,"eval",true,true); - return call(fn); + public final Object eval(String cmd) { + try { + LuanFunction fn = BasicLib.load(this,cmd,"eval",true,true); + return call(fn); + } catch(LuanException e) { + throw new RuntimeException(e); + } } - public final LuanTable getMetatable(Object obj) { if( obj instanceof LuanTable ) { LuanTable table = (LuanTable)obj;