diff options
| author | isaacs <i@izs.me> | 2013-07-26 14:38:08 -0700 |
|---|---|---|
| committer | isaacs <i@izs.me> | 2013-08-01 15:08:01 -0700 |
| commit | 22c68fdc1dae40f0ed9c71a02f66e5b2c6353691 (patch) | |
| tree | b6d14cad6f5a9ba78172f77c5c2ec10b8a6cb89c /lib/https.js | |
| parent | 9a29aa8c552eb2b120c101c1cfd66ba565a17ed5 (diff) | |
| download | node-new-22c68fdc1dae40f0ed9c71a02f66e5b2c6353691.tar.gz | |
src: Replace macros with util functions
Diffstat (limited to 'lib/https.js')
| -rw-r--r-- | lib/https.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/https.js b/lib/https.js index 4ffc1e6a37..a00b8bd6fe 100644 --- a/lib/https.js +++ b/lib/https.js @@ -60,21 +60,21 @@ exports.createServer = function(opts, requestListener) { // HTTPS agents. function createConnection(port, host, options) { - if (IS_OBJECT(port)) { + if (util.isObject(port)) { options = port; - } else if (IS_OBJECT(host)) { + } else if (util.isObject(host)) { options = host; - } else if (IS_OBJECT(options)) { + } else if (util.isObject(options)) { options = options; } else { options = {}; } - if (IS_NUMBER(port)) { + if (util.isNumber(port)) { options.port = port; } - if (IS_STRING(host)) { + if (util.isString(host)) { options.host = host; } @@ -115,7 +115,7 @@ Agent.prototype.getName = function(options) { name += options.pfx; name += ':'; - if (!IS_UNDEFINED(options.rejectUnauthorized)) + if (!util.isUndefined(options.rejectUnauthorized)) name += options.rejectUnauthorized; return name; |
