Mercurial Hosting > luan
diff core/src/luan/modules/JavaLuan.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/modules/JavaLuan.java Fri May 01 17:18:23 2015 -0600 +++ b/core/src/luan/modules/JavaLuan.java Fri May 01 18:44:20 2015 -0600 @@ -323,7 +323,7 @@ if( args==null ) args = new Object[0]; String name = method.getName(); - Object fnObj = t.get(name); + Object fnObj = t.get(luan,name); if( fnObj==null && base!=null ) return method.invoke(base,args); LuanFunction fn = luan.checkFunction(fnObj); @@ -465,7 +465,7 @@ private static String SECURITY_KEY = "Java.Security"; private static void check(LuanState luan,String name) throws LuanException { - Security s = (Security)luan.registry().get(SECURITY_KEY); + Security s = (Security)luan.registry().rawGet(SECURITY_KEY); if( s!=null ) s.check(luan,name); }