@pipobscure/stack-trace
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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;
}

Readme

Keywords

Package Sidebar

Install

npm i @pipobscure/stack-trace

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

7.75 kB

Total Files

6

Last publish

Collaborators

  • pipobscure