error_reporting/web_error_handlers_web library

Functions

installEarlyWebErrorHandlers() → void
Installs the apply-once window JS-error listeners. The consumer main() calls this at boot-step-3 (only under Path A′). Idempotent: a second call is a no-op.
simulateWebError(Object error, StackTrace? stack) → void
Test-only seam (ERH-009): synthesizes the chokepoint routing a real web-JS handler performs, BYPASSING window, so VM unit tests can cover the routing without a browser. (Note: because it bypasses window, it cannot catch a defect in the real windowWebJsError serialization — that needs an E2E smoke, per the Testing strategy.)