stream: check _events before _events.error
authorisaacs <i@izs.me>
Wed, 28 Aug 2013 16:35:36 +0000 (09:35 -0700)
committerisaacs <i@izs.me>
Wed, 28 Aug 2013 16:35:39 +0000 (09:35 -0700)
commitfbb963b5d520a70d9c3f2f9ec116d79a0c676f80
treecd2325528af29c590fc9829562e0ed6b8ea75cf8
parent02eb9c834a1ea6d97af17c556b6d63315da4aca5
stream: check _events before _events.error

This fixes the regression introduced by 5458079, which breaks the
net/net-pipe benchmark script.

Closes #6145
lib/_stream_readable.js