blob: bd65c1fdbb8a1598a56d6574247ca0fe79adbabc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
const common = require('../common');
const { Writable } = require('stream');
// Don't emit 'drain' if ended
const w = new Writable({
write(data, enc, cb) {
process.nextTick(cb);
},
highWaterMark: 1
});
w.on('drain', common.mustNotCall());
w.write('asd');
w.end();
|