mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 18:30:54 +01:00
fix: update line numbers
This commit is contained in:
parent
157244c097
commit
4f7b50d760
3 changed files with 7 additions and 7 deletions
|
@ -60,8 +60,8 @@ assert(concat(pcall(function()
|
||||||
return 1, 2, 3
|
return 1, 2, 3
|
||||||
end)) == "true,1,2,3")
|
end)) == "true,1,2,3")
|
||||||
assert(concat(pcall(function()
|
assert(concat(pcall(function()
|
||||||
error("oops")
|
error("oops")
|
||||||
end)) == "false,basic.luau:39: oops")
|
end)) == "false,basic.luau:63: oops")
|
||||||
|
|
||||||
-- assignments
|
-- assignments
|
||||||
assert((function()
|
assert((function()
|
||||||
|
|
|
@ -340,7 +340,7 @@ function foo()
|
||||||
error("foo")
|
error("foo")
|
||||||
end
|
end
|
||||||
|
|
||||||
local fooerr = "closure.luau:284: foo"
|
local fooerr = "closure.luau:351: foo"
|
||||||
|
|
||||||
function goo()
|
function goo()
|
||||||
foo()
|
foo()
|
||||||
|
|
|
@ -164,7 +164,7 @@ checkresults(
|
||||||
|
|
||||||
-- error after yield tests
|
-- error after yield tests
|
||||||
checkresults(
|
checkresults(
|
||||||
{ "yield", "return", false, "pcall.luau:80: foo" },
|
{ "yield", "return", false, "pcall.luau:167: 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:81: foo" },
|
{ "yield", "yield", "return", true, false, "pcall.luau:176: 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:82: bar" },
|
{ "yield", "yield", "return", false, "pcall.luau:188: 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:103: foo" },
|
{ false, "pcall.luau:270: foo" },
|
||||||
xpcall(function()
|
xpcall(function()
|
||||||
error("foo")
|
error("foo")
|
||||||
end, function(err)
|
end, function(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue