Skip to content

Commit 7812b97

Browse files
authored
fix: Error in some contexts when using Error.captureStackTrace() (#587)
This only exists in v8 contexts and was throwing in Firefox. It's [not needed](https://stackoverflow.com/a/64063868) when extending the Error class.
1 parent 7096001 commit 7812b97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib/seam/SeamProvider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,5 @@ class InvalidSeamProviderProps extends Error {
273273
constructor(message: string) {
274274
super(`SeamProvider received invalid props: ${message}`)
275275
this.name = this.constructor.name
276-
Error.captureStackTrace(this, this.constructor)
277276
}
278277
}

0 commit comments

Comments
 (0)