• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3const stream = require('stream');
4
5const r = new stream.Stream();
6r.listenerCount = undefined;
7
8const w = new stream.Stream();
9w.listenerCount = undefined;
10
11w.on('pipe', function() {
12  r.emit('error', new Error('Readable Error'));
13  w.emit('error', new Error('Writable Error'));
14});
15r.on('error', common.mustCall());
16w.on('error', common.mustCall());
17r.pipe(w);
18