Skip to content

Commit

Permalink
fix: revert to one line statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ramdoys committed Dec 9, 2024
1 parent 2d8b42b commit 252cf44
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions tests/conformance/pcall.luau
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,7 @@ checkresults(
return 1, 2
end)
)
checkresults(
{ false, "pcall.luau:296: foo\npcall.luau:296\npcall.luau:293\n" },
xpcall(function()
error("foo")
end, debug.traceback)
)
checkresults({ false, "pcall.luau:293: foo\npcall.luau:293\npcall.luau:293\n" }, xpcall(function() error("foo") end, debug.traceback))
checkresults(
{ false, "error in error handling" },
xpcall(function()
Expand All @@ -317,15 +312,7 @@ checkresults(
end)
end)
)
checkresults(
{ "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)
)
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))

-- xpcall error handling during error handling inside xpcall after yields
checkresults(
Expand Down

0 comments on commit 252cf44

Please sign in to comment.