diff options
Diffstat (limited to 'packages/sol-tracing-utils/src/collect_coverage_entries.ts')
-rw-r--r-- | packages/sol-tracing-utils/src/collect_coverage_entries.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-tracing-utils/src/collect_coverage_entries.ts b/packages/sol-tracing-utils/src/collect_coverage_entries.ts index b32be12dd..9ac52343c 100644 --- a/packages/sol-tracing-utils/src/collect_coverage_entries.ts +++ b/packages/sol-tracing-utils/src/collect_coverage_entries.ts @@ -13,7 +13,7 @@ export const collectCoverageEntries = (contractSource: string, ignoreRegexp?: Re if (_.isUndefined(sourceHashToCoverageEntries[sourceHash]) && !_.isUndefined(contractSource)) { const ast = parser.parse(contractSource, { range: true }); const offsetToLocation = getOffsetToLocation(contractSource); - const ignoreRangesBegingingAt = _.isUndefined(ignoreRegexp) + const ignoreRangesBeginningAt = _.isUndefined(ignoreRegexp) ? [] : gatherRangesToIgnore(contractSource, ignoreRegexp); const visitor = new ASTVisitor(offsetToLocation, ignoreRangesBegingingAt); |