Mercurial Hosting > luan
diff core/src/luan/LuanPropertyMeta.java @ 574:6cc2f047019b
remove LuanState.call()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 12:31:53 -0600 |
parents | d62c35a5cd6b |
children | 60c549d43988 |
line wrap: on
line diff
--- a/core/src/luan/LuanPropertyMeta.java Sun Jul 12 23:04:47 2015 -0600 +++ b/core/src/luan/LuanPropertyMeta.java Mon Jul 13 12:31:53 2015 -0600 @@ -28,7 +28,7 @@ if( !(obj instanceof LuanFunction) ) throw luan.exception("get for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; - return luan.call(fn); + return fn.call(luan); } @Override protected Iterator keys(final LuanTable tbl) { @@ -61,7 +61,7 @@ if( !(obj instanceof LuanFunction) ) throw luan.exception("set for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; - luan.call(fn,new Object[]{value}); + fn.call(luan,new Object[]{value}); } @Override public LuanTable newMetatable() {