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