11 lines
200 B
TypeScript
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();
|