Attaches the methods defined in the EventEmitter prototype to the prototype of the target.
The reason to manipulate the prototype instead of making it extend the EventEmitter is to keep the prototype chain as
it was.
throws
This function will throw an Error if a property with the same name was already present on the prototype of
the target.
Attaches the methods defined in the EventEmitter prototype to the prototype of the target. The reason to manipulate the prototype instead of making it extend the EventEmitter is to keep the prototype chain as it was.
This function will throw an Error if a property with the same name was already present on the prototype of the target.