File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ function pipeline(...streams) {
213
213
}
214
214
} else {
215
215
if ( ! PassThrough ) {
216
- PassThrough = require ( '_stream_passthrough ' ) ;
216
+ PassThrough = require ( 'internal/streams/passthrough ' ) ;
217
217
}
218
218
219
219
// If the last argument to pipeline is not a stream
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const {
47
47
} ,
48
48
hideStackFrames
49
49
} = require ( 'internal/errors' ) ;
50
- const Transform = require ( '_stream_transform ' ) ;
50
+ const { Transform, finished } = require ( 'stream ' ) ;
51
51
const {
52
52
deprecate
53
53
} = require ( 'internal/util' ) ;
@@ -57,7 +57,6 @@ const {
57
57
} = require ( 'internal/util/types' ) ;
58
58
const binding = internalBinding ( 'zlib' ) ;
59
59
const assert = require ( 'internal/assert' ) ;
60
- const finished = require ( 'internal/streams/end-of-stream' ) ;
61
60
const {
62
61
Buffer,
63
62
kMaxLength
Original file line number Diff line number Diff line change
1
+ /* eslint-disable node-core/required-modules */
2
+ /* eslint-disable node-core/require-common-first */
3
+
4
+ 'use strict' ;
5
+
6
+ // We are not loading common because it will load the stream module,
7
+ // defeating the purpose of this test.
8
+
9
+ const { gzipSync } = require ( 'zlib' ) ;
10
+
11
+ // Avoid regressions such as https://github.com/nodejs/node/issues/36615
12
+
13
+ // This must not throw
14
+ gzipSync ( 'fooobar' ) ;
You can’t perform that action at this time.
0 commit comments