We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4752fc4 commit f0eeddbCopy full SHA for f0eeddb
test/parallel/test-stream-big-packet.js
@@ -5,13 +5,6 @@ const stream = require('stream');
5
6
let passed = false;
7
8
-class PassThrough extends stream.Transform {
9
- _transform(chunk, encoding, done) {
10
- this.push(chunk);
11
- done();
12
- }
13
-}
14
-
15
class TestStream extends stream.Transform {
16
_transform(chunk, encoding, done) {
17
if (!passed) {
@@ -22,8 +15,8 @@ class TestStream extends stream.Transform {
22
}
23
24
25
-const s1 = new PassThrough();
26
-const s2 = new PassThrough();
18
+const s1 = new stream.PassThrough();
19
+const s2 = new stream.PassThrough();
27
20
const s3 = new TestStream();
28
21
s1.pipe(s3);
29
// Don't let s2 auto close which may close s3
0 commit comments