setfenv can no longer use the result of proxy.new
matthewdean opened this issue · comments
local env = proxy.new({
environment = getfenv(0)
})
setfenv(0, env)
--> bad argument #2 to 'setfenv' (table expected, got userdata)
Fixed by making the environment wrapper a table. All other wrappers of tables and userdata are still tables.