Closed Bug 1060068 Opened 10 years ago Closed 10 years ago

ES6 Proxies: Object.freeze() calls [[GetProperty]] too many times.

Categories

(Core :: JavaScript: Standard Library, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1125437

People

(Reporter: efaust, Unassigned)

References

Details

var getDescCalled = 0; function getOwnPropertyDescriptor(target, P) { assertEq(++getDescCalled, 1); return Object.getOwnPropertyDescriptor(target, P); } var handler = { getOwnPropertyDescriptor }; var p = new Proxy({foo : 5}, handler); Object.freeze(p); asserts. The trouble comes from the getGenericAttributes and setGenericAttributes() setup in JSObject::sealOrFreeze.
Fixed in bug 1125437. It also includes a test that makes sure we call only the right traps on the Proxy. (Eric's test here passes)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.