codehag / js-better-errors

Let's discuss making better errors for JavaScript
MIT License
37 stars 2 forks source link

MDN JS error message docs #12

Open Elchi3 opened 5 years ago

Elchi3 commented 5 years ago

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.

littledan commented 5 years ago

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