import * as StackTrace from './stack-trace'; function abc() { let err = new Error() let callStack = StackTrace.parse(err); console.log('callStack:', callStack); console.log(err.stack); } abc();