Defend against Errors with missing or bogus stacks. Error instances or subclasses with missing or non-string stacks would crash async trace reconstruction because of a blind call to stack.replace.
Also, refactored npm scripts a bit to make it easier to run just unit tests (npm run test:unit) for faster iteration while developing.
Defend against Errors with missing or bogus stacks. Error instances or subclasses with missing or non-string stacks would crash async trace reconstruction because of a blind call to
stack.replace
.Also, refactored npm scripts a bit to make it easier to run just unit tests (
npm run test:unit
) for faster iteration while developing.