Fix strict mode losing effect errors that are not strings

This commit is contained in:
Kaan 2026-10-19 17:45:11 +03:00
parent a4151bd41e
commit a77c552658
2 changed files with 13 additions and 3 deletions

View file

@ -3047,6 +3047,15 @@ TEST("strict", wrap_root(function()
CHECK(not ok)
end
do CASE "error with a non-string value"
local ok, err = pcall(effect, function()
error({})
end)
CHECK(not ok)
CHECK(string.find(err, "table: "))
end
do CASE "duplicate properties"
local ok = pcall(function()
create "TextLabel" {