events: give subclass name in unhandled 'error' message
For unhandled 'error'
events, include the constructor name for
subclasses of EventEmitter, if possible. This makes tracing errors
easier when both creation of the Error
object and emitting it
happen in code that does not refer back to the event emitter.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines