Open Bug 1562463 Opened 7 years ago Updated 1 year ago

Logged extended ES6 class instances display parents class name

Categories

(DevTools :: Console, defect, P3)

69 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: 709922234, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

1.open WebConsole
2.input class A extends URLSearchParams {}; new A

Actual results:

show A{}

Expected results:

show URLSearchParams {}

Component: Untriaged → Console
Product: Firefox → DevTools
Attached image Chrome result —

Chrome WebConsole

There's 2 issue here.
The first one is not having the class name for logged instances, which is Bug 1526688.
The second one is about extended classes that show the name of the parent class, which we should fix here.

Summary: Class name shows error in WebConsole → Logged extended ES6 class instances display parents class name
See Also: → 1526688
Severity: normal → S3

Both of the problems mentioned in comment 2 have the same root cause: the inspector only attempts to display the native (i.e. SpiderMonkey) JSClass of any debugged object. Fixing that problem will resolve both this and Bug 1526688 together.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: