2016-06-10 09:27:15 +02:00
|
|
|
'use strict';
|
2021-07-10 15:03:02 +02:00
|
|
|
const common = require('../common');
|
2018-02-16 12:53:34 +01:00
|
|
|
const { Readable } = require('stream');
|
2016-06-10 09:27:15 +02:00
|
|
|
|
2018-02-16 12:53:34 +01:00
|
|
|
const readable = new Readable();
|
|
|
|
|
2021-07-10 15:03:02 +02:00
|
|
|
readable.read();
|
|
|
|
readable.on('error', common.expectsError({
|
|
|
|
code: 'ERR_METHOD_NOT_IMPLEMENTED',
|
|
|
|
name: 'Error',
|
|
|
|
message: 'The _read() method is not implemented'
|
|
|
|
}));
|
|
|
|
readable.on('close', common.mustCall());
|