MCPcopy Index your code
hub / github.com/ampproject/amphtml / preventAsyncErrorThrows

Function preventAsyncErrorThrows

testing/async-errors.js:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * Used to prevent asynchronous throwing of errors during each test.
44 */
45export function preventAsyncErrorThrows() {
46 self.stubAsyncErrorThrows = stubAsyncErrorThrows;
47 self.restoreAsyncErrorThrows = restoreAsyncErrorThrows;
48 setReportError(reportError);
49 stubAsyncErrorThrows();
50}

Callers 1

setupTestcaseFunction · 0.90

Calls 2

setReportErrorFunction · 0.90
stubAsyncErrorThrowsFunction · 0.85

Tested by

no test coverage detected