diff --git a/lib/internal/abort_controller.js b/lib/internal/abort_controller.js index 2514a8d0932aa2..5d114edf9ecb9e 100644 --- a/lib/internal/abort_controller.js +++ b/lib/internal/abort_controller.js @@ -276,9 +276,7 @@ class AbortSignal extends EventTarget { resultSignal[kSourceSignals].add(signalWeakRef); signal[kDependantSignals].add(resultSignalWeakRef); dependantSignalsCleanupRegistry.register(resultSignal, signalWeakRef); - // when the source signal - coming from the controller - is gced, we need to remove it from the dependant - // signals of the composite signal - finalizer.register(signal, { sourceSignalRef: signalWeakRef, composedSignalRef: resultSignalWeakRef}); + finalizer.register(signal, { sourceSignalRef: signalWeakRef, composedSignalRef: resultSignalWeakRef }); } else if (!signal[kSourceSignals]) { continue; } else {