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.

3
  • Did I get it right - that if you do not subclass and use new Error(...) directly, then the file name and line is being reported properly? And you basically say that on practice (real and not just of sexy or decorative kinda) subclassing Errors, has no sense?
    – jayarjo
    Commented Jul 9, 2011 at 10:18
  • 7
    This answer is some what confusing as Crescent Fresh's has been deleted!
    – Peter
    Commented Jun 19, 2018 at 11:42
  • is this still the case? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… Line number is 2 not where new was called Commented Jun 23, 2019 at 15:07