(var_args)
| 62 | * @param {...*} var_args |
| 63 | */ |
| 64 | export function rethrowAsync(var_args) { |
| 65 | const error = createError.apply(null, arguments); |
| 66 | setTimeout(() => { |
| 67 | // __AMP_REPORT_ERROR is installed globally per window in the entry point. |
| 68 | // It may not exist for Bento components without the runtime. |
| 69 | maybeReportError(error); |
| 70 | throw error; |
| 71 | }); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Executes the provided callback in a try/catch and rethrows any errors |
no test coverage detected