summaryrefslogtreecommitdiff
path: root/lib/https.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2015-01-21 11:36:59 -0500
committercjihrig <cjihrig@gmail.com>2015-01-21 16:21:31 -0500
commit804e7aa9ab0b34fa88709ef0980b960abca5e059 (patch)
tree4e09207abd54e30bd62459e43e2f9219619a7256 /lib/https.js
parent803883bb1a701da12c285fd735233eed7627eada (diff)
downloadnode-new-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.gz
lib: use const to define constants
This commit replaces a number of var statements throughout the lib code with const statements. PR-URL: https://github.com/iojs/io.js/pull/541 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib/https.js')
-rw-r--r--lib/https.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/https.js b/lib/https.js
index 0773255b44..acbbe0b6c2 100644
--- a/lib/https.js
+++ b/lib/https.js
@@ -1,11 +1,11 @@
'use strict';
-var tls = require('tls');
-var url = require('url');
-var http = require('http');
-var util = require('util');
-var inherits = require('util').inherits;
-var debug = util.debuglog('https');
+const tls = require('tls');
+const url = require('url');
+const http = require('http');
+const util = require('util');
+const inherits = require('util').inherits;
+const debug = util.debuglog('https');
function Server(opts, requestListener) {
if (!(this instanceof Server)) return new Server(opts, requestListener);
@@ -102,7 +102,7 @@ Agent.prototype.getName = function(options) {
return name;
};
-var globalAgent = new Agent();
+const globalAgent = new Agent();
exports.globalAgent = globalAgent;
exports.Agent = Agent;