cordis/stack-trace/example.ts

11 lines
200 B
TypeScript
Raw Normal View History

2021-11-02 04:29:24 +00:00
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();