Skip to content

The known issue from the blog? #2

@PlNG

Description

@PlNG

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions