Mercurial Hosting > luan
diff core/src/luan/modules/BinaryLuan.java @ 409:abce9b0041b0
remove LuanState.require(), eval() is good enough
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 15:26:54 -0600 |
parents | d55e873e1f0d |
children | 23a93c118042 |
line wrap: on
line diff
--- a/core/src/luan/modules/BinaryLuan.java Wed Apr 29 13:15:17 2015 -0600 +++ b/core/src/luan/modules/BinaryLuan.java Wed Apr 29 15:26:54 2015 -0600 @@ -11,7 +11,7 @@ public final class BinaryLuan { public static Object __index(LuanState luan,final byte[] binary,Object key) throws LuanException { - LuanTable mod = (LuanTable)luan.require("luan:Binary"); + LuanTable mod = (LuanTable)PackageLuan.require(luan,"luan:Binary"); Object obj = mod.get(key); if( obj instanceof LuanFunction ) { final LuanFunction fn = (LuanFunction)obj;