56228115f87be37b438f00833d542f9ff2566aebb0cc81cfe9f1f48dec91e7726718996265b6aae915bbfc8572427733c8626a53e676ce71913281acafa6ad 411 B

1234567891011121314
  1. import { config } from '../config';
  2. import { timeoutProvider } from '../scheduler/timeoutProvider';
  3. export function reportUnhandledError(err) {
  4. timeoutProvider.setTimeout(() => {
  5. const { onUnhandledError } = config;
  6. if (onUnhandledError) {
  7. onUnhandledError(err);
  8. }
  9. else {
  10. throw err;
  11. }
  12. });
  13. }
  14. //# sourceMappingURL=reportUnhandledError.js.map