Status: New
Owner: ----

New issue 1617 by [email protected]: --harmony-weakmaps breaks Object.defineProperty for value properties
http://code.google.com/p/v8/issues/detail?id=1617

Without --harmony-weakmaps enabled:

x = Object.create({}, { valueProp: { value: 10, enumerable: false, configurable: true, writable: true } })
{}
x.valueProp
10

With --harmony-weakmaps enabled:

x = Object.create({}, { valueProp: { value: 10, enumerable: false, configurable: true, writable: true } })
TypeError: Invalid property. A property cannot both have accessors and be writable or have a value: #<WeakMap>
    at Function.create (native)

It's interesting because the property being created doesn't have accessors.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to