File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -210,17 +210,7 @@ namespace Js
210
210
return nullptr ;
211
211
}
212
212
213
- // Ignore special properties (ex: Array.length)
214
- uint specialPropertyCount = this ->shadowData ->currentObject ->GetSpecialPropertyCount ();
215
- if (specialPropertyCount > 0 )
216
- {
217
- PropertyId const * specialPropertyIds = this ->shadowData ->currentObject ->GetSpecialPropertyIds ();
218
- Assert (specialPropertyIds != nullptr );
219
- for (uint i = 0 ; i < specialPropertyCount; i++)
220
- {
221
- TestAndSetEnumerated (specialPropertyIds[i]);
222
- }
223
- }
213
+ RecyclableObject* previousObject = this ->shadowData ->currentObject ;
224
214
225
215
RecyclableObject * object;
226
216
if (!this ->enumeratingPrototype )
@@ -261,6 +251,21 @@ namespace Js
261
251
}
262
252
}
263
253
while (true );
254
+
255
+ // Ignore special properties (ex: Array.length)
256
+ if (previousObject != nullptr )
257
+ {
258
+ uint specialPropertyCount = previousObject->GetSpecialPropertyCount ();
259
+ if (specialPropertyCount > 0 )
260
+ {
261
+ PropertyId const * specialPropertyIds = previousObject->GetSpecialPropertyIds ();
262
+ Assert (specialPropertyIds != nullptr );
263
+ for (uint i = 0 ; i < specialPropertyCount; i++)
264
+ {
265
+ TestAndSetEnumerated (specialPropertyIds[i]);
266
+ }
267
+ }
268
+ }
264
269
}
265
270
}
266
271
}
You can’t perform that action at this time.
0 commit comments