Add detailed message to NullPointerException describing what is null
When Firefox tried to make the "X is undefined" JavaScript exception message user-friendlier, it broke flipkart.com. The website's JavaScript explicitly depended on the exact wording of exception messages. Simply loading the flipkart.com home page caused "X is undefined" exceptions, which it tried to parse with regular expressions. The new exception message had to be reverted. :(<p><a href="https://www.fxsitecompat.com/en-CA/docs/2018/improved-javascript-error-message-breaks-code-relying-on-the-legacy-format/" rel="nofollow">https://www.fxsitecompat.com/en-CA/docs/2018/improved-javasc...</a><p>This is an unfortunate example of Hyrum's Law: "With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody."<p><a href="http://www.hyrumslaw.com/" rel="nofollow">http://www.hyrumslaw.com/</a>