Skip to content

Commit b4751f4

Browse files
author
igor.luckenkov
committed
rename abort controller mock to DummyAbortController
1 parent 8f84774 commit b4751f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jsutils/AbortController.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ export interface IAbortController {
99
abort: (reason?: any) => void;
1010
}
1111

12+
// We need to polyfill abort controller in case of Node@14 which doesn't have it
1213
/* c8 ignore start */
1314
export const AbortController: new () => IAbortController =
1415
// eslint-disable-next-line no-undef
1516
global.AbortController ||
16-
class MockAbortController implements IAbortController {
17+
// This is a dummy implementation that doesn't actually abort anything
18+
class DummyAbortController implements IAbortController {
1719
private _signal: IAbortSignal = {
1820
aborted: false,
1921
addEventListener: () => null,

0 commit comments

Comments
 (0)