Comments are not instances of Comment
when using GlobalRegistrator
#1580
Labels
bug
Something isn't working
Comment
when using GlobalRegistrator
#1580
Describe the bug
When using
GlobalRegistrator
,instanceof Comment
is alwaysfalse
, because the globally definedComment
is not the same as the one that is actually used to create comment instances.Svelte 5 does this check somewhere deep in their template handling – that's how I stumbled upon the problem. I first thought it was a problem with Svelte Testing Library, see issue #407 over there.
To Reproduce
Expected behavior
I expect
(comment instanceof Comment) === true
.Device:
The text was updated successfully, but these errors were encountered: