Commit 89164a09 authored by Matt Loring's avatar Matt Loring
Browse files

benchmark: Fix crash in net benchmarks

Net benchmarks create partial event emitters that do not have all of the
required event emitter functions. They currently mock out `on`, `once`,
and `emit` functions. This change mocks out `prependListener` as well to
avoid crashing in `_stream_readable`.

PR-URL: https://www.github.com/nodejs/node/pull/6407
Fixes: https://www.github.com/nodejs/node/issues/6405


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarMinwoo Jung <jmwsoft@gmail.com>
Reviewed-By: default avatarMatthew Loring <mattloring@google.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 3cdb5063
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment