Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require array-like subtypes to have the same constructor in order to be equal #855

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

papandreou
Copy link
Member

Updating jsdom in unexpected-dom is causing trouble because NodeList instances from different windows have different constructors in jsdom 16 and above.

Seems like the easiest way to get unexpected and unexpected-dom to DTRT in that kind of scenario is to relax this requirement a bit and only require the objects to have the same array-like subtype.

@papandreou papandreou self-assigned this Jul 10, 2023
@papandreou papandreou force-pushed the tech/relaxArrayLikeEqual branch from 2404e9a to 037f5f6 Compare July 10, 2023 22:19
@papandreou papandreou force-pushed the tech/relaxArrayLikeEqual branch from 037f5f6 to 3ff8d27 Compare July 10, 2023 22:36
Copy link
Member

@sunesimonsen sunesimonsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thanks for fixing this 👍

@papandreou papandreou merged commit b9236e6 into master Jul 20, 2023
@papandreou papandreou deleted the tech/relaxArrayLikeEqual branch July 20, 2023 06:34
@papandreou
Copy link
Member Author

Released in 13.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants