We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 757e685 commit c3810e2Copy full SHA for c3810e2
lib/net.js
@@ -701,17 +701,6 @@ protoGetter('localPort', function localPort() {
701
});
702
703
704
-Socket.prototype.write = function(chunk, encoding, cb) {
705
- if (typeof chunk !== 'string' && !(chunk instanceof Buffer)) {
706
- throw new errors.TypeError('ERR_INVALID_ARG_TYPE',
707
- 'chunk',
708
- ['string', 'Buffer'],
709
- chunk);
710
- }
711
- return stream.Duplex.prototype.write.apply(this, arguments);
712
-};
713
-
714
715
Socket.prototype._writeGeneric = function(writev, data, encoding, cb) {
716
// If we are still connecting, then buffer this for later.
717
// The Writable logic will buffer up any more writes while
0 commit comments