facebookarchive/prepack

Deal with abstract parent objects when creating new properties.

Open

#1016 aperta il 27 set 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (520 fork)batch import
abstractenhancementhelp wantedtest needed

Metriche repository

Star
 (14.268 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor