See https://v8.dev/docs/stack-trace-api#stack-trace-collection-for-custom-exceptions.
(error: Object, constructor?: Function)
| 14888 | interface ErrorConstructor { |
| 14889 | /** See https://v8.dev/docs/stack-trace-api#stack-trace-collection-for-custom-exceptions. */ |
| 14890 | captureStackTrace(error: Object, constructor?: Function): void; |
| 14891 | stackTraceLimit: number; |
| 14892 | // TODO(nayeemrmn): Support `Error.prepareStackTrace()`. We currently use this |
| 14893 | // internally in a way that makes it unavailable for users. |