Open
Bug 746626
Opened 13 years ago
Updated 2 years ago
Make bound functions inspectable
Categories
(DevTools :: Debugger, enhancement, P3)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: Waldo, Unassigned)
References
(Blocks 1 open bug, )
Details
I'm told there's currently no way to determine the function that a bound function will actually call, and this information isn't exposed in the console and whatever other places one would want to expose it. That is, given this:
var f = (function g() { "use strict"; m.call(arguments); }).bind(null, 1, 2, 3);
f();
there's no way to know that the second line will invoke |g|, with |this === null|, or that it'll invoke it with the leading arguments |1, 2, 3|. We should be able to expose this; it apparently can come in handy when debugging, sometimes (see the URL, although the use case is admittedly esoteric).
This is the UI half of the problem; bug 746622 is the JS engine half of the problem.
Updated•11 years ago
|
Blocks: minotaur-kanban
Updated•10 years ago
|
Summary: Expose internal bound-function metadata (the function that was bound, the |this| to be passed to it, the prepended leading arguments) in UI → Make bound functions inspectable
Updated•10 years ago
|
Depends on: dbg-inspect
Updated•10 years ago
|
Blocks: dbg-inspect
No longer depends on: dbg-inspect
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Type: defect → enhancement
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•