mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 08:42:45 +00:00

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());
|