[Webkit-unassigned] [Bug 171915] [JSC] Proxy's GetPrototypeOf does not invoked during access to __proto__ property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 10 09:46:26 PDT 2017


--- Comment #2 from GSkachkov <gskachkov at gmail.com> ---
(In reply to Saam Barati from comment #1)
> Maybe we don't properly forward the receiver?
> I think this code should definitely go down the get() path in Proxy, but
> maybe the issue is we don't call get() on target in the correct way.

Hmm, It seems that you right.
If I add get, it start invoke getPrototypeOf
var target = {};
var proxy = new Proxy(target, {
    getPrototypeOf(t, ) { print("get prototype:", t); return t; },
    get(t, property, receiver) { print("get", property); return Reflect.get(t, property, receiver); } 
>>> proxy.__proto__
get __proto__
get prototype: [object Object]
[object Object]

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170510/261f6e9c/attachment-0001.html>

More information about the webkit-unassigned mailing list