Mercurial Hosting > luan
diff core/src/luan/impl/EqExpr.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 | d55e873e1f0d |
children | bf5e62a9090c |
line wrap: on
line diff
--- a/core/src/luan/impl/EqExpr.java Fri May 01 17:18:23 2015 -0600 +++ b/core/src/luan/impl/EqExpr.java Fri May 01 18:44:20 2015 -0600 @@ -42,8 +42,8 @@ LuanTable mt2 = t2.getMetatable(); if( mt1==null || mt2==null ) return false; - Object f = mt1.get("__eq"); - if( f == null || !f.equals(mt2.get("__eq")) ) + Object f = mt1.rawGet("__eq"); + if( f == null || !f.equals(mt2.rawGet("__eq")) ) return false; LuanBit bit = luan.bit(se); LuanFunction fn = bit.checkFunction(f);