Fixed nil -> nil props showing up as failing in patch visualizer (plugin) (#1081)

This commit is contained in:
Sebastian Stachowicz
2025-07-26 00:27:11 +02:00
committed by GitHub
parent e092a7301f
commit 7f68d9887b
2 changed files with 10 additions and 0 deletions

View File

@@ -25,6 +25,14 @@ local function trueEquals(a, b): boolean
return true
end
-- Treat nil and { Ref = "000...0" } as equal
if
(a == nil and type(b) == "table" and b.Ref == "00000000000000000000000000000000")
or (b == nil and type(a) == "table" and a.Ref == "00000000000000000000000000000000")
then
return true
end
local typeA, typeB = typeof(a), typeof(b)
-- For tables, try recursive deep equality