import { config } from "../config.mjs";
import { timeoutProvider } from "../scheduler/timeoutProvider.mjs";

//#region ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
function reportUnhandledError(err) {
	timeoutProvider.setTimeout(function() {
		var onUnhandledError = config.onUnhandledError;
		if (onUnhandledError) onUnhandledError(err);
		else throw err;
	});
}

//#endregion
export { reportUnhandledError };
//# sourceMappingURL=reportUnhandledError.mjs.map