-
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] Separately handle string/any typed computed property vs other …
…invalid computed properties Summary: In this diff, we will detect the kinds of computed property types by inlining the check of `WriteComputedObjPropCheckT`. We do not need another concretization pass, since we are already given the concretized keys here. For string and any typed keys, we will continue to go through the `ObjectExpressionAcc.ComputedProp.NonLiteralKey` variant, which is unsound, but will be fixed later. For number and other kinds of keys, we will error, and as a result, we can safely ignore them. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D66968683 fbshipit-source-id: 1ee1befcd52d88244061efe6ba533c7dbde8391a
- Loading branch information
1 parent
eda5ce1
commit facff9a
Showing
4 changed files
with
49 additions
and
30 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
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