MCPcopy Create free account
hub / github.com/ampproject/amphtml / createCancelError

Function createCancelError

third_party/subscriptions-project/swg.js:3821–3823  ·  view source on GitHub ↗

* Creates or emulates a DOMException of AbortError type. * See https://heycam.github.io/webidl/#aborterror. * @param {!Window} win * @param {string=} message * @return {!DOMException}

(win, message)

Source from the content-addressed store, hash-verified

3819 * @return {!DOMException}
3820 */
3821function createCancelError(win, message) {
3822 return createAbortError(win, message);
3823}
3824
3825/**
3826 * A set of error utilities combined in a class to allow easy stubbing in tests.

Callers 2

convertResponse_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected