Comparing version 1.0.3 to 1.0.4
@@ -62,2 +62,3 @@ var falafel = require('falafel'); | ||
else if (/Expression$/.test(node.type) | ||
&& node.parent.type !== 'UnaryExpression' | ||
&& node.parent.type !== 'AssignmentExpression' | ||
@@ -84,3 +85,3 @@ && node.parent.type !== 'UpdateExpression' | ||
node.update('return __coverageWrap(' + index + ')(function () {' | ||
+ node.source() + '})();'); | ||
+ node.source() + '}).call(this);'); | ||
expected.push(node.range); | ||
@@ -87,0 +88,0 @@ } |
{ | ||
"name": "coverify", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "code coverage browserify transform", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
function notCalled() { | ||
return 42; | ||
return 42; | ||
} |
Sorry, the diff of this file is not supported yet
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
23204
18
449