blob: 83c799b92fba2579594a30d6d2e2be5165f7c284 [file] [edit]
'use strict';
const common = require('../common');
const { Transform } = require('stream');
const stream = new Transform({
transform(chunk, enc, cb) { cb(); cb(); }
});
stream.on('error', common.expectsError({
type: Error,
message: 'Callback called multiple times',
code: 'ERR_MULTIPLE_CALLBACK'
}));
stream.write('foo');