Skip to content

Instantly share code, notes, and snippets.

@leafo
Last active August 29, 2015 13:59
Show Gist options
  • Save leafo/10703550 to your computer and use it in GitHub Desktop.
Save leafo/10703550 to your computer and use it in GitHub Desktop.
-- LuaJIT 2.1.0-alpha 27c453e
-- jit.off() -- no error when jit is off
local t = {
msg = "hello",
}
local function breaks(parts)
local out = ""
if parts.msg then
local msg = "//" .. parts.msg
out = msg .. out
end
return out
end
for i = 1, 100000 do
local out = breaks(t)
if out == "" then
error("empty at " .. tostring(i))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment