AndreasMadsen / trace

Creates super long stack traces
https://trace.js.org
MIT License
194 stars 18 forks source link

Small bugfixes & features #49

Closed cspotcode closed 5 years ago

cspotcode commented 5 years ago

Splitting #40 into multiple PRs for easier review.

AndreasMadsen commented 5 years ago

I don't know what this fixes. To me, it adds two unrelated features.

I'm okay with the "async boundary" line, it has been requested a few times, but it has to be implemented properly to ensure compatibility with other modules. See for example https://github.com/AndreasMadsen/stack-chain/issues/7

I'm closing this for now. If you feel like implementing https://github.com/AndreasMadsen/stack-chain/issues/7, then we can reopen this.

cspotcode commented 5 years ago

The two other changes are also from #40:

For the latter, it looks like this library intends to remove all "async_hooks.js" stack frames from traces. In node v11, there's an "internal/async_hooks.js", so if you want to filter out those frames, an additional equality check is required.

They're both tiny, so if anyone wants to get them merged, it should be easy to cherry-pick into separate PRs.