summaryrefslogtreecommitdiff
path: root/test/parallel/test-stream2-set-encoding.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-stream2-set-encoding.js')
-rw-r--r--test/parallel/test-stream2-set-encoding.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-stream2-set-encoding.js b/test/parallel/test-stream2-set-encoding.js
index 40e09035a9..dd27c1bb29 100644
--- a/test/parallel/test-stream2-set-encoding.js
+++ b/test/parallel/test-stream2-set-encoding.js
@@ -66,8 +66,7 @@ TestReader.prototype._read = function(n) {
}
this.pos += n;
- var ret = new Buffer(n);
- ret.fill('a');
+ var ret = Buffer.alloc(n, 'a');
console.log('this.push(ret)', ret);