-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: v14.15.0
- Platform: Linux
- Subsystem: streams
What steps will reproduce the bug?
const { Readable } = require('stream');
class ReadStream extends Readable {
constructor() {
super();
}
_construct(cb) {
console.log('_construct called');
cb();
}
_read(n) {
}
}
(new ReadStream()).on('data', ()=>{});
If I run the above with v14.15.0 nothing gets printed but on v15.0.1 I get "_construct called".
How often does it reproduce?
Always
What is the expected behavior?
_construct
should be called
What do you see instead?
_construct
is not called
Additional information
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.