fix: Disable some error tracking (#4579)

* fix: remove error tracking for Circular reference in deepCopy

* fix: remove error tracking on crash detection
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-11-10 21:44:31 +01:00
committed by GitHub
parent 2ce747fa01
commit b2201d0c77
2 changed files with 1 additions and 7 deletions

View File

@@ -1,5 +1,3 @@
import * as ErrorReporter from './ErrorReporterProxy';
export type Primitives = string | number | boolean | bigint | symbol | null | undefined;
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-argument */
@@ -19,9 +17,6 @@ export const deepCopy = <T extends ((object | Date) & { toJSON?: () => string })
return source.toJSON() as T;
}
if (hash.has(source)) {
ErrorReporter.warn('Circular reference detected', {
extra: { source, path },
});
return hash.get(source);
}
// Array