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

[v6.x backport] readline: remove max limit of crlfDelay #14899

Closed
wants to merge 74 commits into from
Closed

[v6.x backport] readline: remove max limit of crlfDelay #14899

wants to merge 74 commits into from

Commits on Aug 16, 2017

  1. tools: use no-use-before-define ESLint rule

    Also fix repl and url libs for the rule.
    
    PR-URL: #14032
    Refs: http://eslint.org/docs/rules/no-use-before-define
    Reviewed-By: Daijiro Wachi <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    2a9e9d4 View commit details
    Browse the repository at this point in the history
  2. test: fix flaky test-https-set-timeout-server

    Because of a race condition, connection listener may not be invoked if
    test is run under load. Remove `common.mustCall()` wrapper from the
    listener. Move the test to `parallel` because it now works under load.
    Make similar change to http test to keep them in synch even though it is
    much harder to trigger the race in http.
    
    PR-URL: #14134
    Fixes: #14133
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    7b53be0 View commit details
    Browse the repository at this point in the history
  3. test: fix flaky http(s)-set-server-timeout tests

    The tests include a callback that might not be invoked but is wrapped in
    common.mustCall(). Remove the common.mustCall() wrapper and add a
    comment explaining that it should not be added.
    
    Add a new test case that sets the timeout to 1ms and waits for both the
    connection handler and the timeout handler to be invoked. This version
    keeps the common.mustCall() wrapper intact around the connection handler
    (although it's mostly semantic and not necessary for the test as the
    test will certainly fail or time out if that handler isn't invoked).
    
    PR-URL: #14380
    Fixes: #11768
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    d35e5c7 View commit details
    Browse the repository at this point in the history
  4. v8: handle proxy objects in MakeMirror(), v1

    PR-URL: #14343
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    194836f View commit details
    Browse the repository at this point in the history
  5. v8: handle proxy objects in MakeMirror(), v2

    PR-URL: #14343
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5a93c16 View commit details
    Browse the repository at this point in the history
  6. v8: fix RegExp nits in v8_prof_polyfill.js

    * Do not repeat RegExp creation in cycle.
    * Use sufficient string instead of RegExp in split().
    
    PR-URL: #13709
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    ae3e7be View commit details
    Browse the repository at this point in the history
  7. tools: update to ESLint 4.1.0

    Update ESLint to 4.1.0. This fixes a bug that previously prevented us
    from using the new and stricter indentation checking.
    
    Refs: eslint/eslint#8721
    Backport-PR-URL: #14830
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    c96e938 View commit details
    Browse the repository at this point in the history
  8. tools: add script to update ESLint

    Provide a bash script for updating ESLint in the project.
    
    Backport-PR-URL: #14830
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    58e0c5c View commit details
    Browse the repository at this point in the history
  9. tools: update to ESLint 4.1.1

    PR-URL: #13946
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    05ee559 View commit details
    Browse the repository at this point in the history
  10. test: skip test-fs-readdir-ucs2 if no support

    If the filesystem does not support UCS2, do not run the test.
    
    Backport-PR-URL: #14835
    PR-URL: #14029
    Fixes: #14028
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    175d46e View commit details
    Browse the repository at this point in the history
  11. tools: remove align-multiline-assignment lint rule

    In preparation for stricter indentation linting, remove the
    align-multiline-assignment custom rule, as it may conflict with the
    ESLint stricter indentation linting.
    
    Backport-PR-URL: #14835
    PR-URL: #14079
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    9320db0 View commit details
    Browse the repository at this point in the history
  12. lib: use consistent indentation for ternaries

    In anticipation of stricter linting for indentation issues, modify
    ternary operators in lib that do not conform with the expected ESLint
    settings.
    
    Backport-PR-URL: #14835
    PR-URL: #14078
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    e8c0e0f View commit details
    Browse the repository at this point in the history
  13. lib: remove excess indentation

    In anticipation of stricter linting for indentation, remove instances of
    extra indentation that will be flagged by the new rules.
    
    Backport-PR-URL: #14835
    PR-URL: #14090
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5e6c711 View commit details
    Browse the repository at this point in the history
  14. lib: normalize indentation in parentheses

    In anticipation of stricter indentation linting, normalize indentation
    of code in parentheses.
    
    Backport-PR-URL: #14835
    PR-URL: #14125
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    a75ba80 View commit details
    Browse the repository at this point in the history
  15. lib: update indentation of ternaries

    In preparation for stricter indentation linting and to increase code
    clarity, update indentation for ternaries in lib.
    
    Backport-PR-URL: #14835
    PR-URL: #14247
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5ef17b7 View commit details
    Browse the repository at this point in the history
  16. test: adjust indentation for stricter linting

    ESLint 4.x has stricter linting than previous versions. We are currently
    using the legacy indentation rules in the test directory. This commit
    changes the indentation of files to comply with the stricter 4.x linting
    and enable stricter linting in the test directory.
    
    Backport-PR-URL: #14835
    PR-URL: #14431
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b0f8bc9 View commit details
    Browse the repository at this point in the history
  17. doc: fix indentation issues in sample code

    In preparation for stricter ESLint indentation checking, fix a few
    issues in sample code.
    
    Backport-PR-URL: #14835
    PR-URL: #13950
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5f7827d View commit details
    Browse the repository at this point in the history
  18. tools: remove legacy indentation linting

    All linting now uses the current ESLint 4.3.0 indentation linting.
    Remove legacy indentation rules.
    
    Backport-PR-URL: #14835
    PR-URL: #14515
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Claudio Rodriguez <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    f46e14c View commit details
    Browse the repository at this point in the history
  19. src: remove GTEST_DONT_DEFINE_ASSERT_EQ in util.h

    As indicated by the FIXME comment, this macro guard is no longer needed.
    
    PR-URL: #12638
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    danbev authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    e0f8b18 View commit details
    Browse the repository at this point in the history
  20. test: simplify test skipping

    * Make common.skip() exit.
    
      Also add common.printSkipMessage() for partial skips.
    
    * Don't make needless things before skip
    
    Backport-PR-URL: #14838
    PR-URL: #14021
    Fixes: #14016
    Reviewed-By: Refael Ackermann <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    44d3047 View commit details
    Browse the repository at this point in the history
  21. build,windows: implement PEP514 python detection

    Backport-PR-URL: #14842
    PR-URL: #13900
    Fixes: #13882
    Reviewed-By: Tobias Nießen <[email protected]>
    refack authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    162bc81 View commit details
    Browse the repository at this point in the history
  22. build,windows: restore DISTTYPEDIR

    * rename :exit to :distexit
    
    Backport-PR-URL: #14842
    PR-URL: #13969
    Refs: #13900 (review)
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Rod Vagg <[email protected]>
    refack authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    970fe59 View commit details
    Browse the repository at this point in the history
  23. build,win: fix python detection script

    Handle spaces in the path to python.exe, in case it is installed
    under some directory like "C:\Program Files".
    
    Backport-PR-URL: #14842
    PR-URL: #14546
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    jasongin authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1b9563a View commit details
    Browse the repository at this point in the history
  24. tools: generate template literal for addon tests

    Instead of generating string concatenation, generate a template literal.
    This is mostly useful as a pre-emptive measure for avoiding problems
    when (if?) we enable the prefer-template lint rule in the test
    directory.
    
    PR-URL: #14094
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    124d5e1 View commit details
    Browse the repository at this point in the history
  25. doc,test: fs - reserved characters under win32

    Explain the behavior of `fs.open()` under win32 that file path contains
    some characters and add some test cases for them.
    
    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)
    
    PR-URL: #13875
    Refs: #13868
    Refs: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    Refs: https://msdn.microsoft.com/en-us/library/windows/desktop/bb540537.aspx
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    XadillaX authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    f868b75 View commit details
    Browse the repository at this point in the history
  26. doc: fix mistake in http.md

    If the first parameter of `request.end` `data` is specified, it should
    be equivalent to calling `request.write(data, encoding)` (not
    `response.write(data, encoding)`) followed by `request.end(callback)`.
    
    This mistake was introduced in commit
    14b3aab:
    
        date: 28 November 2015 at 7:30:32 AM GMT+8
        author: jpersson <[email protected]>
        committer: James M Snell <[email protected]>
        summary: doc: add links and backticks around names
    
    PR-URL: #14126
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    galeo authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    7a1ff59 View commit details
    Browse the repository at this point in the history
  27. doc: note 'resize' event conditions on Windows

    PR-URL: #13576
    Fixes: #13197
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Dean-Coakley authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    6624a02 View commit details
    Browse the repository at this point in the history
  28. doc: correct stream Duplex allowHalfOpen doc

    If allowHalfOpen is set to false, the stream will automatically end the
    writable side when the readable side ends, but not the other way around.
    
    PR-URL: #14127
    Fixes: #4044
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    584f0f4 View commit details
    Browse the repository at this point in the history
  29. test: add get/set effective uid/gid tests

    3c92ca2 should have had tests
    to go along with it. This adds tests for the following functions:
    
    * `process.geteuid()`
    * `process.seteuid()`
    * `process.getegid()`
    * `process.setegid()`
    
    PR-URL: #14091
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Claudio Rodriguez <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    evanlucas authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5c3fd35 View commit details
    Browse the repository at this point in the history
  30. test: remove common.noop

    This change removes `common.noop` from the Node.js internal testing
    common module.
    
    Over the last few weeks, I've grown to dislike the `common.noop`
    abstraction.
    
    First, new (and experienced) contributors are unaware of it and so it
    results in a large number of low-value nits on PRs. It also increases
    the number of things newcomers and infrequent contributors have to be
    aware of to be effective on the project.
    
    Second, it is confusing. Is it a singleton/property or a getter? Which
    should be expected? This can lead to subtle and hard-to-find bugs. (To
    my knowledge, none have landed on master. But I also think it's only a
    matter of time.)
    
    Third, the abstraction is low-value in my opinion. What does it really
    get us? A case could me made that it is without value at all.
    
    Lastly, and this is minor, but the abstraction is wordier than not using
    the abstraction. `common.noop` doesn't save anything over `() => {}`.
    
    So, I propose removing it.
    
    PR-URL: #12822
    Backport-PR-URL: #14174
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    3bd0c7c View commit details
    Browse the repository at this point in the history
  31. tools: update ESLint to 4.2.0

    ESLint 4.2.0 contains a fix for a bug that is blocking us from moving to
    the non-legacy stricter indentation linting. Update to 4.2.0 to remove
    the blocking issue.
    
    Backport-PR-URL: #14859
    PR-URL: #14155
    Ref: eslint/eslint#8882
    Ref: eslint/eslint#8885
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    ec68f07 View commit details
    Browse the repository at this point in the history
  32. tools: update package.json engine field

    PR-URL: #14165
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    strugee authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    f395b48 View commit details
    Browse the repository at this point in the history
  33. doc: update umask for clarity

    PR-URL: #14170
    Fixes: #14169
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jsumners authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    98466c5 View commit details
    Browse the repository at this point in the history
  34. benchmark: fix typo in inspect-proxy

    PR-URL: #14237
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b646c2a View commit details
    Browse the repository at this point in the history
  35. test: fix flaky test-net-can-reset-timeout

    Use `.once()` rather than `.on()` for timeout listener.
    
    Add comment with URL for issue explaining the purpose of the test. (h/t
    refack)
    
    PR-URL: #14257
    Fixes: #14241
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b89e806 View commit details
    Browse the repository at this point in the history
  36. test: check complete error message

    In test-stream-writable-change-default-encoding, use a regular
    expression to match the complete error message.
    
    PR-URL: #14264
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Bryan English <[email protected]>
    fraserxu authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    ed6d4f0 View commit details
    Browse the repository at this point in the history
  37. test: use regular expression to match error msg

    PR-URL: #14265
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Amunu authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b64fe2e View commit details
    Browse the repository at this point in the history
  38. test: use regluar expression in vm test

    update test/parallel/test-vm-create-context-arg.js
    in line 27 to change `TypeError` to the regular expression
    with the `/^TypeError: sandbox must be an object$/`.
    
    PR-URL: #14266
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    AkiraXue authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    a71e23a View commit details
    Browse the repository at this point in the history
  39. test: use regexp to confir error message

    In test/parallel/test-stream-writable-null.js, use a regular expression
    to validate error message in assert.throws() call.
    
    PR-URL: #14268
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    bangwu authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    49312cb View commit details
    Browse the repository at this point in the history
  40. test: simplify string concatenation

    Replace string concatenation with template literals.
    Updated `test/parallel/test-http-multi-line-headers.js`
    
    PR-URL: #14278
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    jiangplus authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    d462267 View commit details
    Browse the repository at this point in the history
  41. test: use template literal for string concat

    In test/parallel/test-repl-persistent-history.js, replace string
    concatenation with a template literal.
    
    PR-URL: #14288
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    whatwewant authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    a4281c6 View commit details
    Browse the repository at this point in the history
  42. test: use regex error checks in test-util-format

    Replace constructor with regular expression for second argument
    to assert.throws() in test-util-format.
    
    PR-URL: #14299
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    superwoods authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    f84a7a6 View commit details
    Browse the repository at this point in the history
  43. doc: move LTS README link to increase prominence

    PR-URL: #14259
    Fixes: #10718
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    gibfahn authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    41e4e46 View commit details
    Browse the repository at this point in the history
  44. http: OutgoingMessage change writable after end

    When an OutgoingMessage is closed (for example, using the `end`
    method), its 'writable' property should be changed to false - since it
    is not writable anymore. The 'writable' property should have the
    opposite value of the 'finished' property.
    
    PR-URL: #14024
    Fixes: #14023
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Kasher authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    5303db7 View commit details
    Browse the repository at this point in the history
  45. gyp: implement LD/LDXX for ninja and FIPS

    The ability to set the link rule is used for FIPS, and needs to set
    both the `ld =` and `ldxx =` variables in the ninja build file to link
    c++ (node) and c (openssl-cli, etc.) executables.
    
    URL: #14227
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    01d7d30 View commit details
    Browse the repository at this point in the history
  46. test: check error with regex in test-signal-safety

    Change TypeError to a regular expression in assert.throws() in
    test/parallel/test-signal-safety.js.
    
    PR-URL: #14285
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    shaman2009 authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    2039435 View commit details
    Browse the repository at this point in the history
  47. test: use regex error check in test-crypto-random

    Replace constructor in assert.throws() to a regular expression to check
    the error thrown in a test in test-crypto-random.
    
    PR-URL: #14273
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    f48vj authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    3148bc7 View commit details
    Browse the repository at this point in the history
  48. test: fix error handling test-http-full-response

    The way it is currently written, test-http-full-response will fail if
    there is a problem with spawning that doesn't include `ab` or `api` in
    `stderr`, but it will fail with a misleading mismatched-calls
    `common.mustCall()` error.
    
    Alter the error handling so that it rethrows the actual error, providing
    better information.
    
    PR-URL: #14252
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1e10f9f View commit details
    Browse the repository at this point in the history
  49. test: replace concatenation with template literals

    Use template literals instead of string concatenation in
    test/parallel/test-http-extra-response.js
    
    PR-URL: #14296
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    csvwolf authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    3be54c8 View commit details
    Browse the repository at this point in the history
  50. doc,stream: _transform happens one at a time

    Add a note to the stream docs specifying that at most a single
    call to _transform can happen, and the provided callback()
    should be used to process another chunk.
    
    Fixes: #3208
    PR-URL: #14321
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mcollina authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1a8bf8a View commit details
    Browse the repository at this point in the history
  51. doc: replace dead link in v8 module

    PR-URL: #14372
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    drboyer authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1703871 View commit details
    Browse the repository at this point in the history
  52. docs: add note about fs.rmdir()

    fs.rmdir() on the file (not directory) results in different errors on
    Windows to everything else
    
    Fixes: #8797
    PR-URL: #14323
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Oleksandr-Kushchak-i2 authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    028f650 View commit details
    Browse the repository at this point in the history
  53. build,tools: do not force codesign prefix

    Allow passing the prefix in via the PKGDIR env var. This will allow us
    to use this same script to codesign the binary tarball.
    
    PR-URL: #14179
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    evanlucas authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    49662f3 View commit details
    Browse the repository at this point in the history
  54. build: codesign tarball binary on macOS

    Previously, we were signing the binary that was released in the .pkg,
    but not the binary released in the tarball.
    
    PR-URL: #14179
    Fixes: #11936
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    evanlucas authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1209832 View commit details
    Browse the repository at this point in the history
  55. test: use path.join for long path concatenation

    PR-URL: #14280
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    jankjn authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    bc1d4c5 View commit details
    Browse the repository at this point in the history
  56. doc: add XadillaX to collaborators

    PR-URL: #14388
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    XadillaX authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b21a42d View commit details
    Browse the repository at this point in the history
  57. test: replace string concatenation with template

    PR-URL: #14286
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    ziyun authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    9aa4a5b View commit details
    Browse the repository at this point in the history
  58. test: replace concatenation with template literals

    * test/parallel/test-stdout-close-catch.js
    
    PR-URL: #14298
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    leizongmin authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    6e08ae0 View commit details
    Browse the repository at this point in the history
  59. doc: describe labelling process for backports

    Based on discussion from the first backporting team meeting.
    
    PR-URL: #12431
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    addaleax authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    c3bb07c View commit details
    Browse the repository at this point in the history
  60. deps: cherry-pick 18ea996 from c-ares upstream

    Original commit message:
    
        ares_parse_naptr_reply: make buffer length check more accurate
    
        9478908a490a6bf009ba58d81de8c1d06d50a117 introduced a length check
        for records parsed by `ares_parse_naptr_reply()`. However, that
        function is designed to parse replies which also contain non-NAPTR
        records; for A records, the `rr_len > 7` check will fail as there
        are only 4 bytes of payload.
        In particular, parsing ANY replies for NAPTR records was broken
        by that patch.
    
        Fix that by moving the check into the case in which it is already
        known that the record is a NAPTR record.
    
    Ref: c-ares/c-ares@18ea996
    PR-URL: #13883
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    6e65501 View commit details
    Browse the repository at this point in the history
  61. doc: update experimental status to reflect use

    * Update the experimental status to reflect actual common use.
    * Also make a few formatting fixes.
    
    Fixes: #12701
    
    PR-URL: #12723
    Fixes: #12701
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    jasnell authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    ad86c26 View commit details
    Browse the repository at this point in the history
  62. test: replace concatenation with template literal

    PR-URL: #14284
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    HSUCHING authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    fd5d6c9 View commit details
    Browse the repository at this point in the history
  63. test: replace concatenation with template literal

    PR-URL: #14270
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    rockcoder23 authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    cdcec0c View commit details
    Browse the repository at this point in the history
  64. test: fix flaky test-force-repl

    test/parallel/test-force-repl.js has an unnecessary timer that makes the
    test flaky under load. Remove it.
    
    PR-URL: #14439
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    b9a5253 View commit details
    Browse the repository at this point in the history
  65. test: improve error logging for inspector test

    If JSON.parse() fails, print a message showing the JSON that failed to
    parse. This is to help with debugging a current test failure on CI.
    
    PR-URL: #14508
    Ref: #14507
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    baa11a1 View commit details
    Browse the repository at this point in the history
  66. buffer: remove a wrongly added attribute specifier

    It doesn't seem to make much sense to have the mentioned typedef
    declaration equipped with NODE_EXTERN. In fact, when compiling with GCC,
    an attribute specifier like __attribute__((visibility("default"))) in
    such a typedef declaration will cause the following warning message:
    
      warning: ‘visibility’ attribute ignored [-Wattributes]
    
    The issue goes unnoticed because NODE_EXTERN is defined as nothing for
    GCC builds, but for correctness it's better to not specify it here at
    all.
    
    PR-URL: #14466
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    hujiajie authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    7c542ab View commit details
    Browse the repository at this point in the history
  67. linkedlist: correct grammar in comments

    PR-URL: #14546
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    alexbostock authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    1232d9d View commit details
    Browse the repository at this point in the history
  68. test: add check on an addon that does not register

    This commit calls require on a shared library that is not declared
    as a node module, and therefore does not register properly.
    
    PR-URL: #13954
    Signed-off-by: Ezequiel Garcia <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    ezequielgarcia authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    9132f37 View commit details
    Browse the repository at this point in the history
  69. test: refactor test-vm-new-script-new-context

    * block scope test cases
    * clean up global leaks in individual test cases
    * enable global variable leak checking
    * remove console.error() statements
    
    PR-URL: #14536
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    435ab00 View commit details
    Browse the repository at this point in the history
  70. test: refactor test-domain-abort-on-uncaught

    * use common.mustCall() instead of exit handler
    * use execSync instead of exec so test is reliable under load
    * move from sequential to parallel
    
    PR-URL: #14541
    Fixes: #11826
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    014a9bd View commit details
    Browse the repository at this point in the history
  71. src: use existing strings over creating new ones

    This is a very very minor change.
    
    PR-URL: #14587
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    addaleax authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    071018e View commit details
    Browse the repository at this point in the history
  72. doc: add gabrielschulhof to collaborators

    PR-URL: #14692
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    403c465 View commit details
    Browse the repository at this point in the history
  73. tools: update to ESLint 4.3.0

    PR-URL: #14417
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and MylesBorins committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    567acf6 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2017

  1. Configuration menu
    Copy the full SHA
    ed8a581 View commit details
    Browse the repository at this point in the history