mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
fix: revert to one line statement
This commit is contained in:
parent
2d8b42b6b7
commit
252cf44b06
1 changed files with 2 additions and 15 deletions
|
@ -290,12 +290,7 @@ checkresults(
|
||||||
return 1, 2
|
return 1, 2
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
checkresults(
|
checkresults({ false, "pcall.luau:293: foo\npcall.luau:293\npcall.luau:293\n" }, xpcall(function() error("foo") end, debug.traceback))
|
||||||
{ false, "pcall.luau:296: foo\npcall.luau:296\npcall.luau:293\n" },
|
|
||||||
xpcall(function()
|
|
||||||
error("foo")
|
|
||||||
end, debug.traceback)
|
|
||||||
)
|
|
||||||
checkresults(
|
checkresults(
|
||||||
{ false, "error in error handling" },
|
{ false, "error in error handling" },
|
||||||
xpcall(function()
|
xpcall(function()
|
||||||
|
@ -317,15 +312,7 @@ checkresults(
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
checkresults(
|
checkresults({ "yield", "return", false, "pcall.luau:315: foo\npcall.luau:315\npcall.luau:315\n" }, colog(function() return xpcall(function() coroutine.yield() error("foo") end, debug.traceback) end))
|
||||||
{ "yield", "return", false, "pcall.luau:325: foo\npcall.luau:325\npcall.luau:320\n" },
|
|
||||||
colog(function()
|
|
||||||
return xpcall(function()
|
|
||||||
coroutine.yield()
|
|
||||||
error("foo")
|
|
||||||
end, debug.traceback)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
-- xpcall error handling during error handling inside xpcall after yields
|
-- xpcall error handling during error handling inside xpcall after yields
|
||||||
checkresults(
|
checkresults(
|
||||||
|
|
Loading…
Add table
Reference in a new issue