diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-24 18:03:53 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-24 21:49:35 +0200 |
commit | 0330bdf5195eb77f04c26a09a8bd2088a261fe53 (patch) | |
tree | 2c13f9f1757bca93e83e425a028dcae78549f40e /lib/console.js | |
parent | 457d52924152c6f2baf2fddbe76a03bca7bdde7c (diff) | |
download | android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.gz android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.bz2 android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.zip |
lib: macro-ify type checks
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
Diffstat (limited to 'lib/console.js')
-rw-r--r-- | lib/console.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.js b/lib/console.js index 66578b68ff..fd7722f0dc 100644 --- a/lib/console.js +++ b/lib/console.js @@ -25,7 +25,7 @@ function Console(stdout, stderr) { if (!(this instanceof Console)) { return new Console(stdout, stderr); } - if (!stdout || typeof stdout.write !== 'function') { + if (!stdout || !IS_FUNCTION(stdout.write)) { throw new TypeError('Console expects a writable stream instance'); } if (!stderr) { |