facebookarchive/prepack
在 GitHub 查看Deal with abstract parent objects when creating new properties.
Open
#1,016 建立於 2017年9月27日
abstractenhancementhelp wantedtest needed
倉庫指標
- Star
- (14,268 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
When running up the prototype chain for various operations, Prepack will stop with an error if an abstract object is encountered in the prototype chain. This is unnecessarily conservative, particularly if the parent object is a simple object.
Write some test cases with objects that have partial and partial+simple objects in their prototype chains and then create various kinds of properties on the objects.