From 5a5251bc2cf29167d240ca4ae30d4b1a3a943d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Sun, 5 Feb 2023 18:20:54 +0100 Subject: [PATCH] Fixed incorrect coverage for Vue files --- packages/istanbul-lib-instrument/src/visitor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/istanbul-lib-instrument/src/visitor.js b/packages/istanbul-lib-instrument/src/visitor.js index 04e3115f..e313886d 100644 --- a/packages/istanbul-lib-instrument/src/visitor.js +++ b/packages/istanbul-lib-instrument/src/visitor.js @@ -787,6 +787,7 @@ function programVisitor(types, sourceFilePath = 'unknown.js', opts = {}) { coverageData.hash = hash; if ( coverageData.inputSourceMap && + typeof coverageData.inputSourceMap !== 'string' && Object.getPrototypeOf(coverageData.inputSourceMap) !== Object.prototype ) {