1'use strict'; 2 3const common = require('../common'); 4const { Readable } = require('stream'); 5 6{ 7 const r = new Readable({ read() {} }); 8 9 r.on('end', common.mustNotCall()); 10 r.on('data', common.mustCall()); 11 r.on('error', common.mustCall()); 12 r.push('asd'); 13 r.push(null); 14 r.destroy(new Error('kaboom')); 15} 16