Currently if a object does not define an __index or a lua_fields method all fields/methods will be allowed. And if it does its treated as a whitelist.
This PR makes it so if its not defined by default no fields/methods will be allowed. And adds a permissive mode which when enabled will allow all fields/methods by default and treat lua_fields as a blacklist instead.
__newindex and __index still take priority over all though.
Currently if a object does not define an
__index
or alua_fields
method all fields/methods will be allowed. And if it does its treated as a whitelist.This PR makes it so if its not defined by default no fields/methods will be allowed. And adds a permissive mode which when enabled will allow all fields/methods by default and treat lua_fields as a blacklist instead.
__newindex
and__index
still take priority over all though.