aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/dispatcher/pool.js
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-12 16:20:31 +0200
committerEgor Tensin <egor@tensin.name>2026-05-12 16:20:31 +0200
commit3974efd722fa10f283df76342125776a352072dd (patch)
tree21b5240dc856fe452da37f21313a7e1c7801c17f /node_modules/undici/lib/dispatcher/pool.js
parentworkflows/test: reschedule for my convenience (diff)
downloadcleanup-path-5.0.2.tar.gz
cleanup-path-5.0.2.zip
bump dependenciesv5.0.2
Diffstat (limited to 'node_modules/undici/lib/dispatcher/pool.js')
-rw-r--r--node_modules/undici/lib/dispatcher/pool.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/undici/lib/dispatcher/pool.js b/node_modules/undici/lib/dispatcher/pool.js
index 0b8a2da..9eaf3fd 100644
--- a/node_modules/undici/lib/dispatcher/pool.js
+++ b/node_modules/undici/lib/dispatcher/pool.js
@@ -37,8 +37,6 @@ class Pool extends PoolBase {
allowH2,
...options
} = {}) {
- super()
-
if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
throw new InvalidArgumentError('invalid connections')
}
@@ -63,6 +61,8 @@ class Pool extends PoolBase {
})
}
+ super(options)
+
this[kInterceptors] = options.interceptors?.Pool && Array.isArray(options.interceptors.Pool)
? options.interceptors.Pool
: []