js-better-errors icon indicating copy to clipboard operation
js-better-errors copied to clipboard

MDN JS error message docs

Open Elchi3 opened this issue 7 years ago • 1 comments

Hey there, this is a great effort! :100:

I just wanted to let you know that over on MDN, we try to help web developers with documentation alongside error messages. You can read about it here: https://hacks.mozilla.org/2016/06/helping-web-developers-with-javascript-errors/ and find the docs on MDN here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors

Basically, in Firefox, the console will spit out "RangeError: radix must be an integer at least 2 and no greater than 36 [Learn more]``" for errors we have written docs about. As the blog posts says, we haven't written docs for all error messages yet, so help is welcome :)

The errors we've documented are the top errors thrown in Firefox according to users who have opted into Firefox Telemetry. So, maybe that is also useful data to you.

I'm happy to talk more about this, so please let me know if I can be of any help.

Elchi3 avatar Nov 02 '18 12:11 Elchi3

This is awesome! I wonder if we could extend it to more JS implementations beyond SpiderMonkey. cc @mayalekova

littledan avatar Nov 02 '18 12:11 littledan