From 19f929761ba37b0c40c9953e272cd7bba4979737 Mon Sep 17 00:00:00 2001 From: Fabio B Date: Tue, 22 Jan 2019 15:10:05 +0100 Subject: Update packages/sol-tracing-utils/src/collect_coverage_entries.ts Co-Authored-By: LogvinovLeon --- packages/sol-tracing-utils/src/collect_coverage_entries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') 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); -- cgit v1.2.3