-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][match] Improve match logic for determining if a "property exis…
…ts" refinement is needed for an object property's pattern Summary: This diff is the Flow side of the change made to the transform in D67777384. We need to add a "property exists" refinement in some additional cases, where a possible check of `obj.prop === undefined` is possible, since that doesn't check that the property exists. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D70362252 fbshipit-source-id: fd2208d8aaf85e34458eaacb20f7f0b602d0f2fe
- Loading branch information
1 parent
fd1f9b0
commit f7d7bd4
Showing
3 changed files
with
99 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters