Closed Bug 1099399 Opened 10 years ago Closed 10 years ago

Remove getEnumerablePropertyKeys trap

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: evilpies, Unassigned)

References

Details

The only place where we use getEnumerablePropertyKeys, is what in ES6 would be [[Enumerate]] for plain objects (9.1.11). This case happens when you iterate over a native object with a proxy on the prototype. Per ES6 we should call getOwnPropertyNames and walk the prototype. So there is basically no good reason for this trap to exist.
Blocks: 978228
No longer blocks: es6
I ended up doing this in bug 783829 instead.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.