Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't call runSuite on just anything, only objects

Check that we're calling runSuite on an object when prop is not a function
  • Loading branch information...
commit b550dc79669cd467534bce693b896d5071817355 1 parent 95b0e8b
@Floby authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/core.js
View
2  lib/core.js
@@ -120,7 +120,7 @@ exports.runSuite = function (name, suite, opt, callback) {
return cb();
}
}
- else {
+ else if(typeof prop == 'object') {
exports.runSuite(_name, suite[k], opt, cb);
}
}, callback);
Please sign in to comment.
Something went wrong with that request. Please try again.