Closed Bug 1346627 Opened 7 years ago Closed 6 years ago

"TypeError: this is undefined [Learn More]" can be improved

Categories

(Core :: JavaScript Engine, defect, P3)

47 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1259822

People

(Reporter: peterbe, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Attached is a screenshot showing the same error message in Firefox 54 and (in the background) Chrome 56.

The Chrome error is vastly more helpful.
I suspect the JS team would need to improve this type of message.
Component: Developer Tools → JavaScript Engine
Product: Firefox → Core
we're throwing from ToObjectSlow, with ReportIsNullOrUndefined.
maybe we could pass more context to ToObject* functions.
Priority: -- → P3
I cannot reproduce the error on the codepen tho,
this should be fixed by bug 1259822 and bug 1488417.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: