We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36e9574 commit 0599e38Copy full SHA for 0599e38
test/parallel/test-stream-big-packet.js
@@ -26,13 +26,6 @@ const stream = require('stream');
26
27
let passed = false;
28
29
-class PassThrough extends stream.Transform {
30
- _transform(chunk, encoding, done) {
31
- this.push(chunk);
32
- done();
33
- }
34
-}
35
-
36
class TestStream extends stream.Transform {
37
_transform(chunk, encoding, done) {
38
if (!passed) {
@@ -43,8 +36,8 @@ class TestStream extends stream.Transform {
43
}
44
45
46
-const s1 = new PassThrough();
47
-const s2 = new PassThrough();
39
+const s1 = new stream.PassThrough();
40
+const s2 = new stream.PassThrough();
48
41
const s3 = new TestStream();
49
42
s1.pipe(s3);
50
// Don't let s2 auto close which may close s3
0 commit comments