We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SentryError
1 parent 7a4e866 commit c56310aCopy full SHA for c56310a
packages/utils/src/error.ts
@@ -11,6 +11,9 @@ export class SentryError extends Error {
11
super(message);
12
13
this.name = new.target.prototype.constructor.name;
14
+ // This sets the prototype to be `Error`, not `SentryError`. It's unclear why we do this, but commenting this line
15
+ // out causes various (seemingly totally unrelated) playwright tests consistently time out. FYI, this makes
16
+ // instances of `SentryError` fail `obj instanceof SentryError` checks.
17
Object.setPrototypeOf(this, new.target.prototype);
18
this.logLevel = logLevel;
19
}
0 commit comments