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

8.1.0 Proposal #13483

Closed
wants to merge 115 commits into from
Closed

8.1.0 Proposal #13483

wants to merge 115 commits into from

Commits on Jun 5, 2017

  1. test: hasCrypto https-server-keep-alive-timeout

    Currently this test will fail with the following error message when
    configured --without-ssl:
    Error: Node.js is not compiled with openssl crypto support
    
    This commit checks for crypto and skips this tests if such support
    is not available.
    
    PR-URL: #13253
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    f0ad3bb View commit details
    Browse the repository at this point in the history
  2. test: support candidate V8 versions

    When V8 is built from its master branch, it adds a " (candidate)"
    suffix to the version string. Add support for that in the tests so it
    does not fail with Node canary.
    
    PR-URL: #13282
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    targos authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    a2d4954 View commit details
    Browse the repository at this point in the history
  3. inspector: bind to random port with --inspect=0

    Allow binding to a randomly assigned port number with `--inspect=0`
    or `--inspect-brk=0`.
    
    PR-URL: #5025
    Refs: #4419
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    bnoordhuis authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    cc6ec2f View commit details
    Browse the repository at this point in the history
  4. doc: fix doc styles

    BUILDING.md
      + L122: Missing code-language flag
      + L170: Strong should use `*` as a marker
    
    doc/changelogs/CHANGELOG_V6.md
      + L1494: Don't pad `emphasis` with inner spaces
    
    doc/guides/maintaining-V8.md
      + L3: Don't use multiple top level headings
      + L16: Don't use multiple top level headings
      + L40: Don't use multiple top level headings
      + L124: Don't use multiple top level headings
      + L182: Missing code-language flag
      + L223: Don't use multiple top level headings
      + L288: Don't use multiple top level headings
      + L307: Don't use multiple top level headings
    
    doc/guides/writing-tests.md
      + L322: Missing code-language flag
      + L329: Missing code-language flag
    
    doc/releases.md
      + L299: Missing code-language flag
    
    PR-URL: #13270
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    watilde authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    bee1421 View commit details
    Browse the repository at this point in the history
  5. test: improve n-api coverage for typed arrays

    Add testing for all types of typed arrays.
    Add testing for napi_is_arraybuffer.
    
    PR-URL: #13244
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Kunal Pathak <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    mhdawson authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    7cc6fd8 View commit details
    Browse the repository at this point in the history
  6. test: Make N-API weak-ref GC tests asynchronous

    One of the N-API weak-reference test cases already had to be made
    asynchronous to handle different behavior in a newer V8 version:
    #12864
    When porting N-API to Node-ChakraCore, we found more of the test
    cases needed similar treatment:
    nodejs/node-chakracore#246 So to make
    thes tests more robust (and avoid having differences in the test code
    for Node-ChakraCore), I am refactoring the tests in this file to
    insert a `setImmedate()` callback before every call to `gc()` and
    assertions about the effects of the GC.
    
    PR-URL: #13121
    Reviewed-By: Michael Dawson <[email protected]>
    jasongin authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    5369359 View commit details
    Browse the repository at this point in the history
  7. test: use mustNotCall() in test-stream2-objects

    Use `common.mustNotCall()` in test-stream2-objects.js to confirm that
    noop function is never invoked.
    
    PR-URL: #13249
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    ec357bf View commit details
    Browse the repository at this point in the history
  8. test: fix flaky test-fs-watchfile on macOS

    On macOS, a watcher created with fs.watch() does not necessarily
    start receiving events immediately. So it can miss a change by
    fs.writefile() if it comes very soon after the watcher is created. Fix
    test flakiness caused by this by using `setInterval()` to repeat the
    write action.
    
    PR-URL: #13252
    Fixes: #13248
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    25a05e5 View commit details
    Browse the repository at this point in the history
  9. doc: fix typo in n-api.md

    PR-URL: #13323
    Reviewed-By: Luigi Pinca <[email protected]>
    disjukr authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    243643e View commit details
    Browse the repository at this point in the history
  10. http: suppress data event if req aborted

    Re-enable test-http-abort-stream-end and put it into parallel
    category. Use system random port when calling server.listen()
    and fix eslint errors.
    
    After calling request.abort(), in order to avoid the buffered
    data to trigger the 'data' event, explicitly remove 'data' event
    listeners.
    
    PR-URL: #13260
    Reviewed-By: Brian White <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    yhwang authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    c7ebf6e View commit details
    Browse the repository at this point in the history
  11. crypto: clear err stack after ECDH::BufferToPoint

    Functions that call `ECDH::BufferToPoint` were not clearing the
    error stack on failure, so an invalid key could leave leftover
    error state and cause subsequent (unrelated) signing operations
    to fail.
    
    PR-URL: #13275
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    rfk authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    50b5f8b View commit details
    Browse the repository at this point in the history
  12. test: use mustCall() in test-readline-interface

    Use `common.mustCall()` to make sure noop function is called as
    expected.
    
    PR-URL: #13259
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    9df8e2a View commit details
    Browse the repository at this point in the history
  13. zlib: option for engine in convenience methods

    Added option to expose engine to convenience methods
    
    Refs: #8874
    PR-URL: #13089
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AlexanderOMara authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    bb77d6c View commit details
    Browse the repository at this point in the history
  14. zlib: expose amount of data read for engines

    Added bytesRead property to Zlib engines
    
    Fixes: #8874
    PR-URL: #13088
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    AlexanderOMara authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    cc3174a View commit details
    Browse the repository at this point in the history
  15. doc: fix code examples in url.md

    * Update outputs.
    * Refine spaces.
    * Restore missing part.
    
    PR-URL: #13288
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    c2d7b41 View commit details
    Browse the repository at this point in the history
  16. test: refactor test-net-server-bind

    * Use common.mustNotCall() and common.mustCall() as appropriate
    * Use block scoping
    * Move assertions out of `exit` handler and into callbacks
    * Order assert.strictEqual() args per docs
    * Remove console.log() calls
    * Move test from `parallel` to `sequential` so `common.PORT` can be used
      without conflicting with OS-provided ports in other `parallel` tests
    
    PR-URL: #13273
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    830049f View commit details
    Browse the repository at this point in the history
  17. doc: modernize and fix code examples in util.md

    * Remove useless constructor.
    
    * Use template literals.
    
    * Update code example.
      Now all arrays with just holes are outputted the same way.
      In the fixed example, it was `[ <101 empty items> ]` twice.
    
    PR-URL: #13298
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    561c14b View commit details
    Browse the repository at this point in the history
  18. doc: add tniessen to collaborators

    PR-URL: #13371
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    tniessen authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    b8b0bfb View commit details
    Browse the repository at this point in the history
  19. n-api: enable napi_wrap() to work with any object

    Previously, napi_wrap() would only work with objects created from a
    constructor returned by napi_define_class(). While the N-API team
    was aware of this limitation, it was not clearly documented and is
    likely to cause confusion anyway. It's much simpler if addons are
    allowed to use any JS object. Also, the specific behavior of the
    limitation is difficult to reimplement on other VMs that work
    differently from V8.
    
    V8 requires object internal fields to be declared on the object
    prototype (which napi_define_class() used to do). Since it's too
    late to modify the object prototype by the time napi_wrap() is
    called, napi_wrap() now inserts a new object (with the internal
    field) into the supplied object's prototype chain. Then it can be
    retrieved from there later by napi_unwrap().
    
    This change also includes improvements to the documentation for
    napi_create_external(), partly to explain how it is different from
    napi_wrap().
    
    PR-URL: #13250
    Reviewed-By: Michael Dawson <[email protected]>
    jasongin authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    a95f080 View commit details
    Browse the repository at this point in the history
  20. doc: async-hooks documentation

    Author: Thorsten Lorenz <[email protected]>
    Author: Andreas Madsen <[email protected]>
    PR-URL: #13287
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    thlorenz authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    41f0af5 View commit details
    Browse the repository at this point in the history
  21. doc: fix date for 8.0.0 changelog

    Fixes #13356
    
    PR-URL: #13360
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    MylesBorins authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    e4f3756 View commit details
    Browse the repository at this point in the history
  22. test: consolidate n-api test addons

    It takes time to build each of the addons used to test n-api.
    Consolidate a few of the smaller ones to save build time.
    
    PR-URL: #13317
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mhdawson authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    b16dd98 View commit details
    Browse the repository at this point in the history
  23. doc: remove 'you' from writing-tests.md

    Noticed this while reading through writing-tests.md today.
    As per style guide avoid the use of you, your etc.
    Rational as per: http://www2.ivcc.edu/rambo/tip_formal_writing_voice.htm
    
    PR-URL: #13319
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    mhdawson authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    eb6e9a0 View commit details
    Browse the repository at this point in the history
  24. doc: add async_hooks, n-api to _toc.md and all.md

    PR-URL: #13379
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    16605cc View commit details
    Browse the repository at this point in the history
  25. fs: promisify exists correctly

    PR-URL: #13316
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Vladimir Kurchatkin <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    dfabulich authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6e0eccd View commit details
    Browse the repository at this point in the history
  26. test: mark inspector-port-zero-cluster as flaky

    Ref: #13343
    refack authored and jasnell committed Jun 5, 2017
    2 Configuration menu
    Copy the full SHA
    2a29c07 View commit details
    Browse the repository at this point in the history
  27. doc: fix link in CHANGELOG_V8

    PR-URL: #13313
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    jamesplease authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    1729574 View commit details
    Browse the repository at this point in the history
  28. test: improve test-https-server-keep-alive-timeout

    The test is flaky under load. These changes greatly improve reliability.
    
    * Use a recurring interval to determine when the test should end rather
      than a timer.
    * Increase server timeout to 500ms to allow for events being delayed by
      system load
    
    Changing to an interval has the added benefit of reducing the test run
    time from over 2 seconds to under 1 second.
    
    Fixes: #13307
    
    PR-URL: #13312
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    e20f357 View commit details
    Browse the repository at this point in the history
  29. inspector: refactor to rename and comment methods

    Pure refactor, makes no functional changes but the renaming helped me
    see more clearly what the relationship was between methods and
    variables.
    
    * Renamed methods to reduce number of slightly different names for the
      same thing ("thread" vs "io thread", etc.).
    * Added comments where it was useful to me.
    
    PR-URL: #13321
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    7f0aa3f View commit details
    Browse the repository at this point in the history
  30. tools: be explicit about including key-id

    gpg 2.1 no longer includes the key-id by default which breaks
    the release script. This makes sure we are explicit about it.
    
    PR-URL: #13309
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    MylesBorins authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    bccda4f View commit details
    Browse the repository at this point in the history
  31. readline: clean up event listener in onNewListener

    Once the Readline interface is closed, the 'data' event listener should
    be removed.
    
    PR-URL: #13266
    Ref: #9447 (comment)
    Reviewed-By: James M Snell <[email protected]>
    gibfahn authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    81ddeb9 View commit details
    Browse the repository at this point in the history
  32. src: added newline in help message

    PR-URL: #13315
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Josh Ferge authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    8620aad View commit details
    Browse the repository at this point in the history
  33. http: describe parse err in debug output

    PR-URL: #13206
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    sam-github authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    b3c9bff View commit details
    Browse the repository at this point in the history
  34. url: more precise URLSearchParams constructor

    PR-URL: #13026
    Ref: web-platform-tests/wpt#5813
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    315c3aa View commit details
    Browse the repository at this point in the history
  35. test: improve dns internet test case

    0.0.0.0 is more common than other special ipv4 addresses, so
    it is possible that we may not get ENOTFOUND for such addresses.
    Instead, this commit uses a less common address that is reserved
    for documentation (RFC) use only.
    
    PR-URL: #13261
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    dccd1d2 View commit details
    Browse the repository at this point in the history
  36. dns: improve callback performance

    It appears that either c-ares no longer calls callbacks synchronously
    or we have since explicitly taken care of the scenarios in which
    c-ares would call callbacks synchronously (e.g. resolving an IP
    address or an empty hostname). Therefore we no longer need to have
    machinery in place to handle possible synchronous callback invocation.
    This improves performance significantly.
    
    PR-URL: #13261
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    007a033 View commit details
    Browse the repository at this point in the history
  37. dns: use faster IP address type check on results

    PR-URL: #13261
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    92de432 View commit details
    Browse the repository at this point in the history
  38. test: add known_test request with Unicode in the URL

    This test currently fails. It illustrates that Unicode in the URL does
    not arrive intact to the server, there is silent data corruption along
    the way at some point.
    
    This test is for the issue #13296.
    
    PR-URL: #13297
    Reviewed-By: James M Snell <[email protected]>
    Flimm authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    d1b39d9 View commit details
    Browse the repository at this point in the history
  39. assert: fix deepEqual RangeError: Maximum call stack size exceeded

    Fixes: #13314
    Refs: #6416
    
    This commit changes semantics of the memos cycles tracker. Before
    the change it was used to track all currently wisited nodes of an
    object tree, which is a bit shifted from its original intention of
    tracking cycles. The change brings intended semantics, by tracking
    only objects of the current branch of the object tree.
    
    PR-URL: #13318
    Fixes: #13314
    Ref: #6416
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    rmdm authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    47c9de9 View commit details
    Browse the repository at this point in the history
  40. test: check inspector support in test/inspector

    When configuring node --without-ssl or --without-inspector these test
    will fail. The underlying issue will be:
    
    Inspector support is not available with this Node.js build
    /work/nodejs/node/out/Release/node: bad option: --inspect=0
    
    This commit adds checks to see if inspector support is enabled and if
    not skips these tests.
    
    PR-URL: #13324
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    93e91a4 View commit details
    Browse the repository at this point in the history
  41. build: fix typo

    PR-URL: #13396
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    seishun authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    dcadeb4 View commit details
    Browse the repository at this point in the history
  42. util: refactor format method.Performance improved.

    Method format refactored to make it more maintenable, replacing the
    switch by a function factory, that returns the appropiated function
    given the character (d, i , f, j, s).
    
    Also, performance when formatting an string that contains several
    consecutive % symbols is improved. The test:
    `const numSamples = 10000000;
    const strPercents = '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%s%%%%%%%%%%%%%%%%%i%%%%%%%%%%%%%%%%%%%%%%%%%%';
    var s;
    console.time('Percents');
    for (let i = 0; i < numSamples; i++) {
      s = util.format(strPercents, 'test', 12);
    }
    console.timeEnd('Percents');`
    
    Original time:   28399.708ms
    After refactor:  23763.788ms
    Improved: 16%
    
    PR-URL: #12407
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    jesus-seijas-sp authored and jasnell committed Jun 5, 2017
    1 Configuration menu
    Copy the full SHA
    1bcda5e View commit details
    Browse the repository at this point in the history
  43. doc: refine spaces in example from vm.md

    PR-URL: #13334
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    3c55d1a View commit details
    Browse the repository at this point in the history
  44. deps: upgrade openssl sources to 1.0.2l

    This replaces all sources of openssl-1.0.2l.tar.gz into
    deps/openssl/openssl
    
    Fixes: #13161
    PR-URL: #13233
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    d9191f6 View commit details
    Browse the repository at this point in the history
  45. deps: copy all openssl header files to include dir

    All symlink files in deps/openssl/openssl/include/openssl/ are removed
    and replaced with real header files to avoid issues on Windows. Two
    files of opensslconf.h in crypto and include dir are replaced to refer
    config/opensslconf.h.
    
    Fixes: #13161
    PR-URL: #13233
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    dd93fa6 View commit details
    Browse the repository at this point in the history
  46. deps: fix openssl assembly error on ia32 win32

    `x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
    perhaps others) are requiring .686 .
    
    Fixes: #589
    PR-URL: #1389
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    indutny authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    db7419b View commit details
    Browse the repository at this point in the history
  47. deps: fix asm build error of openssl in x86_win32

    See
    https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html
    
    iojs needs to stop using masm and move to nasm or yasm on Win32.
    
    Fixes: #589
    PR-URL: #1389
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    783294a View commit details
    Browse the repository at this point in the history
  48. openssl: fix keypress requirement in apps on win32

    Reapply b910613 .
    
    Fixes: #589
    PR-URL: #1389
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    b5409ab View commit details
    Browse the repository at this point in the history
  49. deps: add -no_rand_screen to openssl s_client

    In openssl s_client on Windows, RAND_screen() is invoked to initialize
    random state but it takes several seconds in each connection.
    This added -no_rand_screen to openssl s_client on Windows to skip
    RAND_screen() and gets a better performance in the unit test of
    test-tls-server-verify.
    Do not enable this except to use in the unit test.
    
    Fixes: #1461
    PR-URL: #1836
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    1b8b82d View commit details
    Browse the repository at this point in the history
  50. deps: update openssl config files

    Regenerate config files for supported platforms with Makefile.
    
    Fixes: #13161
    PR-URL: #13233
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6f57554 View commit details
    Browse the repository at this point in the history
  51. deps: update openssl asm and asm_obsolete files

    Regenerate asm files with Makefile and CC=gcc and ASM=nasm where gcc
    version was 5.4.0 and nasm version was 2.11.08.
    
    Also asm files in asm_obsolete dir to support old compiler and
    assembler are regenerated without CC and ASM envs.
    
    Fixes: #13161
    PR-URL: #13233
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    035a81b View commit details
    Browse the repository at this point in the history
  52. doc: add missing make command to UPGRADING.md

    Added the missing make command in steps 6.3 when building
    asm_obsolete.
    
    Also updated the commit message to include the version nasm in
    addition to the gcc version.
    
    Fixes: #13161
    PR-URL: #13233
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    90417e8 View commit details
    Browse the repository at this point in the history
  53. doc: update who to cc for n-api

    Add info about who to @cc for issues with n-api
    
    PR-URL: #13335
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    mhdawson authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    a872399 View commit details
    Browse the repository at this point in the history
  54. build: streamline JS test suites in Makefile

    * alphabetize the JS test suites
    * Use CI_JS_SUITES variable instead of listing all tests
    
    PR-URL: #13340
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    291669e View commit details
    Browse the repository at this point in the history
  55. doc: fix code examples in zlib.md

    * Use test() instead of match() in boolean context.
    * Add spaces in code example.
    * Fix typo.
    
    PR-URL: #13342
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    1b192f9 View commit details
    Browse the repository at this point in the history
  56. test: make test-fs-watchfile reliable

    Omitting AIX from `fs.watch()` portion of this test. It works
    on AIX, but not reliably.
    
    PR-URL: #13385
    Fixes: #13377
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    406c2cd View commit details
    Browse the repository at this point in the history
  57. async_wrap: run destroy in uv_timer_t

    Calling the destroy callbacks in a uv_idle_t causes a timing issue where
    if a handle or request is closed then the class isn't deleted until
    uv_close() callbacks are called (which happens after the poll phase).
    This results in some destroy callbacks not being called just before the
    application exits. So instead switch the destroy callbacks to be called
    in a uv_timer_t with the timeout set to zero.
    
    When uv_run() is called with UV_RUN_ONCE the final operation of the
    event loop is to process all remaining timers. By setting the timeout to
    zero it results in the destroy callbacks being processed after
    uv_close() but before uv_run() returned. Processing the destroyed ids
    that were previously missed.
    
    Also, process the destroy_ids_list() in a do {} while() loop that makes
    sure the vector is empty before returning. Which also makes running
    clear() unnecessary.
    
    Fixes: #13262
    PR-URL: #13369
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    trevnorris authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6917df2 View commit details
    Browse the repository at this point in the history
  58. test: check destroy hooks are called before exit

    Verify that the destroy callback for a TCP server is called before exit
    if it is closed in another destroy callback.
    
    Fixes: #13262
    PR-URL: #13369
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    addaleax authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    c208f9d View commit details
    Browse the repository at this point in the history
  59. doc: use destructuring in code examples

    PR-URL: #13349
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    4e68760 View commit details
    Browse the repository at this point in the history
  60. doc: unify spaces in object literals

    PR-URL: #13354
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6cd5312 View commit details
    Browse the repository at this point in the history
  61. doc: add object-curly-spacing to doc/.eslintrc

    PR-URL: #13354
    Refs: http://eslint.org/docs/rules/object-curly-spacing
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    2d25e09 View commit details
    Browse the repository at this point in the history
  62. doc: add require modules in url.md

    To make the example codes in URL doc work without additional codes,
    it should have more lines to require modules.
    
    PR-URL: #13365
    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]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    watilde authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    11e428d View commit details
    Browse the repository at this point in the history
  63. test: add documentation for common.mustNotCall()

    PR-URL: #13359
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Trott authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    29f19b6 View commit details
    Browse the repository at this point in the history
  64. doc: suggest xcode-select --install

    If you don't have the full Xcode installed, the command-line tools are
    all you need.
    
    PR-URL: #13264
    Fixes: #6449
    Refs: #9215
    Reviewed-By: Luigi Pinca <[email protected]>
    gibfahn authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    52c0c47 View commit details
    Browse the repository at this point in the history
  65. test: test async-hook triggerId properties

    Add tests for checking the behavior of async_hooks.triggerId.
    It should return different ids when called in callbacks having
    different ancestry paths.
    It should return the same id when called in callbacks having
    the same ancestry path.
    
    PR-URL: #13328
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    dszakallas authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    818c935 View commit details
    Browse the repository at this point in the history
  66. doc: update who to cc for async_hooks

    Now that `async_hooks` is released, it makes sense to me to have a team
    for addressing issues with it. nodejs/diagnostics can still be
    @mentioned if there are questions about the API rather than its
    implementation.
    
    PR-URL: #13332
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    addaleax authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    837ecc0 View commit details
    Browse the repository at this point in the history
  67. async_hooks,http: fix socket reuse with Agent

    Under very specific circumstances the `http` implementation
    could be brought to crash, because the Agent did not re-assign
    the async id field properly after setting up a socket for reuse.
    
    Fixes: #13325
    PR-URL: #13348
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    addaleax authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    9db02dc View commit details
    Browse the repository at this point in the history
  68. async_hooks: use parent promise as triggerId

    async_hooks init callback will be triggered when promise newly created,
    in previous version, the parent promise which pass from chrome V8
    PromiseHook is ignored, so we can't tell the promise is a pure
    new promise or a chained promise.
    
    In this commit, we use the parent promise's id as triggerId to
    trigger the init callback.
    
    Fixes: #13302
    PR-URL: #13367
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    JiaLiPassion authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    135f4e6 View commit details
    Browse the repository at this point in the history
  69. test: improve async hooks test error messages

    Improve error messages in the async hooks tests, mostly by removing
    unhelpful `message` parameters for assertions.
    
    PR-URL: #13243
    Reviewed-By: Kunal Pathak <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    addaleax authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    8c7f9da View commit details
    Browse the repository at this point in the history
  70. url: do not pass WHATWG host to http.request

    PR-URL: #13409
    Refs: #10638
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    d4d138c View commit details
    Browse the repository at this point in the history
  71. doc: add missing backticks to doc/api/tls.md

    PR-URL: #13394
    Fixes: #13382
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    pbininda authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6c56bbd View commit details
    Browse the repository at this point in the history
  72. doc: resume a stream after pipe() and unpipe()

    Clarifies the behavior of streams when _readableState.flowing is
    false. resume() must be called explicitly for the 'data' event to
    be emitted again.
    
    Fixes: #1041
    PR-URL: #13329
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mcollina authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    641979b View commit details
    Browse the repository at this point in the history
  73. doc,stream: clarify 'data', pipe() and 'readable'

    We stated that 'data' and pipe() are preferred over 'readable'.
    This commit clarifies that 'data' and pipe() are easier to understand,
    but 'readable' might result in increased throughput.
    
    Fixes: #11587
    PR-URL: #13432
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    mcollina authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    44c8ea3 View commit details
    Browse the repository at this point in the history
  74. doc: use prefer-rest-params eslint rule in docs

    Do not promote using of `arguments`.
    
    One fragment is left as is because of history nature:
    it uses a real deprecated code from libs.
    
    Refs: http://eslint.org/docs/rules/prefer-rest-params
    Refs: https://github.com/nodejs/node/blob/99da8e8e02a874a0a044889f863c45700509d02c/lib/util.js#L1002-L1006
    
    PR-URL: #13389
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    159294d View commit details
    Browse the repository at this point in the history
  75. doc: fix nits in code examples of async_hooks.md

    * Make `require()` consistent.
    * Add missing argument.
    * Add missing `\n` in outputs.
    * Reduce string concatenations.
    * Update outputs.
    * Reword and fix a typo.
    
    PR-URL: #13400
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    vsemozhetbyt authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    414da1b View commit details
    Browse the repository at this point in the history
  76. inspector: Allows reentry when paused

    This change allows reentering the message dispatch loop when the Node is
    paused. This is necessary when the pause happened as a result of the
    message sent by a debug frontend, such as evaluating a function with a
    breakpoint inside.
    
    Fixes: #13320
    PR-URL: #13350
    Reviewed-By: James M Snell <[email protected]>
    Eugene Ostroukhov authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    376ac5f View commit details
    Browse the repository at this point in the history
  77. zlib: revert back to Functions

    Using ES6 Classes broke userland code. Revert back to functions.
    
    PR-URL: #13374
    Fixes: #13358
    Ref: #13370
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    6aeb555 View commit details
    Browse the repository at this point in the history
  78. test: rearrange inspector headers into convention

    Test guide describes a conventional layout for test headers, review
    inspector tests and reorganize to follow the convention.
    
    PR-URL: #13428
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and jasnell committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    339d220 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2017

  1. tools: fix node args passing in test runner

    This fixes a regression from 53c88fa so that special arguments
    can once again be passed to the node executable when running tests.
    
    PR-URL: #13384
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    mscdex authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    48cad9c View commit details
    Browse the repository at this point in the history
  2. events: fix potential permanent deopt

    PR-URL: #13384
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    mscdex authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    a666238 View commit details
    Browse the repository at this point in the history
  3. process: fix permanent deopt

    PR-URL: #13384
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    mscdex authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    103de0e View commit details
    Browse the repository at this point in the history
  4. net: fix permanent deopt

    PR-URL: #13384
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    mscdex authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    41eaa4b View commit details
    Browse the repository at this point in the history
  5. http: assert parser.consume argument's type

    Unchecked argument conversion in Parser::Consume crashes node
    in an slightly undesirable manner - 'unreachable code' in parser.
    
    Make sure we validate the incoming type at the earliest point.
    
    PR-URL: #12288
    Fixes: #12178
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    gireeshpunathil authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    afe91ec View commit details
    Browse the repository at this point in the history
  6. test,module: make message check MUI dependent

    PR-URL: #13393
    Fixes: #13376
    Reviewed-By: Tobias Nießen <[email protected]>
    refack authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    2e3b758 View commit details
    Browse the repository at this point in the history
  7. assert: fix deepEqual similar sets and maps bug

    This fixes a bug where deepEqual and deepStrictEqual would have
    incorrect behaviour in sets and maps containing multiple equivalent
    keys.
    
    PR-URL: #13426
    Fixes: #13347
    Refs: #12142
    Reviewed-By: Refael Ackermann <[email protected]>
    josephg authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    b8e90dd View commit details
    Browse the repository at this point in the history
  8. test: consolidate n-api test addons - part2

    It takes time to build each of the addons used to test n-api.
    Consolidate a few of the smaller ones to save build time.
    
    Get rid of one more small addon.
    
    PR-URL: #13380
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mhdawson authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    fb73070 View commit details
    Browse the repository at this point in the history
  9. test: fix build warning in addons-napi/test_object

    PR-URL: #13412
    Reviewed-By: Anna Henningsen <[email protected]>
    jasongin authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    7be1a1c View commit details
    Browse the repository at this point in the history
  10. doc: add ref to option to enable n-api

    Since its guarded in by a command line option say
    that in the docs and provide the option that needs
    to be used to enable it.
    
    PR-URL: #13406
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießn <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    mhdawson authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    e991cd7 View commit details
    Browse the repository at this point in the history
  11. src: remove process._inspectorEnbale

    This commit removes process._inspectorEnbale which was
    spelled incorrectly, and is being properly implemented
    in a separate PR.
    
    Refs: #12949
    PR-URL: #13460
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luca Maraschi <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    640101b View commit details
    Browse the repository at this point in the history
  12. tools: fix order of ESLint rules

    PR-URL: #13363
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    targos authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    01278bd View commit details
    Browse the repository at this point in the history
  13. win, doc: document per-drive current working dir

    Add note to fs.md and path.md about Windows using per-drive current
    working directory.
    
    Fixes: #9378
    PR-URL: #13330
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    bzoz authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    f47ce01 View commit details
    Browse the repository at this point in the history
  14. src: remove ' print modifier

    It is not supported on Windows so it emits:
    warning C4476: 'fprintf' :
      unknown type field character ''' in format specifier
    warning C4474: 'fprintf' :
      too many arguments passed for format string
    
    PR-URL: #13447
    Fixes: #13463
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    refack authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    791b5b5 View commit details
    Browse the repository at this point in the history
  15. errors,tty: migrate to use internal/errors.js

    PR-URL: #13240
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    200GAUTAM authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    8f2b82a View commit details
    Browse the repository at this point in the history
  16. doc: fix typo "ndapi" in n-api.md

    PR-URL: #13484
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Jamen Marz authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    e6e42c1 View commit details
    Browse the repository at this point in the history
  17. deps: upgrade npm to 5.0.3

    PR-URL: #13487
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    zkat authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    ffa7deb View commit details
    Browse the repository at this point in the history
  18. lib: "iff" changed to "if and only if"

    PR-URL: #13496
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jonsey247 authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    b3fb909 View commit details
    Browse the repository at this point in the history
  19. inspector: allow --inspect=host:port from js

    PR-URL: #13228
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    9be8b63 View commit details
    Browse the repository at this point in the history
  20. test: increase coverage of async_hooks

    PR-URL: #13336
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    DavidCai1111 authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    68e06e6 View commit details
    Browse the repository at this point in the history
  21. doc: Add URL argument with http/https request

    PR-URL: #13405
    Fixes: #13383
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    vladimir-trifonov authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    a117bcc View commit details
    Browse the repository at this point in the history
  22. url: update IDNA handling

    Remove custom tests for invalid IDNA domains in url-idna.js in favor of
    the more comprehensive official set.
    
    PR-URL: #13362
    Refs: whatwg/url#309
    Refs: web-platform-tests/wpt#5976
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    TimothyGu authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    ba817d3 View commit details
    Browse the repository at this point in the history
  23. fs: replace a bind() with a top-level function

    #11225 introduce an unnecessary
    bind() when closing a stream. This PR replaces that bind() with a
    top-level function.
    
    PR-URL: #13474
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    mcollina authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    5644dd7 View commit details
    Browse the repository at this point in the history
  24. test,fs: test fs.watch for filename

    PR-URL: #13411
    Refs: #13385
    Refs: #13248
    Refs: #13377
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    658560e View commit details
    Browse the repository at this point in the history
  25. test: validate full error messages

    test: changed test2 of test-vm-timeout.js so that entire error message
          would be matched in assert.throw.
    
          Before test 2 of test-vm-timeout.js would match any RangeError,
          now it looks specifically for the error message
          "RangeError: timeout must be a positive number"
    
    test: changed test 3 of test-vm-timeout.js so that entire error message
          would be matched in assert.throw.
    
          Before test 3 of test-vm-timeout.js would match any RangeError,
          now it looks specifically for the error message
          "RangeError: timeout must be a positive number"
    
    PR-URL: #13453
    Refs: #13454
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    aniketshukla authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    757ae52 View commit details
    Browse the repository at this point in the history
  26. doc: update linux supported versions

    The libuv 1.12.0 update bumped the minimum supported version
    of linux + glibc. This commit updates BUILDING.md to reflect
    the new values.
    
    PR-URL: #13306
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    26e5b64 View commit details
    Browse the repository at this point in the history
  27. gitignore: add libuv book and GitHub template

    PR-URL: #13306
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    0caa09d View commit details
    Browse the repository at this point in the history
  28. tools, test: update test-npm-package paths

    Makes the same changes as
    9946173
    to update the test runner for npm5.
    
    PR-URL: #13441
    Refs: #12936
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    gibfahn authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    61eb085 View commit details
    Browse the repository at this point in the history
  29. test: pass env vars through to test-benchmark-http

    Allows NODE_TEST_DIR to be set (necessary to avoid path length issues
    with common.PIPE).
    
    PR-URL: #13390
    Refs: #12708 (comment)
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    gibfahn authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    54ae7d8 View commit details
    Browse the repository at this point in the history
  30. build: use existing variable to reduce complexity

    PR-URL: #2883
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    brycebaril authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    65f22e4 View commit details
    Browse the repository at this point in the history
  31. http: overridable keep-alive behavior of Agent

    Introduce two overridable `Agent` methods:
    
    * `keepSocketAlive(socket)`
    * `reuseSocket(socket, req)`
    
    These methods can be overridden by particular `Agent` class child to
    make keep-alive behavior customizable.
    
    Motivation: destroy persisted sockets after some configurable timeout.
    It is very non-trivial to do it with available primitives. Such program
    will most likely need to poke with undocumented events and methods of
    `Agent`. With introduced API such behavior is easy to implement.
    
    PR-URL: #13005
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    indutny authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    8efaa55 View commit details
    Browse the repository at this point in the history
  32. test: refactor test-dgram-oob-buffer

    * Change common.noop to common.mustNotCall() to verify callback is not
      invoked.
    * Add destructuring assignment for clarity. Yeah, clarity. That's why.
    
    PR-URL: #13443
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    71a3d2c View commit details
    Browse the repository at this point in the history
  33. lib: return this from net.Socket.end()

    PR-URL: #13481
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    sam-github authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    4b2c756 View commit details
    Browse the repository at this point in the history
  34. fs: expose Stats times as Numbers

    PR-URL: #13173
    Fixes: #8276
    Refs: #12607
    Refs: #12818
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    refack authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    c756efb View commit details
    Browse the repository at this point in the history
  35. deps: upgrade libuv to 1.12.0

    Fixes: #12853
    Fixes: #854
    PR-URL: #13306
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig authored and jasnell committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    968596e View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2017

  1. 2017-05-07, Version 8.1.0 (Current)

    * **Async Hooks**
      * When one `Promise` leads to the creation of a new `Promise`, the parent
        `Promise` will be identified as the trigger
        [[`135f4e6643`](135f4e6643)]
        [#13367](#13367).
    * **Dependencies**
      * libuv has been updated to 1.12.0
        [[`968596ec77`](968596ec77)]
        [#13306](#13306).
      * npm has been updated to 5.0.3
        [[`ffa7debd7a`](ffa7debd7a)]
        [#13487](#13487).
    * **File system**
      * The `fs.exists()` function now works correctly with `util.promisify()`
        [[`6e0eccd7a1`](6e0eccd7a1)]
        [#13316](#13316).
      * fs.Stats times are now also available as numbers
        [[`c756efb25a`](c756efb25a)]
        [#13173](#13173).
    * **Inspector**
      * It is now possible to bind to a random port using `--inspect=0`
        [[`cc6ec2fb27`](cc6ec2fb27)]
        [#5025](#5025).
    * **Zlib**
      * A regression in the Zlib module that made it impossible to properly
        subclasses `zlib.Deflate` and other Zlib classes has been fixed.
        [[`6aeb555cc4`](6aeb555cc4)]
        [#13374](#13374).
    jasnell authored and rvagg committed Jun 8, 2017
    Configuration menu
    Copy the full SHA
    f6fc46e View commit details
    Browse the repository at this point in the history
  2. Working on 8.1.1

    PR-URL: #13483
    jasnell authored and rvagg committed Jun 8, 2017
    Configuration menu
    Copy the full SHA
    5e7c8da View commit details
    Browse the repository at this point in the history