Mercurial Hosting > luan
diff core/src/luan/LuanBit.java @ 509:e3b0846dc2ef
throw exception for invalid indexes of string, binary, or java
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 22 May 2015 02:02:49 -0600 |
parents | 5d4a78c93383 |
children | f1601a4ce1aa |
line wrap: on
line diff
--- a/core/src/luan/LuanBit.java Thu May 21 20:20:54 2015 -0600 +++ b/core/src/luan/LuanBit.java Fri May 22 02:02:49 2015 -0600 @@ -84,20 +84,6 @@ } } - public String toString(Object obj) throws LuanException { - if( obj instanceof LuanTable ) { - LuanTable tbl = (LuanTable)obj; - return tbl.toString(luan); - } - if( obj == null ) - return "nil"; - if( obj instanceof Number ) - return Luan.toString((Number)obj); - if( obj instanceof byte[] ) - return "binary: " + Integer.toHexString(obj.hashCode()); - return obj.toString(); - } - public LuanFunction getHandlerFunction(String op,LuanTable t) throws LuanException { Object f = t.getHandler(op); if( f == null )