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

Function install

src/polyfills/abort-controller.js:64–80  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

62 * @param {!Window} win
63 */
64export function install(win) {
65 if (win.AbortController) {
66 return;
67 }
68 Object.defineProperty(win, 'AbortController', {
69 configurable: true,
70 enumerable: false,
71 writable: true,
72 value: AbortController,
73 });
74 Object.defineProperty(win, 'AbortSignal', {
75 configurable: true,
76 enumerable: false,
77 writable: true,
78 value: AbortSignal,
79 });
80}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected