Jump to content

Module:Sandbox/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 8: Line 8:
i = i + 1
i = i + 1
end
end
return k
return tostring(k)
end
end



Revision as of 13:29, 23 January 2018

local p = {}

function p.memoryleak()
	local i = 1
	local k = {"memory leak test"}
	while true do
		k[i+1] = tostring(k[i])..tostring(k[i])
		i = i + 1
	end
	return tostring(k)
end

return p