diff --git a/test/common/index.js b/test/common/index.js index 58f35f37abf30a..35122e607ed991 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -253,7 +253,6 @@ function platformTimeout(ms) { } let knownGlobals = [ - AbortController, clearImmediate, clearInterval, clearTimeout, @@ -264,6 +263,15 @@ let knownGlobals = [ queueMicrotask, ]; +// TODO(@jasnell): This check can be temporary. AbortController is +// not currently supported in either Node.js 12 or 10, making it +// difficult to run tests comparitively on those versions. Once +// all supported versions have AbortController as a global, this +// check can be removed and AbortController can be added to the +// knownGlobals list above. +if (global.AbortController) + knownGlobals.push(global.AbortController); + if (global.gc) { knownGlobals.push(global.gc); }