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

feat: Get instance comparison by hand #1332

Merged
merged 1 commit into from
Apr 29, 2021
Merged

feat: Get instance comparison by hand #1332

merged 1 commit into from
Apr 29, 2021

Conversation

ukstv
Copy link
Contributor

@ukstv ukstv commented Apr 29, 2021

No Symbol.hasInstance voodoo. Babel deserves its name.

Should solve #1311

No Symbol.hasInstance voodoo. Babel deserves its name.
@ukstv ukstv requested a review from zachferland April 29, 2021 16:31
static [Symbol.hasInstance](instance: any): boolean {
// WORKAROUND. Weird replacement for Symbol.hasInstance due to
// this old bug in Babel https://github.com/babel/babel/issues/4452
// which is used by CRA, which is widely popular.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ukstv ukstv merged commit 8dbdc1b into develop Apr 29, 2021
@ukstv ukstv deleted the su/instance-of branch May 2, 2021 15:38
@ukstv ukstv restored the su/instance-of branch May 2, 2021 15:38
@ukstv ukstv deleted the su/instance-of branch July 15, 2021 11:37
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