Closed Bug 1391649 Opened 7 years ago Closed 7 years ago

Constructor.prototype.constructor displayed as Constructor()

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: Oriol, Assigned: nchevobbe)

References

Details

Open the web console and inspect this code: Object.prototype The result looks like this: ▼ Object { … } ▶ Object() ▶ hasOwnProperty() ▶ isPrototypeOf() ... So it seems that `Object.prototype` has an `Object` method. But in fact this is the `constructor` method. This is confusing. It should be like in variablesview, i.e. ▼ Object { … } ▶ constructor: Object()
Fixed by bug 1399460. Now it's ▼ { … } ▶ constructor: function Object() ...
Status: NEW → RESOLVED
Closed: 7 years ago
Depends on: 1399460
Resolution: --- → FIXED
Assignee: nobody → nchevobbe
Target Milestone: --- → Firefox 57
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.