Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow] Do not call
this#optional
for invalid void_test
Summary: For invalid `void_test` (e.g. `foo === undefined` where undefined is defined locally), we shouldn't call optional_chaining because it will add refinement to `obj` in `obj.foo === undefined`, while in this case there shouldn't be any refinements. Changelog: [internal] Reviewed By: jbrown215 Differential Revision: D66019564 fbshipit-source-id: 67ea8f172e1f4de49ec340c2e1954dad9fad21bb
- Loading branch information