Mercurial Hosting > luan
diff core/src/luan/LuanTable.java @ 647:8e8c30b72e9b
move methods from LuanState to Luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 20:39:14 -0600 |
parents | cdc70de628b5 |
children | d3e5414bdf4c |
line wrap: on
line diff
--- a/core/src/luan/LuanTable.java Tue Mar 29 19:58:39 2016 -0600 +++ b/core/src/luan/LuanTable.java Tue Mar 29 20:39:14 2016 -0600 @@ -95,8 +95,8 @@ LuanMeta meta = (LuanMeta)h; return meta.__to_string(luan,this); } - LuanFunction fn = luan.checkFunction(h); - return luan.checkString( Luan.first( fn.call(luan,new Object[]{this}) ) ); + LuanFunction fn = Luan.checkFunction(h); + return Luan.checkString( Luan.first( fn.call(luan,new Object[]{this}) ) ); } public String rawToString() { @@ -247,7 +247,7 @@ public int length(LuanState luan) throws LuanException { Object h = getHandler("__len"); if( h != null ) { - LuanFunction fn = luan.checkFunction(h); + LuanFunction fn = Luan.checkFunction(h); return (Integer)Luan.first(fn.call(luan,new Object[]{this})); } return rawLength();