fix: update more line numbers

This commit is contained in:
ramdoys 2024-12-08 22:26:32 -05:00
parent 4f7b50d760
commit 9281bd727e
2 changed files with 9 additions and 9 deletions

View file

@ -340,7 +340,7 @@ function foo()
error("foo") error("foo")
end end
local fooerr = "closure.luau:351: foo" local fooerr = "closure.luau:350: foo"
function goo() function goo()
foo() foo()

View file

@ -164,7 +164,7 @@ checkresults(
-- error after yield tests -- error after yield tests
checkresults( checkresults(
{ "yield", "return", false, "pcall.luau:167: foo" }, { "yield", "return", false, "pcall.luau:171: foo" },
colog(function() colog(function()
return pcall(function() return pcall(function()
coroutine.yield() coroutine.yield()
@ -173,7 +173,7 @@ checkresults(
end) end)
) )
checkresults( checkresults(
{ "yield", "yield", "return", true, false, "pcall.luau:176: foo" }, { "yield", "yield", "return", true, false, "pcall.luau:182: foo" },
colog(function() colog(function()
return pcall(function() return pcall(function()
coroutine.yield() coroutine.yield()
@ -185,7 +185,7 @@ checkresults(
end) end)
) )
checkresults( checkresults(
{ "yield", "yield", "return", false, "pcall.luau:188: bar" }, { "yield", "yield", "return", false, "pcall.luau:192: bar" },
colog(function() colog(function()
return pcall(function() return pcall(function()
coroutine.yield() coroutine.yield()
@ -267,7 +267,7 @@ checkresults(
-- xpcall immediate error handling -- xpcall immediate error handling
checkresults( checkresults(
{ false, "pcall.luau:270: foo" }, { false, "pcall.luau:272: foo" },
xpcall(function() xpcall(function()
error("foo") error("foo")
end, function(err) end, function(err)
@ -291,7 +291,7 @@ checkresults(
end) end)
) )
checkresults( checkresults(
{ false, "pcall.luau:106: foo\npcall.luau:106\npcall.luau:106\n" }, { false, "pcall.luau:296: foo\npcall.luau:296\npcall.luau:296\n" },
xpcall(function() xpcall(function()
error("foo") error("foo")
end, debug.traceback) end, debug.traceback)
@ -307,7 +307,7 @@ checkresults(
-- xpcall error handling after yields -- xpcall error handling after yields
checkresults( checkresults(
{ "yield", "return", false, "pcall.luau:110: foo" }, { "yield", "return", false, "pcall.luau:314: foo" },
colog(function() colog(function()
return xpcall(function() return xpcall(function()
coroutine.yield() coroutine.yield()
@ -318,7 +318,7 @@ checkresults(
end) end)
) )
checkresults( checkresults(
{ "yield", "return", false, "pcall.luau:111: foo\npcall.luau:111\npcall.luau:111\n" }, { "yield", "return", false, "pcall.luau:325: foo\npcall.luau:325\npcall.luau:325\n" },
colog(function() colog(function()
return xpcall(function() return xpcall(function()
coroutine.yield() coroutine.yield()
@ -377,7 +377,7 @@ function weird()
end end
checkresults( checkresults(
{ false, "pcall.luau:129: cannot resume dead coroutine" }, { false, "pcall.luau:382: cannot resume dead coroutine" },
pcall(function() pcall(function()
for _ in coroutine.wrap(pcall), weird do for _ in coroutine.wrap(pcall), weird do
end end