Skip to content

Commit

Permalink
fix: default value for ignorelassMethods (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher authored and bcoe committed Mar 9, 2018
1 parent 4207dc6 commit 5dd88e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/istanbul-lib-instrument/src/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function genVar(filename) {
// VisitState holds the state of the visitor, provides helper functions
// and is the `this` for the individual coverage visitors.
class VisitState {
constructor(types, sourceFilePath, inputSourceMap, ignoreClassMethods) {
constructor(types, sourceFilePath, inputSourceMap, ignoreClassMethods = []) {
this.varName = genVar(sourceFilePath);
this.attrs = {};
this.nextIgnore = null;
Expand Down

0 comments on commit 5dd88e8

Please sign in to comment.