diff core/src/luan/impl/LeExpr.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 4723d22062ce
children 859c0dedc8b6
line wrap: on
line diff
--- a/core/src/luan/impl/LeExpr.java	Mon Jul 13 20:53:02 2015 -0600
+++ b/core/src/luan/impl/LeExpr.java	Tue Jul 14 17:40:48 2015 -0600
@@ -37,7 +37,7 @@
 			fn = luan.getBinHandler("__lt",o1,o2);
 			if( fn != null )
 				return !luan.checkBoolean( Luan.first(fn.call(luan,new Object[]{o2,o1})) );
-			throw luan.exception( "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) );
+			throw new LuanException(luan, "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) );
 		} finally {
 			luan.pop();
 		}