Skip to content

Commit a9d9645

Browse files
author
Benjamin E. Coe
authored
fix: regex flags in dependency were breaking Node 8
1 parent d0b2eaa commit a9d9645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const reports = require('istanbul-reports')
66
const { readdirSync, readFileSync } = require('fs')
77
const { isAbsolute, resolve } = require('path')
88
// TODO: switch back to @c88/v8-coverage once patch is landed.
9-
const { mergeProcessCovs } = require('@bcoe/v8-coverage')
109
const v8toIstanbul = require('v8-to-istanbul')
1110
const isCjsEsmBridgeCov = require('./is-cjs-esm-bridge')
1211

@@ -138,6 +137,7 @@ class Report {
138137
* @private
139138
*/
140139
_getMergedProcessCov () {
140+
const { mergeProcessCovs } = require('@bcoe/v8-coverage')
141141
const v8ProcessCovs = []
142142
for (const v8ProcessCov of this._loadReports()) {
143143
if (this._isCoverageObject(v8ProcessCov)) {

0 commit comments

Comments
 (0)