blob: 68ed7d69694089d690656b4e202d8a7b197e4007 [file] [edit]
'use strict';
require('../common');
const { Readable } = require('stream');
{
const r = Readable.from(['data']);
const wrapper = Readable.fromWeb(Readable.toWeb(r));
wrapper.on('data', () => {
// Destroying wrapper while emitting data should not cause uncaught
// exceptions
wrapper.destroy();
});
}