mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 00:04:20 +00:00

Fixes: https://github.com/nodejs/node/issues/40935 PR-URL: https://github.com/nodejs/node/pull/40947 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
9 lines
210 B
JavaScript
9 lines
210 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const { PassThrough } = require('stream');
|
|
|
|
const pt = new PassThrough({ highWaterMark: 0 });
|
|
pt.on('drain', common.mustCall());
|
|
pt.write('hello');
|
|
pt.read();
|