aboutsummaryrefslogtreecommitdiff
path: root/node_modules/kind-of/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/kind-of/index.js')
-rw-r--r--node_modules/kind-of/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/kind-of/index.js b/node_modules/kind-of/index.js
index 87938c9a2..85083862e 100644
--- a/node_modules/kind-of/index.js
+++ b/node_modules/kind-of/index.js
@@ -56,6 +56,9 @@ module.exports = function kindOf(val) {
if (type === '[object Arguments]') {
return 'arguments';
}
+ if (type === '[object Error]') {
+ return 'error';
+ }
// buffer
if (typeof Buffer !== 'undefined' && isBuffer(val)) {