summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Ashworth <brendan.ashworth@me.com>2015-06-15 22:01:33 -0700
committerBrendan Ashworth <brendan.ashworth@me.com>2015-06-16 16:08:15 -0700
commit626432d843aaf3abc60b2db2b265b95023fd5938 (patch)
tree6a1ab94fde425dc178fb3c392c7ab457e3308e6a
parentd5637e67c9d01763c2cb4c202413b4d5890e0486 (diff)
downloadnodejs-626432d843aaf3abc60b2db2b265b95023fd5938.tar.gz
nodejs-626432d843aaf3abc60b2db2b265b95023fd5938.tar.bz2
nodejs-626432d843aaf3abc60b2db2b265b95023fd5938.zip
util: dont repeat isBuffer
PR-URL: https://github.com/nodejs/io.js/pull/1988 Reviewed-By: Roman Reiss <me@silverwind.io>
-rw-r--r--lib/util.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/util.js b/lib/util.js
index afddf439c..50f1e1b53 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -640,10 +640,7 @@ function isPrimitive(arg) {
}
exports.isPrimitive = isPrimitive;
-function isBuffer(arg) {
- return arg instanceof Buffer;
-}
-exports.isBuffer = isBuffer;
+exports.isBuffer = Buffer.isBuffer;
function objectToString(o) {
return Object.prototype.toString.call(o);