summaryrefslogtreecommitdiff
path: root/lib/_stream_duplex.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/_stream_duplex.js
parent803883bb1a701da12c285fd735233eed7627eada (diff)
downloadnodejs-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.gz
nodejs-804e7aa9ab0b34fa88709ef0980b960abca5e059.tar.bz2
nodejs-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/_stream_duplex.js')
-rw-r--r--lib/_stream_duplex.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js
index a4fbd7257..159e1f2ac 100644
--- a/lib/_stream_duplex.js
+++ b/lib/_stream_duplex.js
@@ -6,9 +6,10 @@
'use strict';
module.exports = Duplex;
-var util = require('util');
-var Readable = require('_stream_readable');
-var Writable = require('_stream_writable');
+
+const util = require('util');
+const Readable = require('_stream_readable');
+const Writable = require('_stream_writable');
util.inherits(Duplex, Readable);