From eb730961e7550c12866d16c4c0bd70c582390dc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 14 Oct 2026 23:52:28 +0200 Subject: [PATCH] test: use portable cluster stdio on Windows --- tests/pools/prototype-pollution.test.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/pools/prototype-pollution.test.mjs b/tests/pools/prototype-pollution.test.mjs index b851caccb..e1200ea8f 100644 --- a/tests/pools/prototype-pollution.test.mjs +++ b/tests/pools/prototype-pollution.test.mjs @@ -314,6 +314,11 @@ describe('Worker option prototype pollution', () => { ) ) clearPrototypePollution() + if (process.platform === 'win32') { + // Node.js cannot pass a connected TCP socket as child process stdio on + // Windows. The socket is only needed to exercise native handle checks. + cluster.setupPrimary({ stdio: ['ignore', 'ignore', 'ignore', 'ipc'] }) + } polluteObjectPrototype('handle', 'polluted') pool.start() clearPrototypePollution() -- 2.53.0