Even better error message on property access on undefined/null variable
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
People
(Reporter: nchevobbe, Assigned: jorendorff)
References
Details
Attachments
(1 file, 2 obsolete files)
Reporter | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Assignee | ||
Comment 16•6 years ago
|
||
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Reporter | ||
Comment 19•6 years ago
|
||
Assignee | ||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
uplift |
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Updated•6 years ago
|
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
|
||
Assignee | ||
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Comment 28•6 years ago
|
||
Given that our message still doesn't match Chrome's (and in fact per https://news.ycombinator.com/item?id=19493433 contains completely disjoint information!), could we consider changing it again to something that would pass the regexps we have seen but still includes the information we want to include? The high-level bit seemed to be that the string needs to end with "undefined", right?
We'd probably want a few cycles of nightly testing first, but might still be worth it...
Assignee | ||
Comment 29•6 years ago
|
||
The safest change is to converge on Chrome's error message.
The next-safest course is, of course, to change nothing.
I don't want to be overly timid here, but anything else risks being a big waste of everyone's time, and finally being backed out, thus achieving nothing. Feel free; as for me, I have other things to work on...
Updated•5 years ago
|
Description
•