comparison src/luan/modules/PackageLuan.java @ 1562:b89212fd04b5

remove table.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Nov 2020 16:50:59 -0700
parents 0ba144491a42
children 8fbcc4747091
comparison
equal deleted inserted replaced
1561:e1a13e707bf3 1562:b89212fd04b5
30 } 30 }
31 31
32 public static LuanTable loaded(Luan luan) { 32 public static LuanTable loaded(Luan luan) {
33 LuanTable tbl = (LuanTable)luan.registry().get("Package.loaded"); 33 LuanTable tbl = (LuanTable)luan.registry().get("Package.loaded");
34 if( tbl == null ) { 34 if( tbl == null ) {
35 tbl = new LuanTable(luan); 35 tbl = new LuanTable();
36 luan.registry().put("Package.loaded",tbl); 36 luan.registry().put("Package.loaded",tbl);
37 } 37 }
38 return tbl; 38 return tbl;
39 } 39 }
40 40
101 } catch(LuanException e) { 101 } catch(LuanException e) {
102 throw new RuntimeException(e); 102 throw new RuntimeException(e);
103 } 103 }
104 Luan.Security security = Luan.setSecurity(luan,null); 104 Luan.Security security = Luan.setSecurity(luan,null);
105 try { 105 try {
106 return (String)Luan.first(boot.fn("read").call(uri)); 106 return (String)Luan.first(boot.fn(luan,"read").call(uri));
107 } catch(LuanException e) { 107 } catch(LuanException e) {
108 return null; 108 return null;
109 } finally { 109 } finally {
110 if( security != null ) 110 if( security != null )
111 Luan.setSecurity(luan,security); 111 Luan.setSecurity(luan,security);