Permalink
Browse files

Check for existence of this.options._ before checking length

  • Loading branch information...
kapman committed Feb 7, 2018
1 parent cd38700 commit 685880f0180b81abc0bd1ce5ee177b2d8d5f3eba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/mocha/mocha.js
@@ -87,7 +87,7 @@ Mocha.prototype.start = function (callback) {
}
let _specs = [];
if (this.options._.length > 2) {
if (this.options._ && this.options._.length > 2) {
_specs = this.options._.slice(2);
}

0 comments on commit 685880f

Please sign in to comment.