istanbul-lib-instrument
Advanced tools
Comparing version 1.1.0-alpha.1 to 1.1.0-alpha.2
@@ -217,3 +217,6 @@ 'use strict'; | ||
case "FunctionDeclaration": | ||
dloc = n.id.loc; | ||
/* istanbul ignore else: paranoid check */ | ||
if (n.id) { | ||
dloc = n.id.loc; | ||
} | ||
break; | ||
@@ -229,3 +232,3 @@ case "FunctionExpression": | ||
start: n.loc.start, | ||
end: n.loc.start | ||
end: { line: n.loc.start.line, column: n.loc.start.column + 1 } | ||
}; | ||
@@ -324,3 +327,3 @@ } | ||
var n = path.node; | ||
var b = this.cov.newBranch('default-arg', n); | ||
var b = this.cov.newBranch('default-arg', n.loc); | ||
this.insertBranchCounter(path.get('right'), b); | ||
@@ -327,0 +330,0 @@ } |
{ | ||
"name": "istanbul-lib-instrument", | ||
"version": "1.1.0-alpha.1", | ||
"version": "1.1.0-alpha.2", | ||
"description": "Core istanbul API for JS code coverage", | ||
@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37320
776
0