Skip to content

Commit c0dbb4b

Browse files
committed
fixup! lib: use kResistStopPropagation
1 parent fc1e0ad commit c0dbb4b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/internal/streams/pipeline.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function pipelineImpl(streams, callback, opts) {
207207
finishImpl(new AbortError());
208208
}
209209

210+
kResistStopPropagation ??= require('internal/event_target').kResistStopPropagation;
210211
outerSignal?.addEventListener('abort', abort, { __proto__: null, [kResistStopPropagation]: true });
211212

212213
let error;

lib/internal/watch_mode/files_watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class FilesWatcher extends EventEmitter {
4545
if (signal) {
4646
kResistStopPropagation ??= require('internal/event_target').kResistStopPropagation;
4747
const opts = { __proto__: null, once: true, [kResistStopPropagation]: true };
48-
signal?.addEventListener('abort', () => this.clear(), opts);
48+
signal.addEventListener('abort', () => this.clear(), opts);
4949
}
5050
}
5151

0 commit comments

Comments
 (0)