0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/benchmark/net
Matt Loring 89164a096d 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: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Matthew Loring <mattloring@google.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-04-27 17:06:08 -07:00
..
net-c2s-cork.js benchmark: Fix crash in net benchmarks 2016-04-27 17:06:08 -07:00
net-c2s.js benchmark: Fix crash in net benchmarks 2016-04-27 17:06:08 -07:00
net-pipe.js benchmark: Fix crash in net benchmarks 2016-04-27 17:06:08 -07:00
net-s2c.js benchmark: Fix crash in net benchmarks 2016-04-27 17:06:08 -07:00
tcp-raw-c2s.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
tcp-raw-pipe.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
tcp-raw-s2c.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00