In the statically typed code world I used to inhabit Call stacks were often used to diagnose the root cause of events. I wasn’t aware that JavaScript had a similar (albeit non ECMA5) way of performing error stack interrogation. It’s called Error.stack

It makes bugs -particularly those ones that are deep inside of anonymous functions - easier to research.

The IE blog has a rather good overview:

Comments (0)

Skip to main content