Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix Object.keys for Firefox

Yanis Wang3b04ae43d0b6
diff --git a/lib/utils.js b/lib/utils.js
index 5142e06c..4e1a4e51 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -107,7 +107,7 @@ exports.filter = function(arr, fn){
* @api private
*/
-exports.keys = Object.keys || function(obj) {
+exports.keys = function(obj) {
var keys = []
, has = Object.prototype.hasOwnProperty // for `window` on <=IE8