diff core/src/luan/impl/IndexExpr.java @ 419:8fbb961aabd5

improve repr() to check metamethod recursively
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 30 Apr 2015 23:15:40 -0600
parents 7fd9f1b7b878
children b31d614343e8
line wrap: on
line diff
--- a/core/src/luan/impl/IndexExpr.java	Thu Apr 30 21:52:20 2015 -0600
+++ b/core/src/luan/impl/IndexExpr.java	Thu Apr 30 23:15:40 2015 -0600
@@ -27,7 +27,7 @@
 			Object value = tbl.get(key);
 			if( value != null )
 				return value;
-			Object h = luan.getHandler("__index",tbl);
+			Object h = tbl.getHandler("__index");
 			if( h==null )
 				return null;
 			if( h instanceof LuanFunction ) {