Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: refactor Server.prototype.listen #4039

Closed
wants to merge 15 commits into from

Commits on Aug 13, 2016

  1. Move listenAfterLookup out of listen

    * move `listenAfterLookup` out of `Server.prototype.listen`
    * rename `listenAfterLookup` to `lookupAndListen` for consistency with
    `lookupAndConnect`
    * self -> this
    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    d5452a6 View commit details
    Browse the repository at this point in the history
  2. Use normalizeConnectArgs in listen

    This is mostly preparation, `options` will be used later.
    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    88c44c1 View commit details
    Browse the repository at this point in the history
  3. Replace h with options

    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    df8d8c8 View commit details
    Browse the repository at this point in the history
  4. Only deal with options object

    This removes the ifs directly dealing with arguments.
    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    959582c View commit details
    Browse the repository at this point in the history
  5. Fix linter errors

    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    d1c6f7b View commit details
    Browse the repository at this point in the history
  6. Test the new behavior

    jscissr committed Aug 13, 2016
    Configuration menu
    Copy the full SHA
    708e1b4 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2016

  1. Use argument.length directly

    as requested by @mscdex
    jscissr committed Aug 15, 2016
    Configuration menu
    Copy the full SHA
    150723d View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2016

  1. Configuration menu
    Copy the full SHA
    5ab4028 View commit details
    Browse the repository at this point in the history
  2. Use string interpolation

    jscissr committed Aug 16, 2016
    Configuration menu
    Copy the full SHA
    0bffc03 View commit details
    Browse the repository at this point in the history
  3. Style: Use brackets around if

    jscissr committed Aug 16, 2016
    Configuration menu
    Copy the full SHA
    db798ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e772fa3 View commit details
    Browse the repository at this point in the history
  5. Optimize argument handling

    jscissr committed Aug 16, 2016
    Configuration menu
    Copy the full SHA
    3fb1435 View commit details
    Browse the repository at this point in the history
  6. Update normalizeArgs comment

    jscissr committed Aug 16, 2016
    Configuration menu
    Copy the full SHA
    4a65449 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2016

  1. Or expression instead of if

    jscissr committed Aug 18, 2016
    Configuration menu
    Copy the full SHA
    3848eae View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2016

  1. length checking before array access

    Requested by @mscdex
    jscissr committed Sep 9, 2016
    Configuration menu
    Copy the full SHA
    4bb5770 View commit details
    Browse the repository at this point in the history