Mercurial Hosting > luan
diff core/src/luan/modules/PackageLuan.java @ 411:23b99a5039b5
remove Luan.newTable()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 16:05:02 -0600 |
parents | 673eebd83b74 |
children | 23a93c118042 |
line wrap: on
line diff
--- a/core/src/luan/modules/PackageLuan.java Wed Apr 29 15:38:15 2015 -0600 +++ b/core/src/luan/modules/PackageLuan.java Wed Apr 29 16:05:02 2015 -0600 @@ -26,7 +26,7 @@ public static LuanTable loaded(LuanState luan) { LuanTable tbl = (LuanTable)luan.registry().get("Package.loaded"); if( tbl == null ) { - tbl = Luan.newTable(); + tbl = new LuanTable(); luan.registry().put("Package.loaded",tbl); } return tbl; @@ -49,7 +49,7 @@ String src = read(luan,modName+".luan"); if( src == null ) return null; - LuanTable env = Luan.newTable(); + LuanTable env = new LuanTable(); LuanFunction loader = BasicLuan.load(luan,src,modName,env,false); Object result = Luan.first( luan.call(loader,"<require \""+modName+"\">",new Object[]{modName})