You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even while introducing EventEmitter class, it mentions var EventEmitter = require('events'); which should have been var EventEmitter = require('events').EventEmitter;
Run the code otherwise complains TypeError: Object prototype may only be an Object or null, which is understandable as object returned by simply requiring events does not have prototype property.
The text was updated successfully, but these errors were encountered:
Inheriting from EventEmitter section requires
events
and incorrectly assigns to EventEmitter object.It should be
Even while introducing EventEmitter class, it mentions
var EventEmitter = require('events');
which should have beenvar EventEmitter = require('events').EventEmitter;
Run the code otherwise complains
TypeError: Object prototype may only be an Object or null
, which is understandable as object returned by simply requiringevents
does not haveprototype
property.The text was updated successfully, but these errors were encountered: