You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently ran into some breaks in #43004 (comment) as a result of #25330; however, I think this might be a bigger change than we anticipate.
For one, we don't check whether the value is used after checking the value. For another, we don't really think about class properties, which aren't reliable unless using strictPropertyInitialization.
Checking the body of the if is unnecessary, don't change behavior on that.
This check can only be done if strictPropertyInitialization is true.
This check reports false-positives when a closure-captured variable of a Promise is assigned in some functions, and checked for truthiness in another, and that's a bug.
We recently ran into some breaks in #43004 (comment) as a result of #25330; however, I think this might be a bigger change than we anticipate.
For one, we don't check whether the value is used after checking the value. For another, we don't really think about class properties, which aren't reliable unless using
strictPropertyInitialization
.Finally, there's some sort of bug where this is plainly giving false positives.
I guess the question is: should these be errors?
The text was updated successfully, but these errors were encountered: