diff options
author | cjihrig <cjihrig@gmail.com> | 2015-01-21 11:36:59 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2015-01-21 16:21:31 -0500 |
commit | 804e7aa9ab0b34fa88709ef0980b960abca5e059 (patch) | |
tree | 4e09207abd54e30bd62459e43e2f9219619a7256 /lib/tls.js | |
parent | 803883bb1a701da12c285fd735233eed7627eada (diff) | |
download | android-node-v8-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.gz android-node-v8-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.bz2 android-node-v8-804e7aa9ab0b34fa88709ef0980b960abca5e059.zip |
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/tls.js')
-rw-r--r-- | lib/tls.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tls.js b/lib/tls.js index cf5370e773..d52adbabc8 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -1,8 +1,8 @@ 'use strict'; -var net = require('net'); -var url = require('url'); -var util = require('util'); +const net = require('net'); +const url = require('url'); +const util = require('util'); // Allow {CLIENT_RENEG_LIMIT} client-initiated session renegotiations // every {CLIENT_RENEG_WINDOW} seconds. An error event is emitted if more @@ -22,7 +22,7 @@ exports.DEFAULT_CIPHERS = exports.DEFAULT_ECDH_CURVE = 'prime256v1'; exports.getCiphers = function() { - var names = process.binding('crypto').getSSLCiphers(); + const names = process.binding('crypto').getSSLCiphers(); // Drop all-caps names in favor of their lowercase aliases, var ctx = {}; names.forEach(function(name) { |