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 @@ -215,7 +215,7 @@ function pipeline(...streams) {
215
215
}
216
216
} else {
217
217
if ( ! PassThrough ) {
218
- PassThrough = require ( '_stream_passthrough ' ) ;
218
+ PassThrough = require ( 'internal/streams/passthrough ' ) ;
219
219
}
220
220
221
221
// If the last argument to pipeline is not a stream
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const {
52
52
} ,
53
53
hideStackFrames
54
54
} = require ( 'internal/errors' ) ;
55
- const Transform = require ( '_stream_transform ' ) ;
55
+ const { Transform, finished } = require ( 'stream ' ) ;
56
56
const {
57
57
deprecate
58
58
} = require ( 'internal/util' ) ;
@@ -62,7 +62,6 @@ const {
62
62
} = require ( 'internal/util/types' ) ;
63
63
const binding = internalBinding ( 'zlib' ) ;
64
64
const assert = require ( 'internal/assert' ) ;
65
- const finished = require ( 'internal/streams/end-of-stream' ) ;
66
65
const {
67
66
Buffer,
68
67
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