(win, error, opt_associatedElement)
| 129 | * @param {!Element=} opt_associatedElement |
| 130 | */ |
| 131 | export function reportErrorForWin(win, error, opt_associatedElement) { |
| 132 | reportError(error, opt_associatedElement); |
| 133 | if ( |
| 134 | error && |
| 135 | !!win && |
| 136 | isUserErrorMessage(error.message) && |
| 137 | !isUserErrorEmbedMessage(error.message) |
| 138 | ) { |
| 139 | reportErrorToAnalytics(/** @type {!Error} */ (error), win); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Reports an error. If the error has an "associatedElement" property |
nothing calls this directly
no test coverage detected