Skip to content

Reproduction for sentry-javascript#19014#15

Open
Lms24 wants to merge 2 commits intomainfrom
repro/sentry-javascript-19014
Open

Reproduction for sentry-javascript#19014#15
Lms24 wants to merge 2 commits intomainfrom
repro/sentry-javascript-19014

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 28, 2026

Summary

Reproduction for getsentry/sentry-javascript#19014

This demonstrates the bug where AggregateError subclasses with custom name properties are not detected as exception groups.

The issue: The SDK checks error.name === "AggregateError" instead of error instanceof AggregateError, which causes custom AggregateError subclasses to lose the is_exception_group flag and the "Related Exceptions" UI in Sentry.

How to run

cd sentry-javascript/19014
npm install
npm start

Expected vs Actual

Error Type instanceof AggregateError is_exception_group
AggregateError true true
CustomAggregateError true undefined

Both should have is_exception_group: true since both are instances of AggregateError.

Lms24 added 2 commits January 28, 2026 12:54
Demonstrates bug where AggregateError subclasses with custom names
are not detected as exception groups because the SDK checks
error.name === "AggregateError" instead of error instanceof AggregateError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant