comparison core/src/luan/impl/LenExpr.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
comparison
equal deleted inserted replaced
577:d7a85fbe15f1 578:60c549d43988
24 return a.length; 24 return a.length;
25 } 25 }
26 luan.push(el,null); 26 luan.push(el,null);
27 try { 27 try {
28 if( !(o instanceof LuanTable) ) 28 if( !(o instanceof LuanTable) )
29 throw luan.exception( "attempt to get length of a " + Luan.type(o) + " value" ); 29 throw new LuanException(luan, "attempt to get length of a " + Luan.type(o) + " value" );
30 LuanTable t = (LuanTable)o; 30 LuanTable t = (LuanTable)o;
31 return t.length(luan); 31 return t.length(luan);
32 } finally { 32 } finally {
33 luan.pop(); 33 luan.pop();
34 } 34 }