Closed
Bug 1391649
Opened 7 years ago
Closed 7 years ago
Constructor.prototype.constructor displayed as Constructor()
Categories
(DevTools :: Console, defect)
DevTools
Console
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()
Reporter | ||
Comment 1•7 years ago
|
||
Fixed by bug 1399460. Now it's
▼ { … }
▶ constructor: function Object()
...
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Depends on: 1399460
Resolution: --- → FIXED
Updated•7 years ago
|
Assignee: nobody → nchevobbe
Target Milestone: --- → Firefox 57
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•