mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 17:03:34 +00:00

Fixes: https://github.com/nodejs/node/issues/38721 PR-URL: https://github.com/nodejs/node/pull/38723 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
19 lines
289 B
JavaScript
19 lines
289 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const {
|
|
pipeline,
|
|
PassThrough
|
|
} = require('stream');
|
|
|
|
|
|
async function runTest() {
|
|
await pipeline(
|
|
'',
|
|
new PassThrough({ objectMode: true }),
|
|
common.mustCall(() => { })
|
|
);
|
|
}
|
|
|
|
runTest().then(common.mustCall(() => {}));
|