diff --git a/.eslintrc.js b/.eslintrc.js index 8464945125b678..06711298a7f0b2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -283,6 +283,7 @@ module.exports = { }, globals: { AbortController: 'readable', + AbortSignal: 'readable', Atomics: 'readable', BigInt: 'readable', BigInt64Array: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index e92dd5fc47d732..a4d591a44fe9d8 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -65,6 +65,15 @@ added: REPLACEME The `AbortSignal` is used to notify observers when the `abortController.abort()` method is called. +#### Static method: `AbortSignal.abort()` + + +* Returns: {AbortSignal} + +Returns a new already aborted `AbortSignal`. + #### Event: `'abort'`