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

NEW
Unassigned

Status

()

P3
normal
a year ago
5 months ago

People

(Reporter: peterbe, Unassigned)

Tracking

(Blocks: 1 bug)

47 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

a year ago
Created attachment 8846400 [details]
Screen Shot 2017-03-12 at 7.30.50 AM.png

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
Comment hidden (offtopic)
Comment hidden (offtopic)
Blocks: 622261
we're throwing from ToObjectSlow, with ReportIsNullOrUndefined.
maybe we could pass more context to ToObject* functions.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.