mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 20:06:58 +00:00

Split out things that are specific to zlib as a specific compression library, vs. the interface that is common to most C compression libraries. This should pave the way for including support for e.g. brotli. PR-URL: https://github.com/nodejs/node/pull/23360 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
18 lines
482 B
JavaScript
18 lines
482 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
require('../common');
|
|
const { validateSnapshotNodes } = require('../common/heap');
|
|
const zlib = require('zlib');
|
|
|
|
validateSnapshotNodes('Node / ZlibStream', []);
|
|
// eslint-disable-next-line no-unused-vars
|
|
const gunzip = zlib.createGunzip();
|
|
validateSnapshotNodes('Node / ZlibStream', [
|
|
{
|
|
children: [
|
|
{ node_name: 'Zlib', edge_name: 'wrapped' },
|
|
{ node_name: 'Node / zlib_memory', edge_name: 'zlib_memory' }
|
|
]
|
|
}
|
|
]);
|