DescriptionFixes bug in Object.freeze and Object.seal causing them to misbehave when Array.prototype has changed.
Object.freeze and Object.seal uses GetOwnPropertyNames which
returns an array with local property names. This array will also have
the additional properties defined on Array.prototype or
Object.prototype.
Note that, the implementation of GetOwnPropertyNames (when used as
Object.getOwnPropertyNames) is correct, since the spec says to create
a new Array (which would also have these properties).
Committed: http://code.google.com/p/v8/source/detail?r=5350
Patch Set 1 #Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #
Messages
Total messages: 5 (0 generated)
|