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
const{Socket}=require('net')consts=newSockets.on('data',()=>{})s.removeAllListeners()s.listenerCount('data')// 0 expected, but got 1
If there is no arguments for stream::removeAllListeners(), the argument to be passed into Stream.prototype.removeAllListeners will be undefined, see here
The undefined value causes that the events::removeAllListeners(undefined) will do nothing. see here
The text was updated successfully, but these errors were encountered:
If there is no arguments for
stream::removeAllListeners()
, the argument to be passed intoStream.prototype.removeAllListeners
will beundefined
, see hereThe
undefined
value causes that theevents::removeAllListeners(undefined)
will do nothing. see hereThe text was updated successfully, but these errors were encountered: