Status: New
Owner: ----

New issue 599 by [email protected]: Object.getOwnPropertyDescriptor returns undefined for array value indexes
http://code.google.com/p/v8/issues/detail?id=599

When trying to get the property descriptor for an array item, I'm always
getting undefined.  I'm assuming this is because of how arrays are
optimized under the hood.  Shouldn't we normalize the output to give
something in this case?

Example from latest node(with latest V8 release)

node> [Object.getOwnPropertyDescriptor([1,2,3], "0"),
Object.getOwnPropertyDescriptor([1,2,3],"length")]
[
 undefined,
 {
  "value": 3,
  "writable": true,
  "enumerable": false,
  "configurable": true
 }
]

Also, it doesn't matter if I pass in 0 or "0" for the property name.



--
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