Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Merge nodejs/node master #245

Merged
merged 255 commits into from
May 18, 2017
Merged

Merge nodejs/node master #245

merged 255 commits into from
May 18, 2017
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Apr 27, 2017

  1. test: dynamic port in parallel regress tests

    Removed common.PORT from test-regress-GH-5051 and
    test-regress-GH-5727 in order to eliminate the possibility
    of port collision.
    
    Refs: nodejs/node#12376
    PR-URL: nodejs/node#12639
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Sebastian Plesciuc authored and addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    e927809 View commit details
    Browse the repository at this point in the history
  2. 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: nodejs/node#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 addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    5bb06e8 View commit details
    Browse the repository at this point in the history
  3. test: use common.js to check platform

    PR-URL: nodejs/node#12629
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    krydos authored and addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    f6b1eb2 View commit details
    Browse the repository at this point in the history
  4. test: fixup test-http-hostname-typechecking

    This test would currently create HTTP requests to localhost:80
    and would time out on machines that actually had an server listening
    there.
    
    To address that, `end()` the requests that are generated.
    
    PR-URL: nodejs/node#12627
    Ref: nodejs/node#12494
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    28f535a View commit details
    Browse the repository at this point in the history
  5. test: dynamic port in dgram tests

    Removed common.PORT from test-dgram-close-in-listening,
    test-dgram-close-is-not-callback, test-dgram-close,
    test-dgram-exclusive-implicit-bind and test-dgram-oob-buffer
    in order to eliminate the possibility of port collision.
    
    Refs: nodejs/node#12376
    PR-URL: nodejs/node#12623
    Reviewed-By: Anna Henningsen <[email protected]>
    Sebastian Plesciuc authored and addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    d289678 View commit details
    Browse the repository at this point in the history
  6. build: use do_not_edit variable where possible

    We should not use hardcoded string to warn users about
    file was generated by configure script. Since we already
    have do_not_edit variable we can use it
    
    PR-URL: nodejs/node#12610
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    krydos authored and addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    78e0063 View commit details
    Browse the repository at this point in the history
  7. test: cleanup test-util-inherits.js

    Replaced constructor with regular expression for assert.throw().
    
    PR-URL: nodejs/node#12602
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    RobotMermaid authored and addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    2055fd3 View commit details
    Browse the repository at this point in the history
  8. test: introduce common.crashOnUnhandledRejection

    Ref: nodejs/node#12442
    PR-URL: nodejs/node#12489
    Reviewed-By: Matthew Loring <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    dca0815 View commit details
    Browse the repository at this point in the history
  9. src: expose node::AddPromiseHook

    Expose `node::AddPromiseHook`, which wraps V8’s `SetPromiseHook` in
    a way that allows multiple hooks to be set up.
    
    PR-URL: nodejs/node#12489
    Reviewed-By: Matthew Loring <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    e5a25cb View commit details
    Browse the repository at this point in the history
  10. domain: support promises

    Fixes: nodejs/node#10724
    PR-URL: nodejs/node#12489
    Reviewed-By: Matthew Loring <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    84dabe8 View commit details
    Browse the repository at this point in the history
  11. src: fix incorrect macro comment

    Commit de168b4 ("src: guard
    bundled_ca/openssl_ca with HAVE_OPENSSL") included an incorrect end
    macro comment which this commit fixes.
    
    PR-URL: nodejs/node#12688
    
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    892ce06 View commit details
    Browse the repository at this point in the history
  12. n-api: Reference and external tests

     - Add a test project to addons-napi that covers the
       N-API reference and external APIs
     - Fix a bug in napi_typeof that was found by the new tests
    
    PR-URL: nodejs/node#12551
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasongin authored and mhdawson committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    4271254 View commit details
    Browse the repository at this point in the history
  13. errors: use lazy assert to avoid issues on startup

    Use of assert must be lazy to allow errors to be used early
    before the process is completely set up
    
    PR-URL: nodejs/node#11300
    Ref: nodejs/node#11273
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasnell committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    f0b7025 View commit details
    Browse the repository at this point in the history
  14. errors, child_process: migrate to using internal/errors

    PR-URL: nodejs/node#11300
    Ref: nodejs/node#11273
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasnell committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    7632761 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2017

  1. test: chdir before running test-cli-node-options

    When test-cli-node-options is run it uses the --trace-events-enabled
    option which generates a file named node_trace.1.log. This commit
    changes the working directory to the test tmp directory to avoid this
    file being created in the project root.
    
    PR-URL: nodejs/node#12660
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    danbev committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    a4fd9e5 View commit details
    Browse the repository at this point in the history
  2. n-api: Sync with back-compat changes

    Background: To enable N-API support for node versions back to v4, the
    N-API code can also be built as an external addon. To make maintenance
    easier, a single codebase needs to support both built-in and external
    scenarios, along with Node versions >= 4 (and corresponding V8
    versions).
    
    This change includes several minor fixes to avoid using node
    internal APIs and support older V8 versions:
      - Expand node::arraysize
      - In the CHECK_ENV() macro, return an error code instead of calling
        node::FatalError(). This is more consistent with how other invalid
        arguments to N-API functions are handled.
      - In v8impl::SetterCallbackWrapper::SetReturnValue(), do nothing
        instead of calling node::FatalError(). This is more consistent
        with JavaScript setter callbacks, where any returned value is
        silently ignored.
      - When queueing async work items, get the uv default loop instead of
        getting the loop from node::Environment::GetCurrent(). Currently
        that returns the same loop anyway. If/when node supports multiple
        environments, it should have a public API for getting the
        environment & event loop, and we can update this implementation
        then.
      - Use v8::Maybe::FromJust() instead of the newer alias ToChecked()
    
    PR-URL: nodejs/node#12674
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasongin authored and mhdawson committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    972bfe1 View commit details
    Browse the repository at this point in the history
  3. test: use common.mustCall in test-https-strict

    PR-URL: nodejs/node#12668
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    weewey authored and jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    f11d4a1 View commit details
    Browse the repository at this point in the history
  4. doc: replace uses of you and other style nits

    Replace uses of the pronouns `you` and `your` throughout
    the docs + other minor style nits
    
    PR-URL: nodejs/node#12673
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    71f22c8 View commit details
    Browse the repository at this point in the history
  5. test: remove AIX guard in fs-options-immutable

    The fs watch test was not run on AIX till now because of the known
    issue, nodejs/node#5085. Now that it is
    completed, this guard can be removed.
    
    PR-URL: nodejs/node#12687
    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]>
    Reviewed-By: Brian White <[email protected]>
    thefourtheye authored and gibfahn committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    b16869c View commit details
    Browse the repository at this point in the history
  6. test: remove eslint comments

    This commit refactors test-whatwg-url-tojson.js to remove
    ESLint comments.
    
    PR-URL: nodejs/node#12669
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    8d1f15b View commit details
    Browse the repository at this point in the history
  7. test: remove eslint comments from test-util.js

    PR-URL: nodejs/node#12669
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    b2c7a51 View commit details
    Browse the repository at this point in the history
  8. doc: clarify arch support for power platforms

    Add specifics as to the level of hardware supported for
    power platforms.  Power 8 is the first processor level to
    support ppc little endian.  Set the minimum level
    for AIX to Power7 for Node version 8 and later.
    This will allow the potential to leverage new instructions
    and optimizations going forward.  We have spoken to the
    AIX team and they agree this makes sense. Earlier processor
    levels will continue to be supported for version 4.x and 6.x
    on AIX.
    
    PR-URL: nodejs/node#12679
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    mhdawson authored and gibfahn committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    71911be View commit details
    Browse the repository at this point in the history
  9. doc: document url.domainTo* methods separately

    PR-URL: nodejs/node#12683
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    TimothyGu authored and jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    3a0058c View commit details
    Browse the repository at this point in the history
  10. doc: add Added-in metadata for WHATWG URL

    PR-URL: nodejs/node#12683
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    TimothyGu authored and jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    9d4bb55 View commit details
    Browse the repository at this point in the history
  11. doc: Add initial documentation for N-API

    Add the initial documentation for the N-API
    
    This PR is a result of work in the abi-stable-node repo:
    https://github.com/nodejs/abi-stable-node/tree/doc,
    with this PR being the cumulative work on the documentation
    sections in that repo with the following contributors
    in alphabetical order:
    
    Author: Arunesh Chandra <[email protected]>
    Author: Gabriel Schulhof <[email protected]>
    Author: Hitesh Kanwathirtha <[email protected]>
    Author: Jason Ginchereau <[email protected]>
    Author: Michael Dawson <[email protected]>
    Author: Sampson Gao <[email protected]>
    Author: Taylor Woll <[email protected]>
    
    PR-URL: nodejs/node#12549
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mhdawson committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    deb9622 View commit details
    Browse the repository at this point in the history
  12. benchmark: add benchmark for v8.getHeap*Statistics

    PR-URL: nodejs/node#12681
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    bed4612 View commit details
    Browse the repository at this point in the history
  13. v8: refactor struture of v8 module

    Use the more efficient module.exports = {} pattern,
    restructure imports from bindings, requires.
    
    PR-URL: nodejs/node#12681
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    jasnell committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    1052383 View commit details
    Browse the repository at this point in the history
  14. test: add relative path to accommodate limit

    Found that libuv had a path character limit of 108.
    
    Used path.relative() to set prefix with relative path.
    
    Also added comments explaining the use of a relative path.
    
    PR-URL: nodejs/node#12601
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    coreybeaumont authored and Trott committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    0101a8f View commit details
    Browse the repository at this point in the history
  15. doc: fix examples in repl.md

    * Update an example according to an actual REPL session.
    * Replace an arrow function with a common function to hold `this`.
    
    PR-URL: nodejs/node#12684
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    8092fb0 View commit details
    Browse the repository at this point in the history
  16. doc: update example in repl.md

    Delete unused method call.
    
    PR-URL: nodejs/node#12685
    Refs: nodejs/node#6171
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    d8f8096 View commit details
    Browse the repository at this point in the history
  17. benchmark: terminate child process on Windows

    test-benchmark-child-process failures reveal that
    child-process-exec-stdout benchmark sometimes leaves around a stray
    yes.exe process. Add code to terminate the process.
    
    PR-URL: nodejs/node#12658
    Ref: nodejs/node#12560
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    a1a54ca View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2017

  1. test: add hasCrypto check to test-cli-node-options

    Currently when configure --without-ssl the test will throw the following
    error:
    bad option: --use-openssl-ca
    
    This commit checks if crypto was enabled and skips the crypto related
    tests if that is the case.
    
    PR-URL: nodejs/node#12692
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>/
    danbev committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    427cd29 View commit details
    Browse the repository at this point in the history
  2. test: cleanup handles in test_environment

    The test fixtures create multiple node::Environments that all use the
    uv_default_loop(), and since the test does not clean up the handles
    created by Environment::Start(), the default libuv loop structure
    contains dangling pointers after the first Environment is freed,
    which then means that creating new handles leads to memory corruption.
    
    PR-URL: nodejs/node#12621
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    d5db4d2 View commit details
    Browse the repository at this point in the history
  3. src: remove debugger dead code

    PR-URL: nodejs/node#12621
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    targos authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    719247f View commit details
    Browse the repository at this point in the history
  4. test,doc: document crashOnUnhandledRejection()

    Add documentation for `common.crashOnUnhandledRejection()`.
    
    Ref: https://github.com/nodejs/node/pull/12489/files/a9c2078a60bc3012dc6156df19772697a56a2517#r113737423
    PR-URL: nodejs/node#12699
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    3d87eca View commit details
    Browse the repository at this point in the history
  5. test: improve test-tcp-wrap-listen

    PR-URL: nodejs/node#12599
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    QueueHefner authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    7c238be View commit details
    Browse the repository at this point in the history
  6. url: move to module.exports = {} pattern

    PR-URL: nodejs/node#12717
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]
    jasnell committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    b331ba6 View commit details
    Browse the repository at this point in the history
  7. url: refactor binding imports in internal/url

    PR-URL: nodejs/node#12717
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]
    jasnell committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    97ec72b View commit details
    Browse the repository at this point in the history
  8. v8: fix gcc 7 build errors

    Porting nodejs/node#12392 to master
    
    Ref: nodejs/node#12392
    Fixes: nodejs/node#10388
    PR-URL: nodejs/node#12676
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Zuzana Svetlikova authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    b07e1a8 View commit details
    Browse the repository at this point in the history
  9. doc: fixup the collaborators list

    * Add the personal pronoun for @aqrln.
    * Fix incorrectly ordered @lucamaraschi entry.
    
    PR-URL: nodejs/node#12750
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    aqrln committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    765be6c View commit details
    Browse the repository at this point in the history
  10. test: support multiple warnings in checkWarning

    This allows the common.checkWarning() test method to accept a map of
    warning names to description(s), to allow testing code that generates
    multiple types of warnings.
    
    PR-URL: nodejs/node#11640
    Reviewed-By: Anna Henningsen <[email protected]>
    apexskier authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    74f61e8 View commit details
    Browse the repository at this point in the history
  11. process: cast promise rejection reason to string

    The unhandled promise rejection warning uses a template literal and
    prints the reason a promise was rejected. If rejecting with a symbol,
    the symbol failed to convert to a string and the process crashed. Now,
    symbols are casted to strings and the process does not crash.
    
    Fixes: nodejs/node#11637
    PR-URL: nodejs/node#11640
    Reviewed-By: Anna Henningsen <[email protected]>
    apexskier authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    a3132b0 View commit details
    Browse the repository at this point in the history
  12. test: add inspect-brk option to cluster module

    Ensure that cluster interoperates with the --inspect-brk option.
    This does not test for --debug-brk.
    
    Fixes: nodejs/node#11420
    PR-URL: nodejs/node#12503
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    dave-k authored and addaleax committed Apr 29, 2017
    Configuration menu
    Copy the full SHA
    0324ac6 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2017

  1. test: replace indexOf with includes

    Start the transition to Array.prototype.includes() and
    String.prototype.includes().  This commit refactors most of the
    comparisons of Array.prototype.indexOf() and String.prototype.indexOf()
    return values with -1 to the former methods in tests.
    
    PR-URL: nodejs/node#12604
    Refs: nodejs/node#12586
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    gwer authored and aqrln committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    0142276 View commit details
    Browse the repository at this point in the history
  2. test: fix test filenames

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    91ccea6 View commit details
    Browse the repository at this point in the history
  3. build: add target for checking for perm deopts

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    7a5bac5 View commit details
    Browse the repository at this point in the history
  4. http: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    e283319 View commit details
    Browse the repository at this point in the history
  5. stream: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    e9c02c6 View commit details
    Browse the repository at this point in the history
  6. fs: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    e8a4290 View commit details
    Browse the repository at this point in the history
  7. cluster: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    033ea99 View commit details
    Browse the repository at this point in the history
  8. process: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    a641b7c View commit details
    Browse the repository at this point in the history
  9. url: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    8491c70 View commit details
    Browse the repository at this point in the history
  10. util: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    d5925af View commit details
    Browse the repository at this point in the history
  11. net: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    3c098ee View commit details
    Browse the repository at this point in the history
  12. readline: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    4484e8f View commit details
    Browse the repository at this point in the history
  13. repl: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    b45abfd View commit details
    Browse the repository at this point in the history
  14. test: fix permanent deoptimizations

    PR-URL: nodejs/node#12456
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    b6da225 View commit details
    Browse the repository at this point in the history
  15. doc: fix formatting of TOC

    PR-URL: nodejs/node#12731
    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: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    refack authored and gibfahn committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    aa3eab0 View commit details
    Browse the repository at this point in the history
  16. test: move test to sequential for reliability

    test-https-set-timeout-server fails under load. Move it to sequential so
    it is not competing with other tests.
    
    PR-URL: nodejs/node#12704
    Fixes: nodejs/node#10130
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott committed Apr 30, 2017
    Configuration menu
    Copy the full SHA
    0833d31 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2017

  1. deps: cherry-pick bfae9db from upstream v8

    Original commit message:
    
        Update postmortem metadata generator.
    
        Add PropertyDetails::AttributesField +
        PropertyDetails::LocationField.
    
        Review-Url: https://codereview.chromium.org/2842843004
        Cr-Commit-Position: refs/heads/master@{#44889}
    
    PR-URL: nodejs/node#12722
    Refs: nodejs/llnode#81
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bnoordhuis committed May 1, 2017
    Configuration menu
    Copy the full SHA
    6ed791c View commit details
    Browse the repository at this point in the history
  2. src: support domains with empty labels

    Follow the spec of domainToASCII/domainToUnicode in whatwg, and
    synchronise WPT url test data.
    
    Refs: web-platform-tests/wpt#5397
    PR-URL: nodejs/node#12707
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    watilde committed May 1, 2017
    Configuration menu
    Copy the full SHA
    0f58d3c View commit details
    Browse the repository at this point in the history
  3. process: refactor internal/process.js export style

    PR-URL: nodejs/node#12644
    Reviewed-By: Brian White <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    579ff2a View commit details
    Browse the repository at this point in the history
  4. module: refactor internal/module export style

    PR-URL: nodejs/node#12644
    Reviewed-By: Brian White <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    ed0716f View commit details
    Browse the repository at this point in the history
  5. streams: refactor BufferList into ES6 class

    PR-URL: nodejs/node#12644
    Reviewed-By: Brian White <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    e2199e0 View commit details
    Browse the repository at this point in the history
  6. fs: simplify constant decls

    PR-URL: nodejs/node#12644
    Reviewed-By: Brian White <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    08809f2 View commit details
    Browse the repository at this point in the history
  7. freelist: simplify export

    PR-URL: nodejs/node#12644
    Reviewed-By: Brian White <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    ea9eed5 View commit details
    Browse the repository at this point in the history
  8. os: refactor os structure, add Symbol.toPrimitive

    Refactor the structure of the os module to use more efficient
    module.exports = {} pattern.
    
    Add Symbol.toPrimitive support to os methods that return simple
    primitives. This is a minor tweak that makes using these slightly
    more friendly when doing things like:
    
    ```js
    var m = `${os.tmpdir}/foo`
    ```
    
    PR-URL: nodejs/node#12654
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    473572e View commit details
    Browse the repository at this point in the history
  9. test: remove extra console output from test-os.js

    PR-URL: nodejs/node#12654
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    23fc082 View commit details
    Browse the repository at this point in the history
  10. process: add optional detail to process emitWarning

    Adds a new method signature variant for process.emitWarning()
    that accepts an options object. The options object may include
    a new `detail` option that allows additional detail text to be
    associated with the warning. By default, this additional text
    will be printed to stderr along with the warning, and included
    on the Warning Error object using the `.detail` property.
    
    e.g.
    
    ```js
    process.emitWarning('A message', {
      code: 'WARNING123',
      detail: 'This is additional detail'
    });
    // Emits:
    // (node {pid}) [WARNING123] Warning: A message
    // This is additional detail
    ```
    
    PR-URL: nodejs/node#12725
    Reviewed-By: Colin Ihrig <[email protected]>
    jasnell committed May 1, 2017
    Configuration menu
    Copy the full SHA
    dd20e68 View commit details
    Browse the repository at this point in the history
  11. test,lib,doc: use function declarations

    Replace function expressions with function declarations in preparation
    for a lint rule requiring function declarations.
    
    PR-URL: nodejs/node#12711
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Trott committed May 1, 2017
    Configuration menu
    Copy the full SHA
    a180259 View commit details
    Browse the repository at this point in the history
  12. tools: require function declarations

    Except for arrow functions, require function declarations instead of
    function expressions via linting. This is the predominant style in our
    code base (77 instances of expressions to 2344 instances of
    declarations).
    
    PR-URL: nodejs/node#12711
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Trott committed May 1, 2017
    Configuration menu
    Copy the full SHA
    aea7269 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2017

  1. tools: ignore node_trace.*.log

    `node_trace.*.log` files are generated by `NodeTraceWriter`.
    
    Refs: nodejs/node#9304
    PR-URL: nodejs/node#12754
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    watilde committed May 2, 2017
    Configuration menu
    Copy the full SHA
    595d4ec View commit details
    Browse the repository at this point in the history
  2. test: skipIfInspectorDisabled cluster-inspect-brk

    When configured --without-ssl the inspect-brk option will not be
    available and the process will exit with a exit value of 9 "Invalid
    Argument/Bad option".
    
    This commit adds a skipIfInspectorDisabled check since --without-ssl
    implies that no inspector support is build as well.
    
    PR-URL: nodejs/node#12757
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed May 2, 2017
    Configuration menu
    Copy the full SHA
    10ccf56 View commit details
    Browse the repository at this point in the history
  3. Revert "test: remove eslint comments"

    This reverts commit 8d1f15b
    to preserve the original WPT code.
    
    PR-URL: nodejs/node#12743
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung committed May 2, 2017
    Configuration menu
    Copy the full SHA
    9f7b549 View commit details
    Browse the repository at this point in the history
  4. 2017-05-02, Version 4.8.3 'Argon' (Maintenance)

    Notable Changes:
    
    * module:
      - The module loading global fallback to the Node executable's
        directory now works correctly on Windows.
        (Richard Lau) nodejs/node#9283
    * src:
      - fix base64 decoding in rare edgecase
        (Nikolai Vavilov) nodejs/node#11995
    * tls:
      - fix rare segmentation faults when using TLS
       * (Trevor Norris) nodejs/node#11947
       * (Ben Noordhuis) nodejs/node#11898
       * (jBarz) nodejs/node#11776
    
    PR-URL: nodejs/node#12499
    MylesBorins committed May 2, 2017
    Configuration menu
    Copy the full SHA
    9802d46 View commit details
    Browse the repository at this point in the history
  5. 2017-05-02, Version 6.10.3 'Boron' (LTS)

    Notable Changes:
    
    * module:
      - The module loading global fallback to the Node executable's
        directory now works correctly on Windows.
        (Richard Lau) nodejs/node#9283
    * src:
      - fix base64 decoding in rare edgecase
        (Nikolai Vavilov) nodejs/node#11995
    * tls:
      - fix rare segmentation faults when using TLS
       * (Trevor Norris) nodejs/node#11947
       * (Ben Noordhuis) nodejs/node#11898
       * (jBarz) nodejs/node#11776
    
    PR-URL: nodejs/node#12497
    MylesBorins committed May 2, 2017
    Configuration menu
    Copy the full SHA
    20e27dd View commit details
    Browse the repository at this point in the history
  6. buffer: remove pointless C++ utility methods

    PR-URL: nodejs/node#12760
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and jasnell committed May 2, 2017
    Configuration menu
    Copy the full SHA
    9d723e8 View commit details
    Browse the repository at this point in the history
  7. cluster: remove debug arg handling

    --debug and --debug-brk are no longer valid flags so remove special
    handling for them in the cluster module. Even if they are restored, they
    will be aliases for inspect and will not use the legacy debug protocol,
    so the special handling will not be needed.
    
    PR-URL: nodejs/node#12738
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Trott committed May 2, 2017
    Configuration menu
    Copy the full SHA
    dc3bbb4 View commit details
    Browse the repository at this point in the history
  8. repl: fix /dev/null history file regression

    This fixes a regression from 83887f35fa where ftruncate() fails on
    a file symlinked to /dev/null.
    
    PR-URL: nodejs/node#12762
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex committed May 2, 2017
    Configuration menu
    Copy the full SHA
    c20e87a View commit details
    Browse the repository at this point in the history
  9. test: minor fixes to test-module-loading.js

    Use block scope for local variables only used in a small code block.
    Fixed inverse arguments in some usages of Assert.strictEqual.
    
    PR-URL: nodejs/node#12728
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    ywalterh authored and Trott committed May 2, 2017
    Configuration menu
    Copy the full SHA
    133fb0c View commit details
    Browse the repository at this point in the history

Commits on May 3, 2017

  1. test: increase coverage of buffer

    Increase coverage of lib/buffer.js.
    
    PR-URL: nodejs/node#12714
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    DavidCai1111 committed May 3, 2017
    Configuration menu
    Copy the full SHA
    04796ee View commit details
    Browse the repository at this point in the history
  2. 2017-05-02, Version 7.10.0 (Current)

    Notable changes:
    
    * **crypto**:
      - add randomFill and randomFillSync (Evan Lucas)
        nodejs/node#10209
    * **meta**: Added new collaborators
      - add lucamaraschi to collaborators (Luca Maraschi)
        nodejs/node#12538
      - add DavidCai1993 to collaborators (David Cai)
        nodejs/node#12435
      - add jkrems to collaborators (Jan Krems)
        nodejs/node#12427
      - add AnnaMag to collaborators (AnnaMag)
        nodejs/node#12414
    * **process**:
      - fix crash when Promise rejection is a Symbol (Cameron Little)
        nodejs/node#11640
    * **url**:
      - make WHATWG URL more spec compliant (Timothy Gu)
        nodejs/node#12507
    * **v8**:
      - fix stack overflow in recursive method (Ben Noordhuis)
        nodejs/node#12460
      - fix build errors with g++ 7 (Ben Noordhuis)
        nodejs/node#12392
    
    PR-URL: nodejs/node#12775
    evanlucas committed May 3, 2017
    Configuration menu
    Copy the full SHA
    871fb5a View commit details
    Browse the repository at this point in the history
  3. n-api: remove unnecessary try-catch bracket from certain APIs

    These APIs do not need a try-catch around their body, because no
    exceptions are thrown in their implementation:
    - `napi_is_array()`
    - `napi_get_value_string_latin1()`
    - `napi_get_value_string_utf8()`
    - `napi_get_value_string_utf16()`
    - `napi_get_value_external()`
    - `napi_is_buffer()`
    - `napi_is_arraybuffer()`
    - `napi_get_arraybuffer_info()`
    - `napi_is_typedarray()`
    - `napi_get_typedarray_info()`
    
    Fixes: nodejs/abi-stable-node#238
    PR-URL: nodejs/node#12705
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Gabriel Schulhof authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    cd32b77 View commit details
    Browse the repository at this point in the history
  4. stream: remove unnecessary parameter

    Delete invalid parameter.
    
    Fixes: nodejs/node#8153
    PR-URL: nodejs/node#12767
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Leo authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    d6a6bcd View commit details
    Browse the repository at this point in the history
  5. build: add static option to vcbuild.bat

    Passes --enable-static to ./configure.
    
    PR-URL: nodejs/node#12764
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Tony Rice authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    e488857 View commit details
    Browse the repository at this point in the history
  6. node: add missing option to --help output

    PR-URL: nodejs/node#12763
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    krydos authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    896be83 View commit details
    Browse the repository at this point in the history
  7. doc: document vm timeout option perf impact

    Mention that the `timeout` option has a noticeable performance impact.
    
    Fixes: nodejs/node#10453
    PR-URL: nodejs/node#12751
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    2bf461e View commit details
    Browse the repository at this point in the history
  8. http: fix first body chunk fast case for UTF-16

    `http.OutgoingMessage` tried to send the first chunk together
    with the headers by concatenating them together as a string, but the
    list of encodings for which that works was incorrect.
    
    Change it from a blacklist to a whitelist.
    
    Fixes: nodejs/node#11788
    PR-URL: nodejs/node#12747
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    55c95b1 View commit details
    Browse the repository at this point in the history
  9. stream: fix y.pipe(x)+y.pipe(x)+y.unpipe(x)

    Fix the uncommon situation when a readable stream is piped twice into
    the same destination stream, and then unpiped once.
    
    Previously, the `unpipe` event handlers weren’t able to tell whether
    they were corresponding to the “right” conceptual pipe that was being
    removed; this fixes this by adding a counter to the `unpipe` event
    handler and only removing a single piping destination at most.
    
    Fixes: nodejs/node#12718
    PR-URL: nodejs/node#12746
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    6993eb0 View commit details
    Browse the repository at this point in the history
  10. src: add --napi-modules to whitelist

    Add --napi-modules to whitelist for NODE_OPTIONS
    as its needed so that we can run the tests that
    come along with native modules.
    
    PR-URL: nodejs/node#12733
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    mhdawson authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    21653b6 View commit details
    Browse the repository at this point in the history
  11. test: fix warning in n-api reference test

    Add cast to avoid warning during build of addon.
    
    PR-URL: nodejs/node#12730
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    mhdawson authored and addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    8aca66a View commit details
    Browse the repository at this point in the history
  12. test: increase readline coverage

    PR-URL: nodejs/node#12761
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    b2ab41e View commit details
    Browse the repository at this point in the history
  13. src: turn buffer type-CHECK into exception

    Turn a `CHECK()` that could be brought to fail using public APIs
    into throwing an error.
    
    Fixes: nodejs/node#12152
    PR-URL: nodejs/node#12753
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    9990be2 View commit details
    Browse the repository at this point in the history
  14. crypto: throw proper errors if out enc is UTF-16

    Throw `Error`s instead of hard crashing when the `.digest()` output
    encoding is UTF-16.
    
    Fixes: nodejs/node#9817
    PR-URL: nodejs/node#12752
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    6c2daf0 View commit details
    Browse the repository at this point in the history
  15. src: do proper StringBytes error handling

    - Return `MaybeLocal`s from `StringBytes::Encode`
    - Add an `error` out parameter to pass JS exceptions to the callers
      (instead of directly throwing)
    - Simplify some of the string generation methods in `string_bytes.cc`
      by unifying the `EXTERN_APEX` logic
    - Reduce usage of deprecated V8 APIs.
    - Remove error handling logic from JS, the `buffer.*Slice()` methods
      now throw errors themselves.
    - Left TODO comments for future semver-major error message
      improvements.
    
    This paves the way for better error messages coming out of the
    StringBytes methods.
    
    Ref: nodejs/node#3175
    PR-URL: nodejs/node#12765
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    addaleax committed May 3, 2017
    Configuration menu
    Copy the full SHA
    d56a7e6 View commit details
    Browse the repository at this point in the history
  16. doc: deprecate vm.runInDebugContext

    Docs-only deprecation for v8.0.0.
    Runtime deprecation planned for v9.0.0.
    Removal planned for v10.0.0.
    
    PR-URL: nodejs/node#12243
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joshgav committed May 3, 2017
    Configuration menu
    Copy the full SHA
    eb535c5 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2017

  1. test: move WPT to its own testing module

    This is first in a hoped-for series of moves away from a monolithic
    common.js that is loaded for every test and towards a more modular
    approach. (In the end, common.js will hopefully contain checks for
    variables leaking into the global space and perhaps some of the more
    ubiquitous functions like common.mustCall().)
    
    Move the WPT testing code to its own module.
    
    PR-URL: nodejs/node#12736
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott committed May 4, 2017
    Configuration menu
    Copy the full SHA
    ff001c1 View commit details
    Browse the repository at this point in the history
  2. test: enable test-debugger-pid

    Now that `node debug` is an alias for `node inspect`, it's possible that
    `node-debug-pid` can run reliably. Modify for current behavior and move
    from `disabled` to `parallel`.
    
    PR-URL: nodejs/node#12770
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott committed May 4, 2017
    Configuration menu
    Copy the full SHA
    4677766 View commit details
    Browse the repository at this point in the history
  3. src: rename CryptoPemCallback -> PasswordCallback

    While reading through node_crypto.cc I think the code could perhaps
    be be a made a little clearer if CryptPemCallback was renamed.
    
    I admit that I'm very new to the code base and openssl but having a
    name like PasswordCallback or something similar would have helped me
    so I'm suggesting this change.
    
    PR-URL: nodejs/node#12787
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed May 4, 2017
    Configuration menu
    Copy the full SHA
    ebcd8c6 View commit details
    Browse the repository at this point in the history
  4. src: make root_cert_vector function scoped

    root_cert_vector currently has file scope and external linkage, but is
    only used in the NewRootCertsStore function. If this is not required to
    be externally linked perhaps it can be changed to be static and function
    scoped instead.
    
    PR-URL: nodejs/node#12788
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    danbev committed May 4, 2017
    Configuration menu
    Copy the full SHA
    d0c968e View commit details
    Browse the repository at this point in the history
  5. doc: add WHATWG file URLs in fs module

    Update fs module documentation adding WHATWG file URLS support for
    relevant fs functions/classes.
    
    PR-URL: nodejs/node#12670
    Fixes: nodejs/node#12341
    Ref: nodejs/node#10739
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Olivier Martin authored and jasnell committed May 4, 2017
    Configuration menu
    Copy the full SHA
    c1b3b95 View commit details
    Browse the repository at this point in the history
  6. assert: fix AssertionError, assign error code

    Using `assert.AssertionError()` without the `new` keyword results
    in a non-intuitive error:
    
    ```js
    > assert.AssertionError({})
    TypeError: Cannot assign to read only property 'name' of function 'function ok(value, message) {
      if (!value) fail(value, true, message, '==', assert.ok);
    }'
        at Function.AssertionError (assert.js:45:13)
        at repl:1:8
        at realRunInThisContextScript (vm.js:22:35)
        at sigintHandlersWrap (vm.js:98:12)
        at ContextifyScript.Script.runInThisContext (vm.js:24:12)
        at REPLServer.defaultEval (repl.js:346:29)
        at bound (domain.js:280:14)
        at REPLServer.runBound [as eval] (domain.js:293:12)
        at REPLServer.onLine (repl.js:545:10)
        at emitOne (events.js:101:20)
    >
    ```
    
    The `assert.AssertionError()` can only be used correctly with `new`,
    so this converts it into a proper ES6 class that will give an
    appropriate error message.
    
    This also associates the appropriate internal/errors code with all
    `assert.AssertionError` instances and updates the appropriate test
    cases.
    
    PR-URL: nodejs/node#12651
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasnell committed May 4, 2017
    Configuration menu
    Copy the full SHA
    e48d58b View commit details
    Browse the repository at this point in the history
  7. src: update --inspect hint text

    * Removes "experimental" warning.
    * Prints ws://_ip_:_port_:/_uuid_ for all IDs.
    * Refers to nodejs.org guide for more details.
    
    PR-URL: nodejs/node#11207
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    joshgav committed May 4, 2017
    Configuration menu
    Copy the full SHA
    6ade7f3 View commit details
    Browse the repository at this point in the history
  8. inspector: do not add 'inspector' property

    'inspector' property is not an official API and should not be published
    on process object, where the user may discover it.
    
    This change was extracted from nodejs/node#12263
    that will be focused on creating JS bindings.
    
    PR-URL: nodejs/node#12656
    Reviewed-By: Aleksey Kozyatinskiy <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Eugene Ostroukhov committed May 4, 2017
    Configuration menu
    Copy the full SHA
    3f48ab3 View commit details
    Browse the repository at this point in the history
  9. test: fix too optimistic guess in setproctitle

    PR-URL: nodejs/node#12792
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed May 4, 2017
    Configuration menu
    Copy the full SHA
    f971916 View commit details
    Browse the repository at this point in the history
  10. test: add callback to fs.close() in test-fs-chmod

    To avoid '[DEP0013] DeprecationWarning:
    Calling an asynchronous function without callback is deprecated.'
    
    PR-URL: nodejs/node#12795
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed May 4, 2017
    Configuration menu
    Copy the full SHA
    712596f View commit details
    Browse the repository at this point in the history
  11. doc: edit CONTRIBUTING.md for clarity etc.

    PR-URL: nodejs/node#12796
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 4, 2017
    Configuration menu
    Copy the full SHA
    0258aed View commit details
    Browse the repository at this point in the history

Commits on May 5, 2017

  1. url: handle windows drive letter in the file state

    `C|` should not satisfy the condition to not copy
    the base's path. It also synchronises WPT url test data
    to verify the update in upstream.
    
    PR-URL: nodejs/node#12808
    Refs: whatwg/url#305
    Refs: web-platform-tests/wpt#5754
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    watilde authored and TimothyGu committed May 5, 2017
    Configuration menu
    Copy the full SHA
    943dd5f View commit details
    Browse the repository at this point in the history
  2. test: add callback to fs.close() in test-fs-stat

    To avoid '[DEP0013] DeprecationWarning:
    Calling an asynchronous function without callback is deprecated.'
    
    PR-URL: nodejs/node#12804
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed May 5, 2017
    Configuration menu
    Copy the full SHA
    665695f View commit details
    Browse the repository at this point in the history
  3. tools: remove unused code from test.py

    PR-URL: nodejs/node#12806
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 5, 2017
    Configuration menu
    Copy the full SHA
    53c88fa View commit details
    Browse the repository at this point in the history
  4. test: add regex check in test-vm-is-context

    Use a regex to validate the error message.
    
    PR-URL: nodejs/node#12785
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Jeyanthinath authored and lpinca committed May 5, 2017
    Configuration menu
    Copy the full SHA
    bc05436 View commit details
    Browse the repository at this point in the history
  5. win: make buildable on VS2017

    * Set default to `vs2015` since `vs2017` is not CI-green yet
    * changes vcbuild.bat arg from `vc2015` to `vs2015`/`vs2017`
      `vc` as in Visual C++ is actually versions 14.0 or 14.10
      `vs` as in Visual Studio is 2015 or 2017
      Ref: http://lists.boost.org/Archives/boost/2017/03/233597.php 🤦
    * keep `vc2015` for backward compatibility but "undocumented"
    * tools: transplant vswhere wrapper from `msvs-com-helper`
      Ref: https://github.com/node4good/msvs-com-helper
    
    PR-URL: nodejs/node#11852
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    refack authored and gibfahn committed May 5, 2017
    Configuration menu
    Copy the full SHA
    1c93e8c View commit details
    Browse the repository at this point in the history
  6. test: add coverage for error apis

    Add coverage for N-API functions related to
    throwing and creating errors.  A number of these
    are currently showing as not having any
    coverage in the nightly code coverage reports.
    
    PR-URL: nodejs/node#12729
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson committed May 5, 2017
    Configuration menu
    Copy the full SHA
    94a120c View commit details
    Browse the repository at this point in the history
  7. test: make tests cwd-independent

    PR-URL: nodejs/node#12812
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    vsemozhetbyt authored and addaleax committed May 5, 2017
    Configuration menu
    Copy the full SHA
    f1d593c View commit details
    Browse the repository at this point in the history
  8. tools: relax lint rule for regexps

    Relax the rule for maximum line length in JS files if the line contains
    a regular expression literal. This will avoid the need to convert a
    regular expression literal into a RegExp constructor call broken across
    multiple lines in order to satisfy the maximum line length rule. That
    practice hampers readability.
    
    PR-URL: nodejs/node#12807
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Trott authored and addaleax committed May 5, 2017
    Configuration menu
    Copy the full SHA
    feb90d3 View commit details
    Browse the repository at this point in the history
  9. lib,test: use regular expression literals

    Replace RegExp constructors with regular expression literals where
    possible.
    
    PR-URL: nodejs/node#12807
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Trott authored and addaleax committed May 5, 2017
    Configuration menu
    Copy the full SHA
    6bcf65d View commit details
    Browse the repository at this point in the history
  10. test: reduce string concatenations

    PR-URL: nodejs/node#12735
    Refs: nodejs/node#12455
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    vsemozhetbyt committed May 5, 2017
    Configuration menu
    Copy the full SHA
    8b76c3e View commit details
    Browse the repository at this point in the history
  11. doc: update readFileSync in fs.md

    * Updated fs.md stating fs.readFileAsync is platform specific
    * Fix formatting of `note`s
    
    PR-URL: nodejs/node#12800
    Refs: nodejs/node#10962
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    thelostone-mc authored and refack committed May 5, 2017
    Configuration menu
    Copy the full SHA
    2614d24 View commit details
    Browse the repository at this point in the history
  12. inspector: report when main context is destroyed

    PR-URL: nodejs/node#12814
    Reimplements: nodejs/node#7756
    Fixes: nodejs/node#7742
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Aleksey Kozyatinskiy <[email protected]>
    Eugene Ostroukhov committed May 5, 2017
    Configuration menu
    Copy the full SHA
    15e160e View commit details
    Browse the repository at this point in the history
  13. doc: fix commit guideline url

    PR-URL: nodejs/node#12862
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    watson authored and Trott committed May 5, 2017
    Configuration menu
    Copy the full SHA
    4703824 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2017

  1. test: fix flakyness with yes.exe

    PR-URL: nodejs/node#12821
    Fixes: nodejs/node#12817
    Refs: nodejs/node#12658
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack committed May 6, 2017
    Configuration menu
    Copy the full SHA
    68c933c View commit details
    Browse the repository at this point in the history
  2. test: port test for make_callback to n-api

    Improved test coverage for napi_make_callback by porting the
    existing addons/make_callback test to n-api
    
    PR-URL: nodejs/node#12409
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    digitalinfinity authored and refack committed May 6, 2017
    Configuration menu
    Copy the full SHA
    73d9c0f View commit details
    Browse the repository at this point in the history
  3. deps: update V8 to 5.8.283.38

    PR-URL: nodejs/node#12784
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    60d1aac View commit details
    Browse the repository at this point in the history
  4. src: update NODE_MODULE_VERSION to 55

    Major V8 updates are usually API/ABI incompatible with previous
    versions. This commit adapts NODE_MODULE_VERSION for V8 5.8.
    
    Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
    PR-URL: nodejs/node#12784
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    5b63fab View commit details
    Browse the repository at this point in the history
  5. build: fix V8 build on FreeBSD

    Use the -D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1 flag because on FreeBSD
    std::pairs copy constructor is non-trivial.
    
    Refs: https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-March/002094.html
    Refs: https://github.com/gliaskos/freebsd-chromium/blob/master/www/chromium/Makefile#L202-L205
    
    PR-URL: nodejs/node#12784
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    bf5c309 View commit details
    Browse the repository at this point in the history
  6. deps: limit regress/regress-crbug-514081 v8 test

    regress/regress-crbug-514081 allocates a 2G block of memory
    and if there  are multiple variants running at the
    same time this can lead to crashes, OOM kills or
    the OS failing to allocate memory.  This patch
    limits us to running a single variant of the test
    
    Fixes: nodejs/node#6340
    PR-URL: nodejs/node#6678
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    mhdawson authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    7becb19 View commit details
    Browse the repository at this point in the history
  7. v8: fix stack overflow in recursive method

    HGlobalValueNumberingPhase::CollectSideEffectsOnPathsToDominatedBlock()
    used to self-recurse before this commit, causing stack overflows on
    systems with small stack sizes.  Make it non-recursive by storing
    intermediate results in a heap-allocated list.
    
    Fixes: nodejs/node#11991
    PR-URL: nodejs/node#12460
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yang Guo <[email protected]>
    bnoordhuis authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    14dc300 View commit details
    Browse the repository at this point in the history
  8. v8: fix gcc 7 build errors

    Porting nodejs/node#12392 to master
    
    Ref: nodejs/node#12392
    Fixes: nodejs/node#10388
    PR-URL: nodejs/node#12676
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Zuzana Svetlikova authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    0f3e69d View commit details
    Browse the repository at this point in the history
  9. deps: cherry-pick a927f81c7 from V8 upstream

    Original commit message:
    
      [ValueSerializer] Allow wire format versions beginning with 13 to be deserialized in non-legacy mode.
    
      As of version 13, delegates do not need to worry about colliding tags with the
      tags reserved by v8, since v8 inserts a "host object" prefix beforehand. Thus
      the format is now suitable for more general use, without opting into the "legacy"
      mode that had this caveat.
    
      Review-Url: https://codereview.chromium.org/2722213002
      Cr-Commit-Position: refs/heads/master@{#43521}
    
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    addaleax authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    6690415 View commit details
    Browse the repository at this point in the history
  10. deps: backport ec1ffe3 from upstream V8

    This commit adds lldbinit files from upstream V8 and also adds these so
    that they get installed when `make install` is run.
    
    Original commit message:
    
    [tools] add lldbinit
    
        The goal of this commit is to add the equivalent to gdbinit but
        for lldb. I've tried to replicate the commands as close as possible
        but I'm unsure about the jss command and hoping to get some feedback
        on it in addition to the bta command which I'm not sure how/when
        this could be used. This is probably just inexperience on my part.
    
        The lldbinit file can be placed into a directory prefixed with dot
        (.lldbinit) and the python script is currently expected to be in the
        same directory. The path to the script can be changed manually if
        needed as well.
    
        NOTRY=true
    
        Review-Url: https://codereview.chromium.org/2758373002
        Cr-Commit-Position: refs/heads/master@{#44136}
    
    PR-URL: nodejs/node#12061
    Reviewed-By: Ben Noordhuis <[email protected]>
    danbev authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    fe15fe7 View commit details
    Browse the repository at this point in the history
  11. deps: cherry-pick bfae9db from upstream v8

    Original commit message:
    
        Update postmortem metadata generator.
    
        Add PropertyDetails::AttributesField +
        PropertyDetails::LocationField.
    
        Review-Url: https://codereview.chromium.org/2842843004
        Cr-Commit-Position: refs/heads/master@{#44889}
    
    PR-URL: nodejs/node#12722
    Refs: nodejs/llnode#81
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bnoordhuis authored and targos committed May 6, 2017
    Configuration menu
    Copy the full SHA
    d74a545 View commit details
    Browse the repository at this point in the history
  12. errors,test: migrating error to internal/errors

    PR-URL: nodejs/node#11505
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    larissayvette authored and Trott committed May 6, 2017
    Configuration menu
    Copy the full SHA
    1c834e7 View commit details
    Browse the repository at this point in the history
  13. test: add mustCall in timers-unrefed-in-callback

    PR-URL: nodejs/node#12594
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    ChatbotSchool authored and Trott committed May 6, 2017
    Configuration menu
    Copy the full SHA
    3fd890a View commit details
    Browse the repository at this point in the history

Commits on May 7, 2017

  1. assert: improve deepEqual perf for large input

    Use a Map instead of an array for checking previously found
    cyclic references.
    
    This reduces complexity for an array-of-objects case from
    O(n²) to O(n·log n).
    
    Fixes: nodejs/node#12842
    PR-URL: nodejs/node#12849
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    7e5f500 View commit details
    Browse the repository at this point in the history
  2. test: complete coverage of buffer

    PR-URL: nodejs/node#12831
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    DavidCai1111 authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    a710e44 View commit details
    Browse the repository at this point in the history
  3. doc: remove test-npm from general build doc

    `make test-npm` is not particularly robust (currently fails on Linux and
    Windows, reportedly) and results in a fair number of requests for help
    from people new to the project. It is used when upgrading npm in core,
    which only a small number of mostly-predefined people do. Remove it from
    the general build doc.
    
    Refs: nodejs/node#12836
    PR-URL: nodejs/node#12840
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    a398516 View commit details
    Browse the repository at this point in the history
  4. readline: use module.exports = {}

    PR-URL: nodejs/node#12755
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    9318f82 View commit details
    Browse the repository at this point in the history
  5. readline: use module.exports = {} on internal/readline

    PR-URL: nodejs/node#12755
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    392a898 View commit details
    Browse the repository at this point in the history
  6. readline: multiple code cleanups

    Variety of code maintenance updates, cleanups
    
    PR-URL: nodejs/node#12755
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    4ac7a68 View commit details
    Browse the repository at this point in the history
  7. readline: move escape codes into internal/readline

    Moves escape codes into internal/readline for easier management.
    
    PR-URL: nodejs/node#12755
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    4c070d4 View commit details
    Browse the repository at this point in the history
  8. test: expand test coverage of readline

    PR-URL: nodejs/node#12755
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    d37f27a View commit details
    Browse the repository at this point in the history
  9. test: remove common.PORT in test tls ticket cluster

    PR-URL: nodejs/node#12715
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    ooHmartY authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    dac9f42 View commit details
    Browse the repository at this point in the history
  10. test: refactored test-repl-persistent-history

    PR-URL: nodejs/node#12703
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cool88 authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    6058c43 View commit details
    Browse the repository at this point in the history
  11. test: refactoring test with common.mustCall

    PR-URL: nodejs/node#12702
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    weewey authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    152966d View commit details
    Browse the repository at this point in the history
  12. doc: improve path.posix.normalize docs

    Add section to path docs that explains that path.posix.normalize
    does not replace Windows slashes with POSIX slashes because POSIX
    does not recognize / as a valid path separator.
    
    Fixes: nodejs/node#12298
    PR-URL: nodejs/node#12700
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    sjlehn authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    cbd6fde View commit details
    Browse the repository at this point in the history
  13. test: refactor test-querystring

    - change URIError constructor to regular expression in assert.throws
    - use block-scope for tests that spans multiple statements
    
    PR-URL: nodejs/node#12661
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    lukaszewczak authored and addaleax committed May 7, 2017
    Configuration menu
    Copy the full SHA
    42958d1 View commit details
    Browse the repository at this point in the history
  14. test: fix napi test_reference for recent V8

    PR-URL: nodejs/node#12864
    Ref: nodejs/node#12551 (comment)
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    targos committed May 7, 2017
    Configuration menu
    Copy the full SHA
    0a734fe View commit details
    Browse the repository at this point in the history

Commits on May 8, 2017

  1. doc: sort bottom-of-file markdown links

    PR-URL: nodejs/node#12726
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    sam-github committed May 8, 2017
    Configuration menu
    Copy the full SHA
    ea1b8a5 View commit details
    Browse the repository at this point in the history
  2. assert: restore TypeError if no arguments

    In Node 7.x, calling `throw new assert.AssertionError()` resulted in a
    TypeError.
    
    In current master, the same call does not result in an error but, due to
    the default option, it results in uninformative output ("undefined
    undefined undefined").
    
    This change removes the default argument, restoring a TypeError if there
    is no argument. This also will restore our test coverage to 100%. (The
    default argument is not tested in our current test suite.)
    
    PR-URL: nodejs/node#12843
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 8, 2017
    Configuration menu
    Copy the full SHA
    f6247a9 View commit details
    Browse the repository at this point in the history
  3. test: remove unused testpy code

    The temporary directory for tests is managed in the JS `common` module.
    Remove unused variable from `testpy` that is legacy from when it was
    managed in the Python test harness.
    
    PR-URL: nodejs/node#12844
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Trott committed May 8, 2017
    Configuration menu
    Copy the full SHA
    dc4313c View commit details
    Browse the repository at this point in the history
  4. benchmark: update an obsolete path

    PR-URL: nodejs/node#12904
    Refs: nodejs/node#12903
    Refs: nodejs/node@ff001c1
    Reviewed-By: Anna Henningsen <[email protected]>
    vsemozhetbyt committed May 8, 2017
    Configuration menu
    Copy the full SHA
    65d6249 View commit details
    Browse the repository at this point in the history
  5. net: ensure net.connect calls Socket connect

    It's important for people who monkey-patch `Socket.prototype.connect`
    that it's called by `net.connect` since it's not possible to
    monkey-patch `net.connect` directly (as the `connect` function is called
    directly by other parts of `lib/net.js` instead of calling the
    `exports.connect` function).
    
    Among the actors who monkey-patch `Socket.prototype.connect` are most
    APM vendors, the async-listener module and the
    continuation-local-storage module.
    
    Related:
    - nodejs/node#12342
    - nodejs/node#12852
    
    PR-URL: nodejs/node#12861
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Luca Maraschi <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    watson authored and sam-github committed May 8, 2017
    Configuration menu
    Copy the full SHA
    212a7a6 View commit details
    Browse the repository at this point in the history
  6. meta: fix nits in README.md collaborators list

    PR-URL: nodejs/node#12866
    Fixes: nodejs/node#12865
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed May 8, 2017
    Configuration menu
    Copy the full SHA
    dd06246 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2017

  1. test: add test for timers benchmarks

    PR-URL: nodejs/node#12851
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung committed May 9, 2017
    Configuration menu
    Copy the full SHA
    771568a View commit details
    Browse the repository at this point in the history
  2. net: check and throw on error for getsockname

    This commit attempts fix a TODO in net.js:
    TODO(bnoordhuis) Check err and throw?
    
    PR-URL: nodejs/node#12871
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    danbev committed May 9, 2017
    Configuration menu
    Copy the full SHA
    cf980b0 View commit details
    Browse the repository at this point in the history
  3. test: add skipIfInspectorDisabled to debugger-pid

    Currently this test will fail if node was configured --without-ssl.
    
    PR-URL: nodejs/node#12882
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    danbev committed May 9, 2017
    Configuration menu
    Copy the full SHA
    f72376d View commit details
    Browse the repository at this point in the history
  4. util: add internal bindings for promise handling

    Add methods for creating, resolving and rejecting promises
    using the V8 C++ API that does not require creation of extra
    `resolve` and `reject` functions to `process.binding('util')`.
    
    PR-URL: nodejs/node#12442
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    059f296 View commit details
    Browse the repository at this point in the history
  5. util: add util.promisify()

    Add `util.promisify(function)` for creating promisified functions.
    Includes documentation and tests.
    
    Fixes: nodejs/CTC#12
    PR-URL: nodejs/node#12442
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    99da8e8 View commit details
    Browse the repository at this point in the history
  6. test: add a bunch of tests from bluebird

    Take tests from Bluebird's promisify's tests and adapted them to the
    format in use here.
    Add tests making sure things work with async functions.
    Add basic usability tests.
    
    PR-URL: nodejs/node#12442
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    MadaraUchiha authored and addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    3ea2301 View commit details
    Browse the repository at this point in the history
  7. test: add test for promisify customPromisifyArgs

    PR-URL: nodejs/node#12442
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    giltayar authored and addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    e965ed1 View commit details
    Browse the repository at this point in the history
  8. timers: add promisify support

    Add support for `util.promisify(setTimeout)` and
    `util.promisify(setImmediate)` as a proof-of-concept implementation.
    `clearTimeout()` and `clearImmediate()` do not work on those Promises.
    Includes documentation and tests.
    
    PR-URL: nodejs/node#12442
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    e7c5145 View commit details
    Browse the repository at this point in the history
  9. fs: support util.promisify for fs.read/fs.write

    PR-URL: nodejs/node#12442
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    fbcb4f5 View commit details
    Browse the repository at this point in the history
  10. child_process: support promisified exec(File)

    Author: Benjamin Gruenbaum <[email protected]>
    Author: Anna Henningsen <[email protected]>
    
    PR-URL: nodejs/node#12442
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    fe5ca3f View commit details
    Browse the repository at this point in the history
  11. dns: support promisified lookup(Service)

    PR-URL: nodejs/node#12442
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: William Kapke <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    addaleax committed May 9, 2017
    Configuration menu
    Copy the full SHA
    faf6654 View commit details
    Browse the repository at this point in the history
  12. doc: fix typo in streams.md

    Slight grammar change to the readable event:`error`
    
    PR-URL: nodejs/node#12924
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    glennschler authored and vsemozhetbyt committed May 9, 2017
    Configuration menu
    Copy the full SHA
    e429f9a View commit details
    Browse the repository at this point in the history
  13. fs: throw on invalid callbacks for async functions

    If an asynchronous function is passed no callback function, there is no
    way to return the result. This patch throws an error if the callback
    passed is not valid or none passed at all.
    
    PR-URL: nodejs/node#12562
    
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    thefourtheye committed May 9, 2017
    Configuration menu
    Copy the full SHA
    4cb5f3d View commit details
    Browse the repository at this point in the history
  14. n-api: napi_get_cb_info should fill array

    When the number of args requested is greater than the actual number of
    args supplied to the function call, the remainder of the args array
    should be filled in with `undefined` values. Because of this bug, the
    remainder of the array was left uninitialized, which could cause a
    crash.
    
    Refer to the documentation for the `argv` parameter at
    https://github.com/nodejs/node/blob/master/doc/api/n-api.md#napi_get_cb_info
    
    PR-URL: nodejs/node#12863
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    jasongin authored and mhdawson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    2bbabb1 View commit details
    Browse the repository at this point in the history
  15. n-api: Handle fatal exception in async callback

     - Create a handle scope before invoking the async completion
       callback, because it is basically always needed, easy for user
       code to forget, and this makes it more consistent with ordinary
       N-API function callbacks.
    
     - Check for an unhandled JS exception after invoking an async
       completion callback, and report it via `node::FatalException()`.
    
     - Add a corresponding test case for an exception in async callback.
    
    Previously, any unhandled JS exception thrown from a
    `napi_async_complete_callback` would be silently ignored. Among other
    things this meant assertions in some test cases could be undetected.
    
    PR-URL: nodejs/node#12838
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jasongin authored and mhdawson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    2e3fef7 View commit details
    Browse the repository at this point in the history
  16. lib: remove useless default caught

    The variable caught's value is undefined, so the '|| caught' is
    useless.
    
    PR-URL: nodejs/node#12884
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Ron Korving <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    JacksonTian authored and jasnell committed May 9, 2017
    Configuration menu
    Copy the full SHA
    824fb49 View commit details
    Browse the repository at this point in the history
  17. test: use dynamic port instead of common.PORT

    Remove common.PORT from, test-net-connect-immediate-destroy,
    test-net-options-lookup, test-net-connect-local-error,
    test-net-connect-handle-econnrefused, test-net-socket-destroy-twice,
    test-net-better-error-messages-port-hostname, test-net-localerror,
    to reduce possibility that a dynamic port used in another test will
    collide with common.PORT.
    
    Moved test-net-listen-shared-ports, test-net-better-error-messages-port
    from tests/parallel to test/sequential
    
    Refs: nodejs/node#12376
    PR-URL: nodejs/node#12473
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    thelostone-mc authored and jasnell committed May 9, 2017
    Configuration menu
    Copy the full SHA
    94eed0f View commit details
    Browse the repository at this point in the history
  18. doc: fix broken links in n-api doc

    - fix 2 broken links
    - fix capitalization in description of
    napi_create_array-with-length
    
    PR-URL: nodejs/node#12889
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: MichaëZasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    mhdawson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    147048a View commit details
    Browse the repository at this point in the history
  19. deps: ICU 59.1 bump

    * No feature changes.
    * Bug fixes.
    * Details: http://site.icu-project.org/download/59
    
    Fixes: nodejs/node#12077
    PR-URL: nodejs/node#12486
    Refs: nodejs/node#7844
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    srl295 committed May 9, 2017
    Configuration menu
    Copy the full SHA
    5d0a770 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2017

  1. test: remove obsolete lint config comments

    The `max-len` ESLint rule is configured to be forgiving for lines that
    contain a regular expression literal. Remove disabling comments that are
    no longer required in test-repl.js
    
    PR-URL: nodejs/node#12868
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott committed May 10, 2017
    Configuration menu
    Copy the full SHA
    57a08e2 View commit details
    Browse the repository at this point in the history
  2. doc, test: add note to response.getHeaders

    * also correct language for the same note for querystring.parse
    * add assertions for said note
    
    PR-URL: nodejs/node#12887
    Fixes: nodejs/node#12885
    Refs: nodejs/node#12883
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    refack committed May 10, 2017
    Configuration menu
    Copy the full SHA
    e1cabf6 View commit details
    Browse the repository at this point in the history
  3. test: fix flaky test-https-client-get-url

    Fixed test-https-client-get-url by waiting on HTTPS GET requests
    to finish before closing the server.
    
    PR-URL: nodejs/node#12876
    Fixes: nodejs/node#12873
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Sebastian Plesciuc authored and refack committed May 10, 2017
    Configuration menu
    Copy the full SHA
    317180f View commit details
    Browse the repository at this point in the history
  4. test: use assert regexp in tls no cert test

    Replace the `assert.throws` second argument from a Type to a `RegExp`
    matching the entire error message.
    Error message changes are `semver-major`, so we assert their content.
    
    PR-URL: nodejs/node#12891
    Refs: nodejs/node#12603
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    arturgvieira authored and refack committed May 10, 2017
    Configuration menu
    Copy the full SHA
    cfe7b34 View commit details
    Browse the repository at this point in the history
  5. doc: add docs for server.address() for pipe case

    Add documentation for net.server.address() for the case it is listening
    on a pipe or unix domain socket instead an IP socket.
    
    PR-URL: nodejs/node#12907
    Fixes: nodejs/node#12895
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Flarna authored and jasnell committed May 10, 2017
    Configuration menu
    Copy the full SHA
    13487c4 View commit details
    Browse the repository at this point in the history
  6. src: fix comments re PER_ISOLATE macros

    PR-URL: nodejs/node#12899
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James Snell <[email protected]>
    joshgav committed May 10, 2017
    Configuration menu
    Copy the full SHA
    dd6e3f6 View commit details
    Browse the repository at this point in the history
  7. tty_wrap: throw when uv_tty_init() returns error

    Also add checks in lib/tty.js and tests.
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    4b9d84d View commit details
    Browse the repository at this point in the history
  8. test: remove unneeded tests

    AsyncWrap will be going through many changes, and the old API will no
    longer be used. So remove those tests that will no longer be useful.
    They may be added back later using the new API, once fully implemented.
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    732620c View commit details
    Browse the repository at this point in the history
  9. async_wrap: use double, not int64_t, for async id

    The number of ids is limited to 2^53-1 regardless of whether an int64_t
    is used or not because JS is limited to a double. So to make conversion
    simpler, track ids internally as a double. This will also make life
    simpler when this is eventually exposed to JS via a Float64Array.
    
    Rename AsyncWrap::get_uid() to AsyncWrap::get_id().
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    0432c6e View commit details
    Browse the repository at this point in the history
  10. crypto: use named FunctionTemplate

    RandomBytes and PBKDF2 were using the same "generic" ObjectTemplate for
    construction. Instead create one for each that is properly named.
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    d9f3ec8 View commit details
    Browse the repository at this point in the history
  11. async_wrap: use more specific providers

    Instead of wrapping several providers into PROVIDER_CRYPTO, have them
    all be named after their class. Rename other providers to also match
    their class names. With the exception of Parser. Which is actually
    HTTPParser.
    
    Add PROVIDER_LENGTH to make better checks in WrapperInfo().
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    f1ed19d View commit details
    Browse the repository at this point in the history
  12. async_wrap,src: add GetAsyncId() method

    Allow handles to retrieve their own uid's by adding a new method on the
    FunctionTemplates. Implementation of these into all other classes will
    come in a future commit.
    
    Add the method AsyncWrap::GetAsyncId() to all inheriting class objects
    so the uid of the handle can be retrieved from JS.
    
    In all applicable locations, run ClearWrap() on the object holding the
    pointer so that it never points to invalid memory and make sure Wrap()
    is always run so the class pointer is correctly attached to the object
    and can be retrieved so GetAsyncId() can be run.
    
    In many places a class instance was not removing its own pointer from
    object() in the destructor. This left an invalid pointer in the JS
    object that could cause the application to segfault under certain
    conditions.
    
    Remove ClearWrap() from ReqWrap for continuity. The ReqWrap constructor
    was not the one to call Wrap(), so it shouldn't be the one to call
    ClearWrap().
    
    Wrap() has been added to all constructors that inherit from AsyncWrap.
    Normally it's the child most class. Except in the case of HandleWrap.
    Which must be the constructor that runs Wrap() because the class pointer
    is retrieved for certain calls and because other child classes have
    multiple inheritance to pointer to the HandleWrap needs to be stored.
    
    ClearWrap() has been placed in all FunctionTemplate constructors so that
    no random values are returned when running getAsyncId(). ClearWrap() has
    also been placed in all class destructors, except in those that use
    MakeWeak() because the destructor will run during GC. Making the
    object() inaccessible.
    
    It could be simplified to where AsyncWrap sets the internal pointer,
    then if an inheriting class needs one of it's own it could set it again.
    But the inverse would need to be true also, where AsyncWrap then also
    runs ClearWeak. Unforunately because some of the handles are cleaned up
    during GC that's impossible. Also in the case of ReqWrap it runs Reset()
    in the destructor, making the object() inaccessible. Meaning,
    ClearWrap() must be run by the class that runs Wrap(). There's currently
    no generalized way of taking care of this across all instances of
    AsyncWrap.
    
    I'd prefer that there be checks in there for these things, but haven't
    found a way to place them that wouldn't be just as unreliable.
    
    Add test that checks all resources that can run getAsyncId(). Would like
    a way to enforce that any new classes that can also run getAsyncId() are
    tested, but don't have one.
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    fe2df3b View commit details
    Browse the repository at this point in the history
  13. src: implement native changes for async_hooks

    Changes in the native code for the upcoming async_hooks module. These
    have been separated to help with review and testing.
    
    Changes include:
    
    * Introduce an async id stack that tracks recursive calls into async
      execution contexts. For performance reasons the id stack is held as a
      double* and assigned to a Float64Array. If the stack grows too large
      it is then placed in it's own stack and replaced with a new double*.
      This should accommodate arbitrarily large stacks.
    
      I'm not especially happy with the complexity involved with this async
      id stack, but it's also the fastest and most full proof way of
      handling it that I have found.
    
    * Add helper functions in Environment and AsyncWrap to work with the
      async id stack.
    
    * Add AsyncWrap::Reset() to allow AsyncWrap instances that have been
      placed in a resource pool, instead of being released, to be
      reinitialized. AsyncWrap::AsyncWrap() also now uses Reset() for
      initialization.
    
    * AsyncWrap* parent no longer needs to be passed via the constructor.
    
    * Introduce Environment::AsyncHooks class to contain the needed native
      functionality. This includes the pointer to the async id stack, and
      array of v8::Eternal<v8::String>'s that hold the names of all
      providers, mechanisms for storing/retrieving the trigger id, etc.
    
    * Introduce Environment::AsyncHooks::ExecScope as a way to track the
      current id and trigger id of function execution via RAII.
    
    * If the user passes --abort-on-uncaught-exception then instead of
      throwing the application will print a stack trace and abort.
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    c0bde73 View commit details
    Browse the repository at this point in the history
  14. async_hooks: initial async_hooks implementation

    Fill this commit messsage with more details about the change once all
    changes are rebased.
    
    * Add lib/async_hooks.js
    
    * Add JS methods to AsyncWrap for handling the async id stack
    
    * Introduce AsyncReset() so that JS functions can reset the id and again
      trigger the init hooks, allow AsyncWrap::Reset() to be called from JS
      via asyncReset().
    
    * Add env variable to test additional things in test/common.js
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    7e3a3c9 View commit details
    Browse the repository at this point in the history
  15. lib: implement async_hooks API in core

    Implement async_hooks support in the following:
    
    * fatalException handler
    * process.nextTick
    * Timers
    * net/dgram/http
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    4a7233c View commit details
    Browse the repository at this point in the history
  16. test: adding tests for initHooks API

    Async wrap providers tested:
    
    - crypto.randomBytes
    - crypto.pbkdf2
    - fs event wrap
    - fsreqwrap access
    - fsreqwrap readFile
    - getaddrinforeq wrap
    - getnameinforeq wrap
    - pipe connect wrap
    - query wrap
    - pipewrap
    - processwrap
    - shutdown wrap
    - tcpwrap
    - udpwrap
    - send wrap
    - detailed signal wrap
    - statwatcher
    - timerwrap via setTimeout
    - timerwrap via setInterval
    - for Immediate
    - http parser request
    - http parser response
    - connection via ssl server
    - tls wrap
    - write wrap
    - ttywrap via readstream
    - ttywrap via wriream
    - zctx via zlib binding deflate
    
    Embedder API:
    
    -  async-event tests
      - one test looks at the happy paths
      - another ensures that in cases of events emitted in an order that
      doesn't make sense, the order is enforced by async hooks throwing a
      meaningful error
      - embedder enforcement tests are split up since async hook stack
      corruption now the process
      - therefore we launch a child and check for error output of the offending code
    
    Additional tests:
    
    - tests that show that we can enable/disable hooks inside their lifetime
    events
    - tests that verify the graph of resources triggering the creation of
    other resources
    
    Test Helpers:
    
    - init-hooks:
      - returns one collector instance
      - when created an async hook is created and the lifetime events are
      registered to call the appropriate collector functions
      - the collector also exposes `enable` and `disable` functions which call
      through to the async hook
    
    - hook checks:
      - checks invocations of life time hooks against the actual invocations
      that were collected
      - in some cases like `destroy` a min/max range of invocations can be
      supplied since in these cases the exact number is non-deterministic
    
    - verify graph:
      - verifies the triggerIds of specific async resources are as expected,
      i.e. the creation of resources was triggered by the resource we expect
      - includes a printGraph function to generate easily readable test
      input for verify graph
      - both functions prune TickObjects to create less brittle and easier
      to understand tests
    
    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    thlorenz authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    e3e56f1 View commit details
    Browse the repository at this point in the history
  17. makefile: add async-hooks to test and test-ci

    PR-URL: nodejs/node#12892
    Ref: nodejs/node#11883
    Ref: nodejs/node#8531
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    trevnorris authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    c68ebe8 View commit details
    Browse the repository at this point in the history
  18. test: detect all types of aborts in windows

    On Windows, 'aborts' are of 2 types, depending on the context:
    (i) Forced access violation, if --abort-on-uncaught-exception is on
    which corresponds to exit code 3221225477 (0xC0000005)
    (ii) raise(SIGABRT) or abort(), which lands up in CRT library calls
    which corresponds to exit code 3
    
    PR-URL: nodejs/node#12856
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    gireeshpunathil authored and addaleax committed May 10, 2017
    Configuration menu
    Copy the full SHA
    6914aea View commit details
    Browse the repository at this point in the history

Commits on May 11, 2017

  1. lib: add guard to originalConsole

    Currently when building --without-ssl or --without-inspector there will
    be an error when trying to set up the console in bootstrap_node.js:
    
    Can't determine the arch of: 'out/Release/node'
    bootstrap_node.js:276
          if (!globalConsole.hasOwnProperty(key))
                            ^
    
    TypeError: Cannot read property 'hasOwnProperty' of undefined
        at installInspectorConsole (bootstrap_node.js:276:25)
        at get (bootstrap_node.js:264:21)
        at evalScript (bootstrap_node.js:395:30)
        at startup (bootstrap_node.js:125:9)
        at bootstrap_node.js:537:3
    
    I think this issue was introduced in commit
    3f48ab3 ("inspector: do not add
    'inspector' property").
    
    This commit attempts to fix this.
    
    PR-URL: nodejs/node#12881
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    danbev committed May 11, 2017
    Configuration menu
    Copy the full SHA
    54d3318 View commit details
    Browse the repository at this point in the history
  2. test: dynamic port in cluster disconnect

    Removed common.PORT from test-cluster-disconnect to eliminate the
    possibility that a port used in another test will collide
    with common.PORT.
    
    PR-URL: nodejs/node#12545
    Refs: nodejs/node#12376
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Sebastian Plesciuc authored and gibfahn committed May 11, 2017
    Configuration menu
    Copy the full SHA
    bee250c View commit details
    Browse the repository at this point in the history
  3. build: fix ninja build failure

    When working on commit 6a09a69
    ("build: enable cctest to use generated objects") I did not take into
    account building with ninja:
    
    $ ./configure
    $ tools/gyp_node.py -f ninja
    $ ninja -C out/Release
    $ ln -fs out/Release/node node
    
    When ninja generated the ninja build files, src files that are
    relative to the src directory will be named with a dot instead of a
    path separator, for example:
    
    out/Release/obj/src/node/node.o
    would instead become:
    out/Release/obj/src/node.node.o
    
    This commit adds an additional variable for the type of object separator
    used for this case.
    
    Currently the check for if ninja is being used is a normal if statement
    as are the following os checks (win and aix). But the win and aix ones
    should only be evaluated if the build is not generated by ninja.
    This commit turns this logic into an if ninja else statement.
    
    PR-URL: nodejs/node#12484
    Fixes: nodejs/node#12448
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    danbev authored and refack committed May 11, 2017
    Configuration menu
    Copy the full SHA
    bb88cae View commit details
    Browse the repository at this point in the history
  4. build: fix ninja build failure (GYP patch)

    Currently the files specified in libraries in node.gyp `cctest` target are
    getting a '.lib' extension on windows when generated with ninja.
    This commit adds a check to see if a file has a '.obj' extension and in
    that case no '.lib' extension will be added.
    
    Also, the LIBS specified in the 'libraries' section are not
    being included in the --start-group --end-group section which
    means that these libraries will not be searched causing issue
    with linkers where the order matters.
    
    PR-URL: nodejs/node#12484
    Fixes: nodejs/node#12448
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    danbev authored and refack committed May 11, 2017
    Configuration menu
    Copy the full SHA
    9fd22bc View commit details
    Browse the repository at this point in the history
  5. test: improve n-api array func coverage

    - add coverage for napi_has_element
    - add coverage for napi_create_array_with_length
    
    PR-URL: nodejs/node#12890
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson committed May 11, 2017
    Configuration menu
    Copy the full SHA
    654afa2 View commit details
    Browse the repository at this point in the history
  6. test: favor deepStrictEqual over deepEqual

    test-http-mutable-headers uses assert.deepEqual() in three places but
    appears to only needs it in two of them. Replace one with
    assert.deepStrictEqual() and remove linting exception.
    
    PR-URL: nodejs/node#12883
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott committed May 11, 2017
    Configuration menu
    Copy the full SHA
    631cb42 View commit details
    Browse the repository at this point in the history
  7. doc: clarify node.js addons are c++

    PR-URL: nodejs/node#12898
    Fixes: nodejs/node#7129
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    BethGriggs authored and sam-github committed May 11, 2017
    Configuration menu
    Copy the full SHA
    abfd4bf View commit details
    Browse the repository at this point in the history
  8. https: support agent construction without new

    Fixes: nodejs/node#12918
    PR-URL: nodejs/node#12927
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cjihrig committed May 11, 2017
    Configuration menu
    Copy the full SHA
    9ce2271 View commit details
    Browse the repository at this point in the history
  9. src: make SIGPROF message a real warning

    This commit replaces a fprintf() with a call to
    ProcessEmitWarning().
    
    Refs: nodejs/node#12706
    PR-URL: nodejs/node#12709
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cjihrig committed May 11, 2017
    Configuration menu
    Copy the full SHA
    b6001a2 View commit details
    Browse the repository at this point in the history
  10. doc: update to add ref to supported platforms

    Update README.md to be consistent with changes made
    to earlier branches.
    
    PR-URL: nodejs/node#12931
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: MichaëZasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    mhdawson committed May 11, 2017
    Configuration menu
    Copy the full SHA
    c79deaa View commit details
    Browse the repository at this point in the history
  11. fs: refactor deprecated functions for readability

    This is a small refactor to make an object more readable (IMO).
    
    Yeah, I spent a bit longer looking at the code and misunderstanding it
    than I care to admit right now.
    
    PR-URL: nodejs/node#12910
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 11, 2017
    Configuration menu
    Copy the full SHA
    6f449db View commit details
    Browse the repository at this point in the history
  12. benchmark: check for time precision in common.js

    Some benchmark tests are failing intermittently, possibly due to
    hrtime() imprecision on particular hosts. This change will confirm or
    refute that as the root cause the next time the test fails on CI. Either
    way, it's a valid check.
    
    PR-URL: nodejs/node#12934
    Ref: nodejs/node#12497
    Ref: nodejs/node#12433
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 11, 2017
    Configuration menu
    Copy the full SHA
    a82e0e6 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2017

  1. doc: Change options at STEP 5 in CONTRIBUTING.md

    PR-URL: nodejs/node#12830
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    kysnm authored and refack committed May 12, 2017
    Configuration menu
    Copy the full SHA
    d7d16f7 View commit details
    Browse the repository at this point in the history
  2. src: add/move hasCrypto checks for async tests

    Currently when configured --without-ssl these test will fail. In
    test-crypto-pbkdf2.js and test-crypto-randomBytes.js the check exists
    but just need to be moved before the require of crypto.
    
    There was no check in test-async-wrap-uncaughtexception.js so one was
    added.
    
    PR-URL: nodejs/node#12968
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Luca Maraschi <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed May 12, 2017
    Configuration menu
    Copy the full SHA
    9f8e030 View commit details
    Browse the repository at this point in the history
  3. src: add HAVE_OPENSSL guard to crypto providers

    When configured --without-ssl node_crypto.h will not be included but
    async-wrap.h includes providers that are defined in node_crypto.h,
    node_crypto.cc, and tls_wrap.cc:
    AsyncWrap::PROVIDER_CONNECTION
    AsyncWrap::PROVIDER_PBKDF2REQUEST
    AsyncWrap::PROVIDER_RANDOMBYTESREQUEST
    AsyncWrap::PROVIDER_TLSWRAP
    
    These will be included as providers which will cause
    test-async-wrap-getasyncid.js to fail.
    
    This commit suggest adding a guard and exclude the providers that are
    not available when configured --without-ssl
    
    PR-URL: nodejs/node#12967
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    danbev committed May 12, 2017
    Configuration menu
    Copy the full SHA
    1541079 View commit details
    Browse the repository at this point in the history
  4. test: make a test path-independent

    parallel/test-spawn-cmd-named-pipe.js failed with spaces
    both in node.exe and test paths.
    
    PR-URL: nodejs/node#12945
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt committed May 12, 2017
    Configuration menu
    Copy the full SHA
    529e4f2 View commit details
    Browse the repository at this point in the history
  5. test: use dynamic port in test-https-connect-address-family

    Remove common.PORT from test-https-connect-address-family to eliminate
    possibility that a dynamic port used in another test will collide with
    common.PORT.
    
    PR-URL: nodejs/node#12915
    Ref: nodejs/node#12376
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    arturgvieira authored and lpinca committed May 12, 2017
    Configuration menu
    Copy the full SHA
    56812c8 View commit details
    Browse the repository at this point in the history
  6. doc: update COLLABORATOR_GUIDE.md

    PR-URL: nodejs/node#12555
    Fixes: nodejs/node#12021
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    morrme authored and gibfahn committed May 12, 2017
    Configuration menu
    Copy the full SHA
    1d5f5aa View commit details
    Browse the repository at this point in the history
  7. test: add a simple abort check in windows

    raise(SIGABRT) or CRT abort causes exit code 3 and
    null signal in windows. Looks like this simple assertion
    is not present in windows. Make this assertion.
    
    PR-URL: nodejs/node#12914
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Sreepurna Jasti authored and refack committed May 12, 2017
    Configuration menu
    Copy the full SHA
    642bd4d View commit details
    Browse the repository at this point in the history
  8. inspector: handle socket close before close frame

    This change handles clients that respond to close request with a TCP
    close instead of close response.
    
    PR-URL: nodejs/node#12937
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Eugene Ostroukhov committed May 12, 2017
    Configuration menu
    Copy the full SHA
    7c3a23b View commit details
    Browse the repository at this point in the history

Commits on May 13, 2017

  1. timers: do not use user object call/apply

    Timers should work even if the user has monkey-patched `.call()` and
    `.apply()` to undesirable values.
    
    PR-URL: nodejs/node#12960
    Ref: nodejs/node#12956
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Trott committed May 13, 2017
    Configuration menu
    Copy the full SHA
    98609fc View commit details
    Browse the repository at this point in the history
  2. benchmark: chunky http client should exit with 0

    Previously when there is an error in the chunky client of the
    http benchmark, the server would not check the exit code and
    thus produce invalid results.
    
    PR-URL: nodejs/node#12916
    Fixes: nodejs/node#12903
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung committed May 13, 2017
    Configuration menu
    Copy the full SHA
    3fa5d80 View commit details
    Browse the repository at this point in the history
  3. test: move test-dgram-bind-shared-ports to sequential

    PR-URL: nodejs/node#12452
    Ref: nodejs/node#12376
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    orafaelfragoso authored and lpinca committed May 13, 2017
    Configuration menu
    Copy the full SHA
    84fc069 View commit details
    Browse the repository at this point in the history
  4. test: add common.mustCall() to NAPI exception test

    Use `common.mustCall()` to confirm that function is invoked.
    
    PR-URL: nodejs/node#12959
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed May 13, 2017
    Configuration menu
    Copy the full SHA
    9516aa1 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2017

  1. test: make the rest of tests path-independent

    Permit spaces in paths to a Node.js executable and test scripts.
    
    PR-URL: nodejs/node#12972
    Fixes: nodejs/node#12773
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt committed May 14, 2017
    Configuration menu
    Copy the full SHA
    945f208 View commit details
    Browse the repository at this point in the history
  2. test: add hasCrypto check to https-agent-constructor

    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: nodejs/node#12987
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    danbev committed May 14, 2017
    Configuration menu
    Copy the full SHA
    b5ae22d View commit details
    Browse the repository at this point in the history

Commits on May 15, 2017

  1. test: add not-called check to heap-profiler test

    Add `common.mustNotCall()` to make sure there aren't any strange
    shenanians in the C++ test that would cause the function to execute when
    it shouldn't.
    
    PR-URL: nodejs/node#12985
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott committed May 15, 2017
    Configuration menu
    Copy the full SHA
    b7bc09f View commit details
    Browse the repository at this point in the history
  2. test: use mustCall in tls-connect-given-socket

    PR-URL: nodejs/node#12592
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vperezma authored and Trott committed May 15, 2017
    Configuration menu
    Copy the full SHA
    72e3dda View commit details
    Browse the repository at this point in the history
  3. src: rename CONNECTION provider to SSLCONNECTION

    Currently the async provider type CONNECTION is used in node_crypto.h
    and it might be clearer if it was named SSLCONNECTION as suggested by
    addaleax.
    
    This commit renames only the provider type as I was not sure if it was
    alright to change the class Connection as well.
    
    Refs: nodejs/node#12967 (comment)
    PR-URL: nodejs/node#12989
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    danbev committed May 15, 2017
    Configuration menu
    Copy the full SHA
    60f0dc7 View commit details
    Browse the repository at this point in the history
  4. src: remove unused uv.h include in async-wrap.h

    I cannot find any usage of uv in the header and think that it can be
    removed.
    
    PR-URL: nodejs/node#12973
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed May 15, 2017
    Configuration menu
    Copy the full SHA
    32f01c8 View commit details
    Browse the repository at this point in the history
  5. test: remove unneeded string splitting

    PR-URL: nodejs/node#12992
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Luca Maraschi <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    vsemozhetbyt authored and addaleax committed May 15, 2017
    Configuration menu
    Copy the full SHA
    88d2e69 View commit details
    Browse the repository at this point in the history
  6. deps: cherry-pick 4ae5993 from upstream OpenSSL

    This fixes wrong hash results on Windows with some CPUs that support
    Intel SHA Extension and resolves the issue of TLS connection errors.
    
    After upgrading forthcoming openssl-1.0.2l, this is no nolonger needed.
    
      Original commit message:
    
        perlasm/x86_64-xlate.pl: work around problem with hex constants in masm.
    
        Perl, multiple versions, for some reason occasionally takes issue with
        letter b[?] in ox([0-9a-f]+) regex. As result some constants, such as
        0xb1 came out wrong when generating code for MASM. Fixes GH#3241.
    
        Reviewed-by: Rich Salz <[email protected]>
        (Merged from openssl/openssl#3385)
    
        (cherry picked from commit c47aea8af1e28e46e1ad5e2e7468b49fec3f4f29)
    
    Refs: openssl/openssl#3241
    Refs: openssl/openssl#3385
    Fixes: nodejs/node#12691
    PR-URL: nodejs/node#12913
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    shigeki authored and addaleax committed May 15, 2017
    Configuration menu
    Copy the full SHA
    f439065 View commit details
    Browse the repository at this point in the history
  7. deps: update openssl asm and asm_obsolete files

    Regenerate asm files according to the fix of
    openssl/crypto/perlasm/x86_64-xlate.pl.
    
    Fixes: nodejs/node#12691
    PR-URL: nodejs/node#12913
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    shigeki authored and addaleax committed May 15, 2017
    Configuration menu
    Copy the full SHA
    e896898 View commit details
    Browse the repository at this point in the history
  8. util: fixup internal util exports

    util.promisify landed without using the module.exports = {}
    pattern. This fixes it up for consistency
    
    PR-URL: nodejs/node#12998
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    jasnell committed May 15, 2017
    Configuration menu
    Copy the full SHA
    ef16319 View commit details
    Browse the repository at this point in the history
  9. tls: do not wrap net.Socket with StreamWrap

    Fixes: nodejs/node#3655
    PR-URL: nodejs/node#12799
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    krydos authored and addaleax committed May 15, 2017
    Configuration menu
    Copy the full SHA
    b23d414 View commit details
    Browse the repository at this point in the history
  10. addons: remove semicolons from after module definition

    Having semicolons there runs counter to our documentation and illicits
    warnings in pedantic mode. This removes semicolons from after uses of
    NODE_MODULE and NODE_MODULE_CONTEXT_AWARE_BUILTIN.
    
    PR-URL: nodejs/node#12919
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Gabriel Schulhof authored and addaleax committed May 15, 2017
    Configuration menu
    Copy the full SHA
    2767209 View commit details
    Browse the repository at this point in the history
  11. tls: accept lookup option for tls.connect()

    `net.connect()` and consequently `http.Agent` support custom DNS
    `lookup` option. However, as we move to `https.Agent` - this option no
    longer works because it is not proxied by `tls.connect`.
    
    Fix this inconsistency by passing it down to `net.connect`.
    
    PR-URL: nodejs/node#12839
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    indutny committed May 15, 2017
    Configuration menu
    Copy the full SHA
    e600fbe View commit details
    Browse the repository at this point in the history

Commits on May 16, 2017

  1. doc: clarify operation of napi_cancel_async_work

    PR-URL: nodejs/node#12974
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    mhdawson committed May 16, 2017
    Configuration menu
    Copy the full SHA
    1b28022 View commit details
    Browse the repository at this point in the history
  2. test: improve N-API test coverage

    Add tests to cover functions that return globals
    
    PR-URL: nodejs/node#13006
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    mhdawson committed May 16, 2017
    Configuration menu
    Copy the full SHA
    47c3c58 View commit details
    Browse the repository at this point in the history
  3. n-api: remove compiler warning

    `TryCatch` without an `Isolate*` argument is deprecated, so add one.
    
    PR-URL: nodejs/node#13014
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    addaleax authored and mhdawson committed May 16, 2017
    Configuration menu
    Copy the full SHA
    0083011 View commit details
    Browse the repository at this point in the history
  4. test: fixed flaky test-net-connect-local-error

    Fixed test-net-connect-local-error by moving the test from
    parallel to sequential.
    
    PR-URL: nodejs/node#12964
    Fixes: nodejs/node#12950
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Sebastian Plesciuc authored and refack committed May 16, 2017
    Configuration menu
    Copy the full SHA
    0c2edd2 View commit details
    Browse the repository at this point in the history
  5. deps: cherry-pick f5fad6d from upstream v8

    Original commit message:
    
        This commit adds a getter for the private is_verbose_ member.
        The use case for this comes from Node.js where the ability to avoid
        calling FatalException if the TryCatch is verbose would be nice
        to have.
    
        BUG=
    
        Review-Url: https://codereview.chromium.org/2840803002
        Cr-Commit-Position: refs/heads/master@{#45018}
    
    PR-URL: nodejs/node#12826
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    danbev committed May 16, 2017
    Configuration menu
    Copy the full SHA
    986e1d2 View commit details
    Browse the repository at this point in the history
  6. src: only call FatalException if not verbose

    This commit attempts to address the TODO regarding not calling
    FatalException if the try_catch is verbose.
    
    PR-URL: nodejs/node#12826
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    danbev committed May 16, 2017
    Configuration menu
    Copy the full SHA
    fefab90 View commit details
    Browse the repository at this point in the history
  7. doc: document method for reverting commits

    PR-URL: nodejs/node#13015
    Fixes: nodejs/node#12979
    Refs: nodejs/node#4679 (comment)
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    gibfahn committed May 16, 2017
    Configuration menu
    Copy the full SHA
    92f3b30 View commit details
    Browse the repository at this point in the history
  8. test: add regex check in test-url-parse-invalid-input

    Use a regex to validate the error message.
    
    PR-URL: nodejs/node#12879
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    andreicioromila authored and lpinca committed May 16, 2017
    Configuration menu
    Copy the full SHA
    7906ed5 View commit details
    Browse the repository at this point in the history
  9. stream: fix highWaterMark integer overflow

    Fixes integer overflows when supplying values exceeding MAX_SAFE_INTEGER
    for highWaterMark.
    
    PR-URL: nodejs/node#12593
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luca Maraschi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    tniessen authored and mcollina committed May 16, 2017
    Configuration menu
    Copy the full SHA
    11918c4 View commit details
    Browse the repository at this point in the history
  10. build: reduce one level of spawning in node_gyp

    `configure` will now call `node_gyp` as a module instead of forking
    makes it easier to debug
    
    PR-URL: nodejs/node#12653
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    refack committed May 16, 2017
    Configuration menu
    Copy the full SHA
    4aff056 View commit details
    Browse the repository at this point in the history
  11. build: simplify if in setting of arg_paths

    PR-URL: nodejs/node#12653
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    refack committed May 16, 2017
    Configuration menu
    Copy the full SHA
    8035527 View commit details
    Browse the repository at this point in the history
  12. src: fix --abort_on_uncaught_exception arg parsing

    Fix c0bde73, which inadvertently introduced a use of strcmp() without
    correctly comparing its return to zero. Caught by coverity:
    
            >>>     CID 169223:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
            >>>     The "or" condition "strcmp(arg, "--abort-on-uncaught-exception") || strcmp(arg, "--abort_on_uncaught_exception")" will always be true because "arg" cannot be equal to two different values at the same time, so it must be not equal to at least one of them.
            3909         } else if (strcmp(arg, "--abort-on-uncaught-exception") ||
            3910                    strcmp(arg, "--abort_on_uncaught_exception")) {
            3911           abort_on_uncaught_exception = true;
            3912           // Also a V8 option.  Pass through as-is.
            3913           new_v8_argv[new_v8_argc] = arg;
            3914           new_v8_argc += 1;
    
    PR-URL: nodejs/node#13004
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    sam-github committed May 16, 2017
    Configuration menu
    Copy the full SHA
    53dae83 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2017

  1. benchmark: remove redundant timers benchmark

    The immediate.js benchmark with `type` set to `depth` measures the same
    thing as set-immediate-depth.js. Remove the redundancy.`
    
    PR-URL: nodejs/node#13009
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott committed May 17, 2017
    Configuration menu
    Copy the full SHA
    f2ba06d View commit details
    Browse the repository at this point in the history
  2. build: don't print directory for GNUMake

    Currently when running make targets the directory is printed on some
    operating systems (Linux for example):
    
    $ make lint
    make[1]: Entering directory '/work/node'
    Running JS linter...
    ./node tools/eslint/bin/eslint.js --cache --rulesdir=tools/eslint-rules
    --ext=.js,.md \
      benchmark doc lib test tools
    make[1]: Leaving directory '/work/node'
    make[1]: Entering directory '/work/node'
    Running C++ linter...
    
    On other operating systems the directory is not printed. This commit
    suggests adding a flag to make this consistent for GNUMake by not
    printing the directory.
    
    PR-URL: nodejs/node#13042
    Reviewed-By: Gibson Fahnestock <[email protected]>
    danbev committed May 17, 2017
    Configuration menu
    Copy the full SHA
    ad7b98b View commit details
    Browse the repository at this point in the history
  3. test: add hasCrypto to tls-wrap-event-emmiter

    Currently when building --without-ssl this test will report the
    following error:
    internal/util.js:82
        throw new Error('Node.js is not compiled with openssl crypto
    support');
    
    This commit adds a check for crypto and skips this test if node was
    built without ssl support.
    
    PR-URL: nodejs/node#13041
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    danbev committed May 17, 2017
    Configuration menu
    Copy the full SHA
    5debcce View commit details
    Browse the repository at this point in the history
  4. build: clean up napi build in test-addons-clean

    PR-URL: nodejs/node#13034
    Ref: nodejs/node#13031
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rajaram Gaunker <[email protected]>
    joyeecheung authored and mhdawson committed May 17, 2017
    Configuration menu
    Copy the full SHA
    6342988 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2017

  1. Merge nodejs/node into xplat

    Merge ef16319 as of 2017-05-16
    
    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    ca32671 View commit details
    Browse the repository at this point in the history
  2. chakrashim, test: Build failures and skipped test

    * Added shim for `Promise::Resolver` and some minor additions.
    * Skipped several unit test around promises and async hooks
    
    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    bfbf736 View commit details
    Browse the repository at this point in the history
  3. Merge nodejs/node into xplat

    Merge 11918c4 as of 2017-05-16
    
    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    297b176 View commit details
    Browse the repository at this point in the history
  4. Fix N-API JSRT bugs found by new tests

    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    jasongin authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    16922b4 View commit details
    Browse the repository at this point in the history
  5. chakrashim: Fixed build errors

    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    75c91ca View commit details
    Browse the repository at this point in the history
  6. build,test: Fixed test and build issue

    * Added jsEngine to newly added test
    * Skipped napi test
    
    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    a8d0006 View commit details
    Browse the repository at this point in the history
  7. Merge nodejs/master to xplat

    Merge '6342988053' as of 2017-05-17 into xplat
    
    PR-URL: nodejs#245
    Reviewed-By: Kyle Farnung <[email protected]>
    kunalspathak authored and New Name committed May 18, 2017
    Configuration menu
    Copy the full SHA
    d07825c View commit details
    Browse the repository at this point in the history