Comment #2 on issue 959 by [email protected]: Overriding a property
defined with set/get by a property value doesn't work
http://code.google.com/p/v8/issues/detail?id=959
There are several bugs in Object.defineProperty. I've been working on bug
687 which is a duplicate of this.
Other bugs include:
- Object.defineProperty({}, 'p', {get: undefined, set: undefined}) should
add an accessor property to the object, where both accessors are undefined.
Odd but true.
- Object.defineProperty({ get p() {} }, 'p', {get: undefined}) should leave
the object with an accessor property 'p' whose 'get' and 'set' values are
the undefined value.
- Object.defineProperty({ get p() {} }, 'p', {enumerable: false }) should
leave the object with an accessor property 'p' whose 'get' value is
unchanged, but whose enumerable value is now false.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev