domain: improve DEP0097 warning
There are two issues here:
- Anonymous functions, whose
name
is the empty string were not being displayed properly. This is addressed by the first commit. - The
domain
module monkey patchesEventEmitter.prototype.emit()
, but that function's name was not being inferred. This is addressed by the second commit.