Closed Bug 1176199 Opened 9 years ago Closed 9 years ago

Allow duplicate property keys in Proxy ownKeys trap

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1049662
Tracking Status
firefox41 --- affected

People

(Reporter: anba, Unassigned)

References

(Blocks 1 open bug)

Details

---
js> Object.getOwnPropertyNames(new Proxy({}, {ownKeys: () => ["a", "a"]}))
typein:1:0 TypeError: trap ownKeys for Object.getOwnPropertyNames(...) returned an invalid result
---

Expected: Returns array object [ "a", "a" ]
Actual: Throws TypeError
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.