Sign in
◑
Theme
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/node-ci-2023-05-22
/
.
/
test
/
parallel
/
test-zlib-close-in-ondata.js
blob: 44d996311dca134d92cd7a20d9cc03423423303f [
file
] [
edit
]
'use strict'
;
const
common
=
require
(
'../common'
);
const
zlib
=
require
(
'zlib'
);
const
ts
=
zlib
.
createGzip
();
const
buf
=
Buffer
.
alloc
(
1024
*
1024
*
20
);
ts
.
on
(
'data'
,
common
.
mustCall
(()
=>
ts
.
close
()));
ts
.
end
(
buf
);