aboutsummaryrefslogtreecommitdiff
path: root/lib/_tls_legacy.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/_tls_legacy.js
parent803883bb1a701da12c285fd735233eed7627eada (diff)
downloadandroid-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_legacy.js')
-rw-r--r--lib/_tls_legacy.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js
index b52755f440..f5be838d05 100644
--- a/lib/_tls_legacy.js
+++ b/lib/_tls_legacy.js
@@ -1,13 +1,13 @@
'use strict';
-var assert = require('assert');
-var events = require('events');
-var stream = require('stream');
-var tls = require('tls');
-var util = require('util');
-var common = require('_tls_common');
-
-var Timer = process.binding('timer_wrap').Timer;
+const assert = require('assert');
+const events = require('events');
+const stream = require('stream');
+const tls = require('tls');
+const util = require('util');
+const common = require('_tls_common');
+const debug = util.debuglog('tls-legacy');
+const Timer = process.binding('timer_wrap').Timer;
var Connection = null;
try {
Connection = process.binding('crypto').Connection;
@@ -15,8 +15,6 @@ try {
throw new Error('node.js not compiled with openssl crypto support.');
}
-var debug = util.debuglog('tls-legacy');
-
function SlabBuffer() {
this.create();
}