[Webkit-unassigned] [Bug 161111] toString called on proxies returns incorrect tag

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 24 10:54:57 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=161111

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
(In reply to comment #1)
> Interesting, this happens because the className for Proxies is ProxyObject
> rather than Object. Joe, does the WebInspector use the className of Proxy
> objects for inspectoring?

No, Web Inspector doesn't rely on it for anything.

Currently, Web Inspector just internally checks if an object is a ProxyObject in JSInjectedScriptHost so that we can add internal properties [[Target]], [[Handler]].

It just so happens that we expose ProxyObject when logging an object that is a proxy:

  > new Proxy({}, {})
  < ProxyObject {target: {}, handler: {}}

but again, we don't rely on that. We could easily denote proxies in some explicit way.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160824/e330c44b/attachment.html>


More information about the webkit-unassigned mailing list