From a593323a225f35cced4742955f22a6ebd8f20bdb Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 8 Nov 2023 03:29:03 +0100 Subject: [PATCH] test: re-enable conditional WPT Report for websockets (#2407) --- test/wpt/start-websockets.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/wpt/start-websockets.mjs b/test/wpt/start-websockets.mjs index ee364ecf6c5..616584d0f97 100644 --- a/test/wpt/start-websockets.mjs +++ b/test/wpt/start-websockets.mjs @@ -11,7 +11,10 @@ function isGlobalAvailable () { return true } - return process.execArgv.includes('--experimental-websocket') + const [nodeMajor] = process.versions.node.split('.').map(v => Number(v)) + + // TODO: keep this up to date when backports to earlier majors happen + return nodeMajor >= 21 } if (process.env.CI) {