Extracted from PostHog/posthog#43012.
Problem
The error listener attaches only to the isolate that runs install() (the main one), so uncaught errors in user-spawned background isolates aren't captured. The config docstring also overclaims coverage of "any isolates spawned."
Scope
- Capture uncaught errors from background isolates.
- Fix the docstring to match actual behavior in the same change.
Extracted from PostHog/posthog#43012.
Problem
The error listener attaches only to the isolate that runs
install()(the main one), so uncaught errors in user-spawned background isolates aren't captured. The config docstring also overclaims coverage of "any isolates spawned."Scope