Skip to content

Commit 723ee61

Browse files
committed
test: fix isNodeVersionAtLeast
1 parent 45316a2 commit 723ee61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tap/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const isGecko = isBrowser && (await isEngine('Gecko'))
4747

4848
function isNodeVersionAtLeast(major: number, minor: number) {
4949
const parts = process.versions.node.split('.').map((i) => parseInt(i, 10))
50-
return parts[0] >= major || (parts[0] === major && parts[1] > minor)
50+
return parts[0] > major || (parts[0] === major && parts[1] >= minor)
5151
}
5252

5353
export function supported(identifier?: string, op?: string) {

0 commit comments

Comments
 (0)