mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
2c1b9f506a
RefsL https://github.com/nodejs/node/pull/45027 PR-URL: https://github.com/nodejs/node/pull/45047 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
19 lines
273 B
JavaScript
19 lines
273 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());
|