Module:User:Surjection/test

This is a private module sandbox of Surjection, for their own experimentation. Items in this module may be added and removed at Surjection's discretion; do not rely on this module's stability.


local export = {}

function export.test()
	local data = mw.loadData("Module:languages/data/2")
	-- setmetatable(data, {})				-- This fails.
	
	getmetatable(data).__metatable = nil
	local data2 = setmetatable(data, {})	-- This works!
	
	data2.new_index = "muahaha"
	return data2
end

return export