Timeline for What's a good way to extend Error in JavaScript?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 13, 2022 at 20:25 | history | edited | Victor Schröder | CC BY-SA 4.0 |
Added warning about the time when the answer was first written.
|
Sep 13, 2022 at 20:21 | comment | added | Victor Schröder | Yes, @nicoramirezdev, but this answer dates back to 2016. I'll add a warning at the beginning, but keep the content for historical reasons. | |
Sep 13, 2022 at 20:08 | comment | added | nicoramirezdev | utils.inherits is discouraged and legacy on node > 16.x.x. Node encourages to use class and extend instead nodejs.org/dist/latest-v16.x/docs/api/… | |
Apr 12, 2017 at 9:38 | comment | added | Victor Schröder | Hey @Alex, you are totally right! It's fixed now. Thanks! | |
Apr 12, 2017 at 9:37 | history | edited | Victor Schröder | CC BY-SA 3.0 |
Fixed code snippet, improved references to the official docs
|
Apr 11, 2017 at 23:28 | comment | added | Alex |
this.message = this.message; is this wrong or are there still crazy things I don't know about JS?
|
|
Mar 13, 2016 at 4:37 | history | answered | Victor Schröder | CC BY-SA 3.0 |