From f57cd8e4d30e6099d14f316491f1e8de496c9c6c Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 15 Nov 2023 08:31:37 +0100 Subject: [PATCH] test: update websocket wpt availability --- 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) {