-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
The following should log 'ok' to the console but nothing is logged.
var stream = require('stream');
var pass = new stream.PassThrough();
var writable = new stream.Writable();
pass.pipe(writable); pass.unpipe(writable);
pass.on('data', function(chunk){ console.log(chunk.toString()); });
pass.write('ok');
Of course, commenting the line pass.pipe(writable); pass.unpipe(writable);
fix the problem.
Can you explain me why?
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.