-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
This segment of code looks slightly different from the rest of the comparisons to "undefined" throughout the code. Is it missing a typeof operator? It's been pretty-printed / cleaned by me, but you should get the general idea to look at net.Socket.prototype.setKeepAlive
net.Socket.prototype.setKeepAlive = function (enable, delay) {
enable = enable === "undefined" ? false : enable;
delay = delay === "undefined" ? 0 : delay;
chrome.socket.setKeepAlive(self._socketInfo.socketId, enable, initialDelay, function () {});
};
Saw the project from a Reddit link in /r/JavaScript
Metadata
Metadata
Assignees
Labels
No labels