diff --git a/lib/compat/dispatcher-weakref.js b/lib/compat/dispatcher-weakref.js index a2fd0020416..463b29ca319 100644 --- a/lib/compat/dispatcher-weakref.js +++ b/lib/compat/dispatcher-weakref.js @@ -28,6 +28,8 @@ class CompatFinalizer { }) } } + + unregister (key) {} } module.exports = function () { diff --git a/lib/fetch/request.js b/lib/fetch/request.js index 85b8bb0df2f..376ce920dd8 100644 --- a/lib/fetch/request.js +++ b/lib/fetch/request.js @@ -371,6 +371,7 @@ class Request { const abort = function () { const ac = acRef.deref() if (ac !== undefined) { + requestFinalizer.unregister(ac) ac.abort(this.reason) } }