You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The !(skipConstructor && name === 'constructor') should be moved into the hasDontEnumBug block. And constructor should be added to the dontEnums array.
You can test this by having an object of properties, smth like I do in my own tests:
varshadowedProps=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'];/** Used to check problem JScript properties too */varshadowedObject=_.invert(shadowedProps);
In older IE Object.keys(shadowedObject) should produce an array of keys that is equiv to shadowedProps. The constructor check which should be moved to the hasDontEnumBug is to ensure that the constructor property is skipped on prototype objects but not plain object literals.
The text was updated successfully, but these errors were encountered:
The
!(skipConstructor && name === 'constructor')
should be moved into thehasDontEnumBug
block. Andconstructor
should be added to thedontEnums
array.You can test this by having an object of properties, smth like I do in my own tests:
In older IE
Object.keys(shadowedObject)
should produce an array of keys that is equiv toshadowedProps
. Theconstructor
check which should be moved to thehasDontEnumBug
is to ensure that theconstructor
property is skipped onprototype
objects but not plain object literals.The text was updated successfully, but these errors were encountered: