Mercurial Hosting > luan
diff core/src/luan/impl/SetTableEntry.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 | 3e68917a0dc6 |
children | b31d614343e8 |
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java Thu Apr 30 21:52:20 2015 -0600 +++ b/core/src/luan/impl/SetTableEntry.java Thu Apr 30 23:15:40 2015 -0600 @@ -26,7 +26,7 @@ private void newindex(LuanStateImpl luan,Object t,Object key,Object value) throws LuanException { if( t instanceof LuanTable ) { LuanTable table = (LuanTable)t; - Object h = luan.getHandler("__newindex",table); + Object h = table.getHandler("__newindex"); if( h==null || table.get(key)!=null ) { try { table.put(key,value);