[Webkit-unassigned] [Bug 40080] Web Inspector: better Function.prototype.bind for the internal code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 4 02:58:58 PDT 2010


--- Comment #14 from Nikita Vasilev <me+webkit at elv1s.ru>  2010-06-04 02:58:57 PST ---
(In reply to comment #8)
> My main objection to the proposed fix is that it's misleading.  The debugger is showing you something which isn't true.  I'd be quite happy if the toString() was implemented like this though:
> binded.toString = function toString() {
>     return "bound: " + func.toString();
> };

Sounds good enough for me. 

So, everyone, what's the final decision?

(In reply to comment #7)
> ... None of the major frameworks do this trick for the bind.


(In reply to comment #12)
> I think what we should do is to instrument all the handler registrations and store JavaScript source location at the place of the registration. That clearly adds some overhead and needs to be optional, but it gives us source location of the handler registration. And that is exactly what user needs. He might see call to bind there, but he will see bind's arguments as well. We were thinking of doing this for timeline long ago. It might be good time to start.

Chrome already did it, isn't it?

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list