-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bugs in negated instanceof
expressions
#9082
Labels
Comments
Thanks for the report! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in
andinstanceof
expressions in JScan be negated by grouping them and applying the
!
operator, i.e.Applying the
!
operator incorrectly (on the LHS operand) leads to bugs:For more information, please see these MDN docs and the no-unsafe-negation recommended Eslint rule.
I have found a potentially problematic instance of the above bugs in your codebase:
flow/packages/flow-parser/test/esprima_test_runner.js
Line 449 in 8eb1dd8
The text was updated successfully, but these errors were encountered: