diff options
author | Gibson Fahnestock <gibfahn@gmail.com> | 2017-03-09 18:11:21 +0000 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-04-18 20:01:49 -0400 |
commit | db61c952de2aa4591c60f4772fa62f0bc3474577 (patch) | |
tree | 9e585bb427b689eeb8ec431f6e8515595c7e6e5d /test/parallel/test-stream-wrap.js | |
parent | de636980668017c2ed155ba6f75ac5e6a2af647b (diff) | |
download | node-new-db61c952de2aa4591c60f4772fa62f0bc3474577.tar.gz |
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically.
Backport-PR-URL: https://github.com/nodejs/node/pull/11775
PR-URL: https://github.com/nodejs/node/pull/10685
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-stream-wrap.js')
-rw-r--r-- | test/parallel/test-stream-wrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-stream-wrap.js b/test/parallel/test-stream-wrap.js index 69e4dee89d..dbcb58a98c 100644 --- a/test/parallel/test-stream-wrap.js +++ b/test/parallel/test-stream-wrap.js @@ -7,16 +7,16 @@ const Duplex = require('stream').Duplex; const ShutdownWrap = process.binding('stream_wrap').ShutdownWrap; function testShutdown(callback) { - var stream = new Duplex({ + const stream = new Duplex({ read: function() { }, write: function() { } }); - var wrap = new StreamWrap(stream); + const wrap = new StreamWrap(stream); - var req = new ShutdownWrap(); + const req = new ShutdownWrap(); req.oncomplete = function(code) { assert(code < 0); callback(); |