From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/istanbul-lib-instrument/dist/read-coverage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_modules/istanbul-lib-instrument/dist/read-coverage.js') diff --git a/node_modules/istanbul-lib-instrument/dist/read-coverage.js b/node_modules/istanbul-lib-instrument/dist/read-coverage.js index 73e74291a..e2460c43c 100644 --- a/node_modules/istanbul-lib-instrument/dist/read-coverage.js +++ b/node_modules/istanbul-lib-instrument/dist/read-coverage.js @@ -45,7 +45,7 @@ function readInitialCoverage(code) { if (!magicValue.confident || magicValue.value !== _constants.MAGIC_VALUE) { return; } - covScope = path.scope.getFunctionParent(); + covScope = path.scope.getFunctionParent() || path.scope.getProgramParent(); path.stop(); } } -- cgit v1.2.3