mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
zlib: refactor zlib internals
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>
This commit is contained in:
1 parent
dc12fa19ab
commit
bae674ee5d
2 files changed
+575
-467
No files matched your search
+573
-465
File diff suppressed because it is too large.
Load diff
@@ -4,10 +4,10 @@ require('../common');
|
||||
const { validateSnapshotNodes } = require('../common/heap');
|
||||
const zlib = require('zlib');
|
||||
|
||||
validateSnapshotNodes('Node / ZCtx', []);
|
||||
validateSnapshotNodes('Node / ZlibStream', []);
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const gunzip = zlib.createGunzip();
|
||||
validateSnapshotNodes('Node / ZCtx', [
|
||||
validateSnapshotNodes('Node / ZlibStream', [
|
||||
{
|
||||
children: [
|
||||
{ node_name: 'Zlib', edge_name: 'wrapped' },
|
||||
|
||||
Reference in new issue
Block a user