mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
stream,zlib: do not use _stream_* anymore
PR-URL: https://github.com/nodejs/node/pull/36618 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
25a3204fe2
commit
9ff73fcdbe
3 files changed
+16
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
/* eslint-disable node-core/required-modules */
|
||||
/* eslint-disable node-core/require-common-first */
|
||||
|
||||
'use strict';
|
||||
|
||||
// We are not loading common because it will load the stream module,
|
||||
// defeating the purpose of this test.
|
||||
|
||||
const { gzipSync } = require('zlib');
|
||||
|
||||
// Avoid regressions such as https://github.com/nodejs/node/issues/36615
|
||||
|
||||
// This must not throw
|
||||
gzipSync('fooobar');
|
||||
Reference in new issue
Block a user