We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b238a commit 395e324Copy full SHA for 395e324
lib/_http_outgoing.js
@@ -91,8 +91,6 @@ exports.OutgoingMessage = OutgoingMessage;
91
OutgoingMessage.prototype.setTimeout = function(msecs, callback) {
92
93
if (callback) {
94
- if (typeof callback !== 'function')
95
- throw new TypeError('callback must be a function');
96
this.on('timeout', callback);
97
}
98
0 commit comments