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

fix #504: make instances of original Date pass as instances of the fake Date #505

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Sep 13, 2024

Purpose (TL;DR) - mandatory

Fix issue #504 by utilizing the well known symbol Symbol.hasInstance
to customise the default behavior of the instanceof operator.

Refs

@fatso83 fatso83 force-pushed the fix-504--pass-instanceof-check branch from 5f3cc4b to e228f48 Compare September 13, 2024 13:39
@fatso83 fatso83 merged commit ae0a266 into main Sep 13, 2024
11 checks passed
@fatso83 fatso83 deleted the fix-504--pass-instanceof-check branch September 13, 2024 13:52
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.

1 participant