mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
09d8c0c8d2
PR-URL: https://github.com/nodejs/node/pull/39342 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const { Readable } = require('stream');
|
|
|
|
const readable = new Readable();
|
|
|
|
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());
|