@pipobscure/stack-trace
v1.0.2
Published
Extract and augment errors with detailed stack-traces
Downloads
4
Readme
@bbtest/stack-trace
This enhances the Error
object by adding a static setter/getter enableTrace
to it. This will cause the override of Error.prepareStackTrace
to a function that adds a Error.prototype.trace
getter that get's aStackTraceItem[]
:
export interface StackTraceItem {
this?: unknown;
typeName: string | null;
function?: function;
functionName?: string;
methodName?: string;
fileName: string;
lineNumber: number;
columnNumber: number;
evalOrigin?: string;
toplevel: boolean;
eval: boolean;
native: boolean;
constructor: site.isConstructor?.();
async: boolean;
promiseAll: boolean;
promiseIndex: number | null;
}