cordis/stack-trace/example.ts
2021-11-01 23:29:24 -05:00

11 lines
200 B
TypeScript

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();