--[=[
	Sets a metatable on a table such that it errors when
	indexing a nil value

	@param target table -- Table to error on indexing
	@return table -- The same table, with the metatable set to readonly
]=]

function Table.readonly(target)
	return setmetatable(target, READ_ONLY_METATABLE)
end
