Fix strict mode losing effect errors that are not strings (#104)

Co-authored-by: centau <83140718+centau@users.noreply.github.com>
This commit is contained in:
Kaan 2026-10-22 14:58:01 +03:00 • committed by GitHub
parent 673105c51a
commit 139c873b1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View file

@ -3196,6 +3196,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" {