0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
isaacs 86433979c6 stream: Writables are not pipe()able
This handles the fact that stream.Writable inherits from the Stream class,
meaning that it has the legacy pipe() method.  Override that with a pipe()
method that emits an error.

Ensure that Duplex streams ARE still pipe()able, however.

Since the 'readable' flag on streams is sometimes temporary, it's probably
better not to put too much weight on that.  But if something is an instanceof
Writable, rather than of Readable or Duplex, then it's safe to say that
reading from it is the wrong thing to do.

Fix #3647
2013-02-26 18:54:05 -08:00
..
_debugger.js streams2: Call read(0) on resume() 2012-12-14 10:52:28 -08:00
_linklist.js
_stream_duplex.js stdio: Set readable/writable flags properly 2013-01-17 10:42:44 -08:00
_stream_passthrough.js streams2: ctor guards on Stream classes 2012-12-13 17:00:26 -08:00
_stream_readable.js stream: Do not switch to objectMode implicitly 2013-02-25 07:38:10 -08:00
_stream_transform.js stream: Start out in sync=true state 2013-02-25 07:38:10 -08:00
_stream_writable.js stream: Writables are not pipe()able 2013-02-26 18:54:05 -08:00
assert.js assert: improve support for new execution contexts 2012-12-29 11:19:14 -08:00
buffer.js buffer: check logic simplification 2013-02-20 20:34:34 +01:00
child_process.js cluster: support datagram sockets 2013-01-28 22:12:21 +01:00
cluster.js cluster: support datagram sockets 2013-01-28 22:12:21 +01:00
console.js console: Support formatting options in trace() 2013-01-18 15:39:08 -08:00
constants.js
crypto.js crypto: fix base64 padding regression 2013-02-25 15:21:52 +01:00
dgram.js dgram: avoid EventEmitter leak warning 2013-01-28 22:19:02 +01:00
dns.js dns: make error message match errno 2013-01-18 12:13:32 +01:00
domain.js domain: use camelCase instead of snake_case 2012-12-29 10:37:31 -08:00
events.js Revert "events: Don't crash on events named __proto__" 2013-01-17 13:20:22 -08:00
freelist.js
fs.js stream: remove lowWaterMark feature 2013-02-21 15:23:18 -08:00
http.js http: fix case in 505 response status line 2013-02-26 15:18:40 +01:00
https.js https: optimize https.createConnection() 2012-12-28 16:42:51 +01:00
module.js addon: Pass module object to NODE_MODULE init function 2013-01-25 14:25:35 -08:00
net.js net: Respect the 'readable' flag on sockets 2013-02-12 16:49:26 -08:00
os.js os: rename tmpDir() to tmpdir() for consistency 2013-01-30 04:24:58 +01:00
path.js lint 2013-02-22 16:30:27 -08:00
punycode.js punycode: update to v1.2.0 2013-01-16 16:53:11 +01:00
querystring.js
readline.js lint 2013-01-29 23:57:23 -08:00
repl.js repl: fix how to module requiring in code comment 2013-01-16 10:59:22 -08:00
stream.js streams2: The new stream base classes 2012-12-13 17:00:23 -08:00
string_decoder.js Don't allow invalid encodings in StringDecoder class 2012-12-13 17:00:22 -08:00
sys.js
timers.js timer: move setImmediate from timer to uv_check 2013-02-15 16:11:05 -08:00
tls.js tls: _handle.readStart/readStop for CryptoStream 2013-02-21 23:29:18 +04:00
tty.js stream: remove lowWaterMark feature 2013-02-21 15:23:18 -08:00
url.js url: make url.format escape delimiters in path and query 2012-10-30 09:16:13 -07:00
util.js util: fix deprecation message in util.pump 2012-12-26 14:54:56 -08:00
vm.js
zlib.js stream: remove lowWaterMark feature 2013-02-21 15:23:18 -08:00