Skip to content

Commit

Permalink
fix: regex flags in dependency were breaking Node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 26, 2019
1 parent d0b2eaa commit a9d9645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/report.js
Expand Up @@ -6,7 +6,6 @@ const reports = require('istanbul-reports')
const { readdirSync, readFileSync } = require('fs')
const { isAbsolute, resolve } = require('path')
// TODO: switch back to @c88/v8-coverage once patch is landed.
const { mergeProcessCovs } = require('@bcoe/v8-coverage')
const v8toIstanbul = require('v8-to-istanbul')
const isCjsEsmBridgeCov = require('./is-cjs-esm-bridge')

Expand Down Expand Up @@ -138,6 +137,7 @@ class Report {
* @private
*/
_getMergedProcessCov () {
const { mergeProcessCovs } = require('@bcoe/v8-coverage')
const v8ProcessCovs = []
for (const v8ProcessCov of this._loadReports()) {
if (this._isCoverageObject(v8ProcessCov)) {
Expand Down

0 comments on commit a9d9645

Please sign in to comment.