Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 619 by [email protected]: Object.defineProperty does not behave correctly when trying to define properties on elements.
http://code.google.com/p/v8/issues/detail?id=619

Object.defineProperty does not set the right property correctly when called
on arrays (or properties that are in elements).
obj = {};
obj[1] = 42;
print(obj[1]) // gives 42
Object.defineProperty(obj, '1', {value: 10, writable:false})
print(obj[1]) // gives 10
obj[1] = 5;
print(obj[1]) // gives 5

The above should not allow index 1 of obj to be overridden with 5 (but it
does).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to