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:
Matteo Collina authored and Beth Griggs committed 2021-01-28 17:56:03 +00:00
1 parent 25a3204fe2
commit 9ff73fcdbe
3 files changed
+16 -3

No files matched your search

+14
View File
@@ -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');