Open Bug 746626 Opened 13 years ago Updated 2 years ago

Make bound functions inspectable

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

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.
Depends on: 746622
Priority: -- → P3
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
Depends on: dbg-inspect
Blocks: dbg-inspect
No longer depends on: dbg-inspect
Product: Firefox → DevTools
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.