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.
Object.setPrototypeOf
1 parent 2217bcc commit 89f4ecbCopy full SHA for 89f4ecb
packages/utils/src/error.ts
@@ -1,5 +1,3 @@
1
-import { setPrototypeOf } from './polyfill';
2
-
3
/** An error emitted by Sentry SDKs and related utilities. */
4
export class SentryError extends Error {
5
/** Display name of this error instance. */
@@ -9,6 +7,6 @@ export class SentryError extends Error {
9
7
super(message);
10
8
11
this.name = new.target.prototype.constructor.name;
12
- setPrototypeOf(this, new.target.prototype);
+ Object.setPrototypeOf(this, new.target.prototype);
13
}
14
packages/utils/src/polyfill.ts
0 commit comments