Closes GH-85 Emit error rather than throwing.
authorisaacs <i@izs.me>
Wed, 16 Feb 2011 05:34:30 +0000 (21:34 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 28 Feb 2011 01:08:14 +0000 (17:08 -0800)
commitf3d364122dc12f13cbfb848576a8b152849452ea
tree0cb2ca79aa1a2cbddea063aa4a127ecb78eb88ca
parent2cfe7b847d986de3ca7b7191102b489913a7639e
Closes GH-85 Emit error rather than throwing.

Since "error" events will throw when unhandled anyhow, it makes no sense
to throw from an EventEmitter's method, especially for such a minor
misdemeanor as attempting to write to a non-writable stream.
lib/fs.js
lib/tty_win32.js