Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    this.message = this.message; is this wrong or are there still crazy things I don't know about JS?
    – Alex
    Commented Apr 11, 2017 at 23:28
  • 1
    Hey @Alex, you are totally right! It's fixed now. Thanks! Commented Apr 12, 2017 at 9:38
  • 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/… Commented Sep 13, 2022 at 20:08
  • 1
    Yes, @nicoramirezdev, but this answer dates back to 2016. I'll add a warning at the beginning, but keep the content for historical reasons. Commented Sep 13, 2022 at 20:21