forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in IRGen when dealing with mixed literal and computed props
Summary: In IRGen when generating IR for object initialization, we always generate StoreNewOwnPropertyInst for every literal property. This is to assume that every property must always be new. However with the introduction of computed property, this is no longer true, as a computed property could in theory define any property. To fix this, whenever we encounter a computed property, we can no longer generate StoreNewOwnPropertyInst in the future, but always generate StoreOwnPropertyInst instead. Reviewed By: avp Differential Revision: D16231160 fbshipit-source-id: 581dbae96d0e0d38ce53278c0d97aaec9f916966
- Loading branch information
1 parent
50b71c2
commit 31c5683
Showing
2 changed files
with
29 additions
and
2 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