Mercurial Hosting > luan
diff src/luan/modules/Boot.luan @ 1685:46cf5137cb6b
misc fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2022 20:13:54 -0600 |
parents | 970e635c7196 |
children | b82767112d8e |
line wrap: on
line diff
--- a/src/luan/modules/Boot.luan Sun Jun 05 18:03:32 2022 -0600 +++ b/src/luan/modules/Boot.luan Wed Jun 08 20:13:54 2022 -0600 @@ -44,14 +44,8 @@ local local_metatable = { __index = get_local_cloned + __new_index = set_local_cloned } -function local_metatable.__new_index(tbl,key,value) - if is_immutable(tbl) then - set_local_cloned(tbl,key,value) - else - raw_set(tbl,key,value) - end -end Boot.local_metatable = local_metatable @@ -104,7 +98,6 @@ end local schemes = {} -set_metatable(schemes,local_metatable) --LuanTable.setSecurity(schemes,"schemes") function schemes.null(path) @@ -233,6 +226,7 @@ return new_LuanFile( IoLuan.LuanFile.new(path) ) end +set_metatable(schemes,local_metatable) Boot.schemes = schemes