Closed Bug 1609677 Opened 6 years ago Closed 6 years ago

Inspecting a bound function should select the dbgObj.boundTargetFunction in the debugger panel

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

Details

Attachments

(1 file)

This issue is being originated from the following React DevTools extension issue:

but it is not specific to the devtools extensions, the inspect binding provided by the webconsole is affected by the same issue.

See https://github.com/facebook/react/issues/17681#issuecomment-574617158 for the STR used to reproduce it using the React DevTools extension.

What happened?

toolbox.inspectObjectActor throws TypeError: objectGrip.location is undefined because the object is a bound function and the remote debugger server can't provide a location for it.

What should have happened?

The target bound function should have been selected in the debugger panel.

Anything else we should know?

When a debug object is a bound function dbgObj.isBoundFunction is true and the dbgObj.boundTargetFunction property is set to the target bound function.

Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Priority: -- → P1
See Also: → 1609671
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/f44339f9984d Inspect the boundTargetFunction if the target object is a bound function. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: