@@ -692,27 +692,32 @@ local __DESTROY_POLICY_REMOVE_FRAGMENT = __acquire_id()
692692local __safe_tbls = {
693693 --- @type table<evolved.fragment , integer>
694694 __EMPTY_FRAGMENT_SET = __lua_setmetatable ({}, {
695- __newindex = function () __error_fmt (' attempt to modify empty fragment set' ) end
695+ __tostring = function () return ' empty fragment set' end ,
696+ __newindex = function () __error_fmt ' attempt to modify empty fragment set' end
696697 }),
697698
698699 --- @type evolved.fragment[]
699700 __EMPTY_FRAGMENT_LIST = __lua_setmetatable ({}, {
700- __newindex = function () __error_fmt (' attempt to modify empty fragment list' ) end
701+ __tostring = function () return ' empty fragment list' end ,
702+ __newindex = function () __error_fmt ' attempt to modify empty fragment list' end
701703 }),
702704
703705 --- @type table<evolved.fragment , evolved.component>
704706 __EMPTY_COMPONENT_MAP = __lua_setmetatable ({}, {
705- __newindex = function () __error_fmt (' attempt to modify empty component map' ) end
707+ __tostring = function () return ' empty component map' end ,
708+ __newindex = function () __error_fmt ' attempt to modify empty component map' end
706709 }),
707710
708711 --- @type evolved.component[]
709712 __EMPTY_COMPONENT_LIST = __lua_setmetatable ({}, {
710- __newindex = function () __error_fmt (' attempt to modify empty component list' ) end
713+ __tostring = function () return ' empty component list' end ,
714+ __newindex = function () __error_fmt ' attempt to modify empty component list' end
711715 }),
712716
713717 --- @type evolved.component[]
714718 __EMPTY_COMPONENT_STORAGE = __lua_setmetatable ({}, {
715- __newindex = function () __error_fmt (' attempt to modify empty component storage' ) end
719+ __tostring = function () return ' empty component storage' end ,
720+ __newindex = function () __error_fmt ' attempt to modify empty component storage' end
716721 }),
717722}
718723
0 commit comments