Skip to content

Commit

Permalink
* Fix null error when no feature map is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed May 13, 2014
1 parent 20c0e2f commit ca3b8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hascan.js
Expand Up @@ -248,7 +248,7 @@ exports.getHasFilter = function(featureMap) {
if (node.TYPE == 'Call') {
var feature = findSimpleFunctionCall(node, 'has');
if (feature) {
return featureMap[feature] ? 'pass' : 'fail';
return featureMap && featureMap[feature] ? 'pass' : 'fail';
}
}
});
Expand Down

0 comments on commit ca3b8bd

Please sign in to comment.