File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1452,7 +1452,11 @@ namespace Js
1452
1452
DictionaryPropertyDescriptor<PropertyIndex> *descriptor;
1453
1453
bool result = newTypeHandler->propertyMap ->TryGetReference (propertyRecord, &descriptor);
1454
1454
Assert (result);
1455
- Assert (attributes[descriptor->GetDataPropertyIndex <false >()] & ObjectSlotAttr_Accessor);
1455
+ if (!(attributes[descriptor->GetDataPropertyIndex <false >()] & ObjectSlotAttr_Accessor))
1456
+ {
1457
+ // Setter without a getter; this is a stale entry, so ignore it
1458
+ continue ;
1459
+ }
1456
1460
Assert (oldTypeHandler->GetSetterSlotIndex (descriptor->GetDataPropertyIndex <false >()) == newTypeHandler->nextPropertyIndex );
1457
1461
descriptor->ConvertToGetterSetter (newTypeHandler->nextPropertyIndex );
1458
1462
newTypeHandler->ClearHasOnlyWritableDataProperties ();
You can’t perform that action at this time.
0 commit comments