Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix indexOf. Closes #680

TJ Holowaychukf427a137cc4d
diff --git a/lib/runner.js b/lib/runner.js
index d79809bb..03a11a1d 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -119,7 +119,7 @@ Runner.prototype.globalProps = function() {
// non-enumerables
for (var i = 0; i < globals.length; ++i) {
- if (~props.indexOf(globals[i])) continue;
+ if (~utils.indexOf(props, globals[i])) continue;
props.push(globals[i]);
}