Closed Bug 1009199 Opened 10 years ago Closed 10 years ago

Proxy [[Get]] is completely mistreated for prototypically inherited proxies

Categories

(Core :: JavaScript: Standard Library, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 914314

People

(Reporter: efaust, Unassigned)

References

Details

The spec specifies that the [[Get]] operation looks like this:

When we need to do a get on O

Invoke [[GetOwnPropertyDescriptor]] on O
if that's undefined:
    Invoke [[GetPrototypeOf]] on O
    if that's not null:
        Invoke [[Get]] on the prototype

So, for an inherited proxy, we should only see the [[Get]] trap called. No [[HasProperty]] or [[GetOwnProperty]] or anything like that.

Sadly, this is not the case. [[HasProperty]] is called, and *NOT* [[Get]].

This is analgous to the failure mode in bug 979671
I just missed the existence of 914314 when I filed this. It's the same.
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.