Heh. Ben pointed out the same thing. That code was there before. I though I
had changed it to just Error.
On Oct 28, 2013 3:22 PM, "Isaac Z. Schlueter" <notifications@github.com>
wrote:

> In lib/events.js:
>
> > -        if (!er) er = new TypeError('Uncaught, unspecified "error" event.');
> > -        er.domainEmitter = this;
> > -        er.domain = this.domain;
> > -        er.domainThrown = false;
> > -        this.domain.emit('error', er);
> > -      } else if (er instanceof Error) {
> > -        throw er; // Unhandled 'error' event
> > -      } else {
> > -        throw TypeError('Uncaught, unspecified "error" event.');
> > -      }
> > -      return false;
> > +  if (type === 'error' && !this._events.error) {
> > +    er = arguments[1];
> > +    if (this.domain) {
> > +      if (!er)
> > +        er = new TypeError('Uncaught, unspecified "error" event.');
>
> It's a TypeError because it means that you did ev.emit('error') with no
> error object.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joyent/node/pull/6011/files#r7265722>
> .
>