MCPcopy
hub / github.com/ampproject/amphtml / rethrowAsync

Function rethrowAsync

src/core/error/index.js:64–72  ·  view source on GitHub ↗
(var_args)

Source from the content-addressed store, hash-verified

62 * @param {...*} var_args
63 */
64export 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

Callers 15

validateAllowedFieldsFunction · 0.90
test-error.jsFile · 0.90
tryUpgrade_Method · 0.90
executionAction_Method · 0.90
makeBodyVisibleFunction · 0.90
upgradeSelf_Method · 0.90
connectedCallback_Method · 0.90
disconnectedCallback_Method · 0.90
callCallbackNoInlineFunction · 0.90
deserializeMessageFunction · 0.90
checkUpdates_Method · 0.90

Calls 2

maybeReportErrorFunction · 0.85
applyMethod · 0.80

Tested by

no test coverage detected