diff core/src/luan/impl/SetTableEntry.java @ 426:23a93c118042

fix LuanTable.get() to use metatables
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 May 2015 18:44:20 -0600
parents b31d614343e8
children dae264ad6a7b
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java	Fri May 01 17:18:23 2015 -0600
+++ b/core/src/luan/impl/SetTableEntry.java	Fri May 01 18:44:20 2015 -0600
@@ -27,7 +27,7 @@
 		if( t instanceof LuanTable ) {
 			LuanTable table = (LuanTable)t;
 			Object h = table.getHandler("__newindex");
-			if( h==null || table.get(key)!=null ) {
+			if( h==null || table.rawGet(key)!=null ) {
 				try {
 					table.put(key,value);
 				} catch(IllegalArgumentException e) {