From 252cf44b06a99f33a6f4cf1285c99428386696db Mon Sep 17 00:00:00 2001 From: ramdoys Date: Sun, 8 Dec 2024 23:25:19 -0500 Subject: [PATCH] fix: revert to one line statement --- tests/conformance/pcall.luau | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/conformance/pcall.luau b/tests/conformance/pcall.luau index c8e560390..5a807ebb8 100644 --- a/tests/conformance/pcall.luau +++ b/tests/conformance/pcall.luau @@ -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() @@ -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(