joyent/node — pull request #4891 by wanderview (2013-03-02 05:13:00+00:00)
Title: Fix `emit()` with no listeners.

In commit 4f7f8bbd the check for a null `_events` object was removed. This
is required to avoid a null dereference in the case where the `EventEmitter`
is not called and `addListener()` has not been called yet. It seems many
modules do not properly chain to the `EventEmitter` constructor.