Closed Bug 1898871 Opened 11 months ago Closed 11 months ago

Display class name when displaying an object in the console

Categories

(DevTools :: Console, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1526688

People

(Reporter: calixte, Unassigned)

Details

STR:

  • open the console;
  • enter class A {};console.log(new A());

Expected result:
Something like > A {}.

Actual result:
> Object {}

It's especially useful when B is derived from A and we want to know if the dumped object is a A or a B instance.

This looks like Bug 1526688 , which we should really look into at some point

Status: NEW → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1526688
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.