chore: extend raw stack (#22794)
This commit is contained in:
parent
2233b352b6
commit
b868f3a9d0
|
|
@ -47,7 +47,7 @@ export type RawStack = string[];
|
|||
|
||||
export function captureRawStack(): RawStack {
|
||||
const stackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 30;
|
||||
Error.stackTraceLimit = 50;
|
||||
const error = new Error();
|
||||
const stack = error.stack || '';
|
||||
Error.stackTraceLimit = stackTraceLimit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue