From: Jérôme Benoit Date: Sun, 28 Jan 2024 18:00:02 +0000 (+0100) Subject: refactor: do not regenerate error stack strace needlessly X-Git-Tag: v1.2.33~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5a6bab3beacdd3b357e7e624c37e4e414d493f6f;p=e-mobility-charging-stations-simulator.git refactor: do not regenerate error stack strace needlessly Signed-off-by: Jérôme Benoit --- diff --git a/src/exception/BaseError.ts b/src/exception/BaseError.ts index ce37fd98..4a94fc26 100644 --- a/src/exception/BaseError.ts +++ b/src/exception/BaseError.ts @@ -6,8 +6,5 @@ export class BaseError extends Error { this.name = new.target.name this.date = new Date() Object.setPrototypeOf(this, new.target.prototype) - if (typeof Error.captureStackTrace === 'function') { - Error.captureStackTrace(this, BaseError) - } } }