Closed Bug 999156 Opened 7 years ago Closed 7 years ago

Object.getOwnPropertyDescriptor launders away custom descriptor properties returned from scripted proxies

Categories

(Core :: JavaScript: Standard Library, defect)

Other
Android
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: efaust, Unassigned)

References

Details

This is similar to bug 601379. We take the object returned by the trap, convert it to a JSPropertyDescriptor losing the  and  , convert *that* to a is::PropSpec, and then generate a *new* object without the information from that. This is madness. It is easily fixed if we do the conversion to PropSpec in the proxy api.
Blocks: 978228
This actually got removed from ES6. See bug 1031243 for more details.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.