Skip to content

Commit

Permalink
test: re-enable conditional WPT Report for websockets (#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 8, 2023
1 parent 0f319a0 commit a593323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a593323

Please sign in to comment.