stacktracejs / stackframe

JS Object representation of a stack frame.
https://www.stacktracejs.com/#!/docs/stackframe
MIT License
79 stars 16 forks source link

Rewrite toString to match Node internals #23

Closed niftylettuce closed 5 years ago

niftylettuce commented 5 years ago

This closes #21 and #22, and rewrites the toString method to output a stack trace format that more closely resembles Node internals.

Ref: https://github.com/nodejs/node/blob/b6bfc193788b1838bee73d584fe089e1104b9f88/src/node_errors.cc#L142-L175

niftylettuce commented 5 years ago

The travis build failed due to an apt-get install failure of google-chrome (not related to this code).

niftylettuce commented 5 years ago

I've tested this on my end, all is fixed and ready for merge!