Closed barron-j closed 1 year ago
I believe I have a reasonable-ish resolution for this on edge once Travis finishes Travis-ing. I know there's some weird magic thing that happens when dates come in from another realm (iframes maybe) such that you shouldn't use instanceof, but in this case I think it's probably unlikely enough that we can address it if it ever arises. As it would happen, I ran into a similar issue with a deep set and a date today too.
Good and bad are now the same in the example, so I'm going to call this one good.
Description:
Ractive.get()
returns date values as empty objects.get({ virtual: false })
.isObjectLike()
method. Doesn't check for Date values.Versions affected:
Reproduction:
https://jsfiddle.net/wg80a173/2/