Skip to content

Commit

Permalink
test: update websocket wpt availability (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored and metcoder95 committed Nov 22, 2023
1 parent e579657 commit c29b9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c29b9c0

Please sign in to comment.