Skip to content

Commit

Permalink
fix: regex for detecting Node < 10.16 was off
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 24, 2019
1 parent e507d80 commit 4ca7220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v8-to-istanbul.js
Expand Up @@ -8,7 +8,7 @@ const CovSource = require('./source')
const { readFileSync } = require('fs')
const { SourceMapConsumer } = require('source-map')

const isOlderNode10 = /^v10\.[0-5]/u.test(process.version)
const isOlderNode10 = /^v10\.(([0-9]\.)|(1[0-5]\.))/u.test(process.version)

// Injected when Node.js is loading script into isolate pre Node 10.16.x.
// see: https://github.com/nodejs/node/pull/21573.
Expand Down

0 comments on commit 4ca7220

Please sign in to comment.