Skip to content

Revert "ref(utils): Use type predicates in is utility functions" #4149

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

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Nov 11, 2021

Reverts #4124

@HazAT HazAT merged commit 922562f into master Nov 11, 2021
@HazAT HazAT deleted the revert-4124-kmclb-use-type-predicates-in-is-utils branch November 11, 2021 17:59
lobsterkatie added a commit that referenced this pull request Mar 23, 2022
This restores part of the work done in #4124, which then got reverted in #4149. The problem there was the predicates for `DOMError` and `DOMException`, both of which only exist in a browser context. This restores the predicates for `isError` and `isString`, which should be safe, because both `Error` and `string` exist in both browser and node contexts.
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