aboutsummaryrefslogtreecommitdiff
path: root/node_modules/debug/src/debug.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/debug/src/debug.js')
-rw-r--r--node_modules/debug/src/debug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/debug/src/debug.js b/node_modules/debug/src/debug.js
index d5d6d1670..6a5e3fc94 100644
--- a/node_modules/debug/src/debug.js
+++ b/node_modules/debug/src/debug.js
@@ -141,7 +141,7 @@ function enable(namespaces) {
exports.names = [];
exports.skips = [];
- var split = (namespaces || '').split(/[\s,]+/);
+ var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
var len = split.length;
for (var i = 0; i < len; i++) {