Last active
August 29, 2015 13:59
-
-
Save leafo/10703550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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