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

Function restoreAsyncErrorThrows

testing/async-errors.js:38–40  ·  view source on GitHub ↗

* Resets async error behavior to its default.

()

Source from the content-addressed store, hash-verified

36 * Resets async error behavior to its default.
37 */
38function restoreAsyncErrorThrows() {
39 rethrowAsyncSandbox.restore();
40}
41
42/**
43 * Used to prevent asynchronous throwing of errors during each test.

Callers 2

test-error.jsFile · 0.85
cleanupTestcaseFunction · 0.85

Calls 1

restoreMethod · 0.80

Tested by

no test coverage detected