diff core/src/luan/LuanJavaFunction.java @ 249:9737ebb9aaa0

handle LuanExitException git-svn-id: https://luan-java.googlecode.com/svn/trunk@250 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 17 Oct 2014 00:55:15 +0000
parents 0a8e6fdb62f0
children 899253043270
line wrap: on
line diff
--- a/core/src/luan/LuanJavaFunction.java	Thu Oct 16 04:04:52 2014 +0000
+++ b/core/src/luan/LuanJavaFunction.java	Fri Oct 17 00:55:15 2014 +0000
@@ -97,6 +97,8 @@
 				throw (Error)cause;
 			if( cause instanceof LuanException )
 				throw (LuanException)cause;
+			if( cause instanceof LuanExitException )
+				throw (LuanExitException)cause;
 			throw luan.exception(cause);
 		} catch(InstantiationException e) {
 			throw new RuntimeException(e);