From b37bbf7426cfa3cbf7cbe1039800c3dc35733ba8 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 15 Nov 2023 17:14:43 +0100 Subject: [PATCH] test: update websocket wpt availability (#2437) --- test/wpt/start-websockets.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/wpt/start-websockets.mjs b/test/wpt/start-websockets.mjs index 616584d0f97..79aa297b265 100644 --- a/test/wpt/start-websockets.mjs +++ b/test/wpt/start-websockets.mjs @@ -11,10 +11,10 @@ function isGlobalAvailable () { return true } - const [nodeMajor] = process.versions.node.split('.').map(v => Number(v)) + const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v)) // TODO: keep this up to date when backports to earlier majors happen - return nodeMajor >= 21 + return nodeMajor >= 21 || (nodeMajor === 20 && nodeMinor >= 10) } if (process.env.CI) {