From 7a7abe554a94b5ab3d1d50046a5a2d02e860ee63 Mon Sep 17 00:00:00 2001 From: Alin Galatan Date: Thu, 17 Mar 2022 18:19:17 -0700 Subject: [PATCH] fix the abort controller check PR-URL: https://github.com/isaacs/node-lru-cache/pull/217 Credit: @agalatan Close: #217 Reviewed-by: @bytemain --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2d3c5656..978b8f4e 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const perf = typeof performance === 'object' && performance && typeof performance.now === 'function' ? performance : Date -const hasAbortController = typeof AbortController !== undefined +const hasAbortController = typeof AbortController !== 'undefined' /* istanbul ignore next - minimal backwards compatibility polyfill */ const AC = hasAbortController ? AbortController : Object.assign(