for...in loop iterates over shadowed properties

In a for...in loop, Safari mistakenly iterates over shadowed properties of an object.

Shadowed properties are an object's constructor's prototype properties which have been overwritten by a property of the object.

This bug affects Safari up to version 2, but has been corrected in WebKit.

Test page Workaround is not included
Reported by: Tobie Langel.

Safari | Reported on 7 February 2007.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)