forked from LeenkxTeam/Kmake
11 lines
265 B
JavaScript
11 lines
265 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const { PassThrough } = require('stream');
|
|
|
|
const pt = new PassThrough({ highWaterMark: 0 });
|
|
pt.on('drain', common.mustCall());
|
|
assert(!pt.write('hello1'));
|
|
pt.read();
|
|
pt.read();
|