mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
e57d8af7e2
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>
15 lines
382 B
JavaScript
15 lines
382 B
JavaScript
/* 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');
|