Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
  • Loading branch information
indutny committed Dec 7, 2015
commit 161af4f4ff3685e9c20886ce31760d68b96f3318
6 changes: 2 additions & 4 deletions test/parallel/test-stream-wrap-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const assert = require('assert');
const StreamWrap = require('_stream_wrap');
const Duplex = require('stream').Duplex;

var done = false;

var stream = new Duplex({
const stream = new Duplex({
read: function() {
},
write: function() {
Expand All @@ -16,7 +14,7 @@ var stream = new Duplex({

stream.setEncoding('ascii');

var wrap = new StreamWrap(stream);
const wrap = new StreamWrap(stream);

wrap.on('error', common.mustCall(function(err) {
assert(/StringDecoder/.test(err.message));
Expand Down