Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v11.8.0 proposal #25687

Merged
merged 88 commits into from Jan 25, 2019
Merged

v11.8.0 proposal #25687

merged 88 commits into from Jan 25, 2019

Commits on Jan 23, 2019

  1. test: refactor pummel/test-keep-alive

    * Reduce concurrent and duration options by half so as to avoid
      interference with other tests. (Excessive TCP activity in this test
      resulted in throttling that caused subsequent tests to fail on my
      local setup.)
    * Use an OS-provided port rather than `common.PORT`. This possibly
      reduces side-effects on other tests (that may also be using
      `common.PORT`).
    * Add punctuation in comments.
    
    PR-URL: #25485
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    817b44d View commit details
    Browse the repository at this point in the history
  2. test: refactor pummel/test-net-connect-econnrefused

    * Reduce ROUNDS and ATTEMPTS_PER_ROUND by half to avoid spurious test
      failures as a result of side effects from other tests. (For my local
      setup, test-keep-alive seems to cause this test to fail with ETIMEDOUT
      and/or EADDRNOTAVAIL. It would seem to be a result of throttling.
      Reducing the pummel-iness of that test and this one seems to solve the
      problem.)
    * Apply capitalization and punctuation to comment.
    
    PR-URL: #25485
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    69c0841 View commit details
    Browse the repository at this point in the history
  3. test: refactor pummel/test-net-many-clients

    * Use port 0 instead of `common.PORT`.
    * Reduce `concurrent` from 100 to 50 and `connections_per_client` from 5
      to 3. This is to avoid side effects from other tests. Prior to this
      change, running this along with test-keep-alive would result in
      failures on my local setup, apparently due to network throttling.
    * Remove unnecessary `console.log()` and improve remaining
      `console.log()` to provide clearer information.
    
    PR-URL: #25485
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    307da2d View commit details
    Browse the repository at this point in the history
  4. test: refactor pummel/test-net-pingpong

    * Use port 0 instead of `common.PORT`.
    * Use `//` for comments, capitalize comments, and add punctuation.
    
    PR-URL: #25485
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    6347940 View commit details
    Browse the repository at this point in the history
  5. src: reset StopTracingAgent() before platform teardown

    This makes sure that `StopTracingAgent()` is always called
    before tearing down the `tracing::Agent`,
    since previously its destructor might have tried to access the
    agent, which would be destroyed by the (earlier) `Dispose()` call.
    
    PR-URL: #25472
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    7ffa8ec View commit details
    Browse the repository at this point in the history
  6. src: call Environment::Exit() for fatal exceptions

    Call `Environment::Exit()` rather than the process-wide
    `exit()` function, since JS exceptions generally only affect
    the current JS engine instance.
    
    PR-URL: #25472
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    0897504 View commit details
    Browse the repository at this point in the history
  7. build: introduce --openssl-is-fips flag

    This commit introduces a new configuration flag named
    --openssl-is-fips which is intended to be used when linking against
    an OpenSSL library that is FIPS compatible.
    
    The motivation for this is that Red Hat Enterprise Linux 8 (RHEL8)
    comes with OpenSSL 1.1.1 and includes FIPS support, and we would
    like to be able to dynamically link against this version and also have
    FIPS features enabled in node, like would be done when statically
    linking and using the --openssl-fips flag.
    
    The suggestion here is to introduce a new flag:
    $ ./configure --help
    ...
    --openssl-is-fips specifies that the shared OpenSSL version is FIPS
                      compatible
    
    This flag could be used in combination with the shared-openssl flag:
    $ ./configure --shared-openssl ---openssl-is-fips
    
    This will enable FIPS support in node and the runtime flags will be
    availalbe to enable FIPS (--enable-fips, --force-fips).
    
    PR-URL: #25412
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    47d040d View commit details
    Browse the repository at this point in the history
  8. src: fix FIPS section in Sign::SignFinal

    Currently, while FIPS is not supported yet for this release there might
    be an option to dynamically link against a FIPS compatible OpenSSL
    version.
    
    This commit fixes the compiler errors.
    
    PR-URL: #25412
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    03e05cb View commit details
    Browse the repository at this point in the history
  9. doc: add metadata about ecdh curve options

    - DEFAULT_ECDH_CURVE default changed to 'auto' for 10.0.0
    - ecdhCurve parameter allowed multiple values and 'auto' from 9.0.0
    
    PR-URL: #25502
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    sam-github authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    26c5bd8 View commit details
    Browse the repository at this point in the history
  10. test: fix test-repl timeout and tmpdir refresh

    PR-URL: #25425
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    mscdex authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    ab86143 View commit details
    Browse the repository at this point in the history
  11. process: allow reading umask in workers

    Refs: #25448
    PR-URL: #25526
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    cjihrig authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    07f1bb0 View commit details
    Browse the repository at this point in the history
  12. doc: add Rich back to TSC list

    Fixes: nodejs/TSC#650
    
    PR-URL: #25535
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    mhdawson authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    4170230 View commit details
    Browse the repository at this point in the history
  13. test: add check for wrk to test-keep-alive

    test/pummel/test-keep-alive.js requires `wrk` to be installed. Check if
    it is, and skip the test if it isn't.
    
    This is yet another step in preparation for running pummel tests in CI
    daily.
    
    PR-URL: #25516
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    779ce29 View commit details
    Browse the repository at this point in the history
  14. test: refactor min() in test-hash-seed

    Replace min() function with Math.min(...).
    
    PR-URL: #25522
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    35240ca View commit details
    Browse the repository at this point in the history
  15. test: prepare test-hash-seed for CI

    Reduce the time it takes to run test/pummel/test-hash-seed by switching
    from spawnSync() to spawn(). On my computer, this reduces the runtime
    from about 80 seconds to about 40 seconds. This test is not (yet) run
    regularly on CI, but when it was run recently, it timed out.
    
    PR-URL: #25522
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    cfcb759 View commit details
    Browse the repository at this point in the history
  16. doc: fix typo in Buffer API

    PR-URL: #25544
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    H1Gdev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    688fb8d View commit details
    Browse the repository at this point in the history
  17. test: do not use uninitialized memory in common flags check

    Only use the amount of data that was actually read from the test file.
    Otherwise, there is a small risk of getting false positives, and
    generally reading uninitialized memory makes using automated
    memory error detection tools harder.
    
    PR-URL: #25475
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    4c207d9 View commit details
    Browse the repository at this point in the history
  18. util: fix iterable types with special prototype

    The fallback should only be taken for a null prototype. If an
    iterable data type (e.g., Array) has a prototype without
    `Symbol.iterator`, just try the best to visualize it as object.
    
    PR-URL: #25457
    Fixes: #25451
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    338f456 View commit details
    Browse the repository at this point in the history
  19. test: use fipsMode instead of common.hasFipsCrypto

    Currently, test-cli-node-print-help uses common.hasFipsCrypto to
    determine if the test should check for the existence of FIPS related
    options (--enable-fips, and --force-fips). The FIPS options are
    available when node has been compiled against an OpenSSL library with
    FIPS support in which case the test would verify that these  options
    are available. But by using crypto.fips (which uses crypto.getFips())
    this would only be checked when fips has been enabled, but these
    options are available regardless if FIPS is enabled or disabled.
    
    This commit updates the test to use fipsMode from config to determine
    if the FIPS options existence should be checked.
    
    PR-URL: #25510
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    4e52b07 View commit details
    Browse the repository at this point in the history
  20. crypto: fix key handle extraction

    PR-URL: #25562
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    tniessen authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    bb7f71a View commit details
    Browse the repository at this point in the history
  21. test: improve code coverage for i18n

    Coverage report for src/node_i18n.cc shows that the
    Has() method is not covered. This test adds coverage
    for that method.
    
    PR-URL: #25428
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    mhdawson authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    2112b70 View commit details
    Browse the repository at this point in the history
  22. test: ensure npm version is not release candidate

    v11.6.0 ended up shipping with an npm version `6.5.0-next.0`.
    This test should avoid it happening in the future.
    
    PR-URL: #25538
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    MylesBorins authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    b8d780c View commit details
    Browse the repository at this point in the history
  23. doc: add a note to buf.fill() description

    PR-URL: #25547
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    10bff7a View commit details
    Browse the repository at this point in the history
  24. test: relax chunk count expectations

    In parallel/test-fs-read-stream-concurrent-reads.js the number
    of data chunks used is being tested when few concurrent reads
    are performed. The number of chunks can fluctuate based on the
    number of concurrent reads as well as the data that was read in
    one shot. Accommodate these variations in the test.
    
    Fixes: #22339
    
    PR-URL: #25415
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    gireeshpunathil authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    faa1776 View commit details
    Browse the repository at this point in the history
  25. tls: make tls.connect() accept a timeout option

    If specified, and only when a socket is created internally, the option
    will make `socket.setTimeout()` to be called on the created socket with
    the given timeout.
    
    This is consistent with the `timeout` option of `net.connect()` and
    prevents the `timeout` option of the `https.Agent` from being ignored
    when a socket is created.
    
    PR-URL: #25517
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lpinca authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    58952a1 View commit details
    Browse the repository at this point in the history
  26. doc: correct my wrong note about buf.fill()

    PR-URL: #25585
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    vsemozhetbyt authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    0c046e8 View commit details
    Browse the repository at this point in the history
  27. http: reuse noop function in socketOnError()

    PR-URL: #25566
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    e55c5c3 View commit details
    Browse the repository at this point in the history
  28. doc: reword stream docs to clarify that decodeStrings encodes strings

    I was implementing a Writable stream and misunderstood `decodeStrings`
    to mean 'will decode `Buffer`s into `string`s before calling `_write`'.
    This change adds a little more detail to the description of
    `decodeStrings` to clarify its effect on a Writable stream & what gets
    passed to `_write`.
    
    Changing the name of the option to `encodeStrings` would make it much
    easier to understand, but the name was chosen in 2012 and the option
    used in many projects (22k mentions of 'decodeStringsr in JS projects in
    GitHub). Deprecating the old name & rolling out a replacement is beyond
    my capabilities as a first-time contributor.
    
    PR-URL: #25468
    Fixes: #25464
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    dgholz authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    c5d89e6 View commit details
    Browse the repository at this point in the history
  29. tools: update ESLint to 5.12.1

    Update ESLint to 5.12.1
    
    PR-URL: #25573
    Reviewed-By: Wyatt Preul <wpreul@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    cjihrig authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    d9da4af View commit details
    Browse the repository at this point in the history
  30. test: change ciphers from RC4 to no-such-cipher

    This commit updates option ciphers from 'RC4' to 'no-such-cipher' in
    test/parallel/test-tls-handshake-error.js.
    
    The motivation for this change is that this test is verifying that a
    'no ciphers match' error be thrown, but 'RC4' might be among the ciphers
    supported by the OpenSSL version when dynamically linking. I ran into
    this specific issue when dynamically linking against OpenSSL 1.1.1 on
    RHEL8 using #25381.
    
    PR-URL: #25534
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    3dcdf27 View commit details
    Browse the repository at this point in the history
  31. test: use stronger curves for keygen

    This commit updates the named curves P-192 (prime192v1), and secp192k1
    to 256 bit versions.
    
    The motivation for this is that in Red Hat Enterprise Linux (RHEL) all
    ECC curves < 224 bits are removed from OpenSSL provided by the system.
    I'm not sure if other distributions do this but these 256 bit curves are
    availalbe in OpenSSL 1.1.0j (current version on master) and OpenSSL
    1.1.1 so as far as I can tell it should be safe change to make.
    
    PR-URL: #25564
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    danbev authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    efe089e View commit details
    Browse the repository at this point in the history
  32. src: reduce includes of node_internals.h

    PR-URL: #25507
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    291cedf View commit details
    Browse the repository at this point in the history
  33. test: changed function to arrow function

    PR-URL: #25441
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    yathamravali authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    5684da5 View commit details
    Browse the repository at this point in the history
  34. process: check env->EmitProcessEnvWarning() last

    Calling env->EmitProcessEnvWarning() prevents additional warnings
    from being set it should therefore be called only if a warning will
    emit.
    
    PR-URL: #25575
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    bcoe authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    92dd899 View commit details
    Browse the repository at this point in the history
  35. tools: improve valgrind support

    - Generate and use a list of suppressions that reduce noisiness for
      known (non-)issues.
    - Use `--zero-fill-buffers` for tests, as they sometimes use
      `Buffer.allocUnsafe()` and valgrind reports that as usage
      of uninitialized memory.
    
    PR-URL: #25498
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    1cbadd8 View commit details
    Browse the repository at this point in the history
  36. tls: do not free cert in .getCertificate()

    The documentation of `SSL_get_certificate` states that it returns
    an internal pointer that must not be freed by the caller.
    
    Therefore, using a smart pointer to take ownership is incorrect.
    
    Refs: https://man.openbsd.org/SSL_get_certificate.3
    Refs: #24261
    Fixes: https://github.com/nodejs-private/security/issues/217
    
    PR-URL: #25490
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    c3409f5 View commit details
    Browse the repository at this point in the history
  37. doc: hyperlink reference to process.nextTick

    PR-URL: #25615
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    sam-github authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    65478fa View commit details
    Browse the repository at this point in the history
  38. http: make ClientRequest#setTimeout() noop at end

    Originally discovered and resolved by @szmarczak.
    
    PR-URL: #25536
    Fixes: #25499
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    timdp authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    d6b50c6 View commit details
    Browse the repository at this point in the history
  39. test,worker: verify that .terminate() breaks microtask queue

    PR-URL: #25480
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    aa9a86a View commit details
    Browse the repository at this point in the history
  40. build: do not lint python scripts under test/fixtures

    PR-URL: #25639
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    joyeecheung authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    28894af View commit details
    Browse the repository at this point in the history
  41. build: remove erroneous duplicate declaration from node_inspector.gypi

    PR-URL: #25586
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    refack authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    8cc936a View commit details
    Browse the repository at this point in the history
  42. src: pass along errors from --security-reverts

    Pass along errors from `Revert()` when a security revert
    is unknown (which currently applies to all possible values).
    
    Previously, we would unconditionally call `exit()`, which is
    not nice for embedding use cases, and could crash because we
    were holding a lock for a mutex in `ProcessGlobalArgs()` that
    would be destroyed by calling `exit()`.
    
    Also, add a regression test that makes sure that the process
    exits with the right exit code and not a crash.
    
    PR-URL: #25466
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    d9a8113 View commit details
    Browse the repository at this point in the history
  43. test: replace common.PORT with 0 in https renegotiation test

    Repeated use of common.PORT was resulting in sporadic failures on some
    operating systems.
    
    PR-URL: #25599
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    6881454 View commit details
    Browse the repository at this point in the history
  44. src: restrict unloading addons to Worker threads

    Unloading native addons from the main thread was an (presumably
    unintended) significant breaking change, because addons may
    rely on their memory being available after an `Environment` exits.
    
    This patch only restricts this to Worker threads, at least for the
    time being, and thus matches the behaviour from
    #23319.
    
    PR-URL: #25577
    Refs: #24861
    Refs: #23319
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    55768c0 View commit details
    Browse the repository at this point in the history
  45. process: fix call process.reallyExit, vs., binding

    Some user-land modules, e.g., nyc, mocha, currently rely on patching
    process.reallyExit.
    
    PR-URL: #25655
    Fixes: #25650
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    bcoe authored and addaleax committed Jan 23, 2019
    1
    Copy the full SHA
    b2834ce View commit details
    Browse the repository at this point in the history
  46. build: make install.py python 3 compatiable

    This patch replaces usage of `filter` in such a way that it will be
    compatible with Python 3. Also, this patch replaces the usage of `map`
    to do a side-effect work with normal `for` loop.
    
    PR-URL: #25583
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    thefourtheye authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    34da9a3 View commit details
    Browse the repository at this point in the history
  47. test: remove potential race condition in https renegotiation test

    In test/pummel/test-https-ci-reneg-attack.js, there is a boolean that is
    causing a race condition on some operating systems. It is unnecessary.
    Remove it.
    
    PR-URL: #25601
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    5a0332e View commit details
    Browse the repository at this point in the history
  48. test: revoke flaky designation for tests

    A number of tests that were `flaked` recently are proved
    to have failing reason identified in
    #25007 and resolution
    identified in #25061
    
    Revoke flaky designation of all these tests as the said
    PR is landed.
    
    PR-URL: #25611
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    gireeshpunathil authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    ecd358b View commit details
    Browse the repository at this point in the history
  49. process: clarify the pre- and post-condition of esm setup

    This patch:
    
    - Clarifies the dependency of the ESM loader initialization
      (`process.cwd()` and the value of `--loader`) in `node.js`.
    - Moves the initialization of the per-isolate `importModuleDynamically`
      and `initializeImportMetaObject` callbacks into `node.js`
    - Moves the initialization of the ESM loader into
      `prepareUserCodeExecution()` since it potentially involves
      execution of user code (similar to `--require` for CJS modules).
    
    PR-URL: #25530
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    647a37f View commit details
    Browse the repository at this point in the history
  50. console: refactor inspector console extension installation

    - Instead of creating the console extensions eagerly during bootstrap
      and storing them on an object, wrap the code into a function to be
      called during `installAdditionalCommandLineAPI` only when the
      extensions are actually needed, which may not even happen if the
      user do not use the console in an inspector session, and does not
      need to happen during bootstrap unconditionally.
    - Simplify the console methods wrapping and move the `consoleFromVM`
      storage to `internal/util/inspector.js`
    
    PR-URL: #25450
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    joyeecheung authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    3c661f0 View commit details
    Browse the repository at this point in the history
  51. http2: allow fully synchronous _final()

    HTTP/2 streams do not use the fact that the native
    `StreamBase::Shutdown()` is asynchronous by default and
    always finish synchronously.
    
    Adding a status code for this scenario allows skipping an
    expensive `MakeCallback()` C++/JS boundary crossing.
    
    PR-URL: #25609
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    9a410a1 View commit details
    Browse the repository at this point in the history
  52. events: show inspected error in uncaught 'error' message

    If there is no handler for `.emit('error', value)` and `value`
    is not an `Error` object, we currently just call `.toString()`
    on it.
    
    Almost always, using `util.inspect()` provides better information
    for diagnostic purposes, so prefer to use that instead.
    
    Refs: nodejs/help#1729
    
    PR-URL: #25621
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    addaleax committed Jan 23, 2019
    Copy the full SHA
    593714e View commit details
    Browse the repository at this point in the history
  53. test: switch to native v8 coverage

    PR-URL: #25157
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    bcoe authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    7490fc8 View commit details
    Browse the repository at this point in the history
  54. doc: running coverage for individual suites

    PR-URL: #25622
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    bcoe authored and addaleax committed Jan 23, 2019
    Copy the full SHA
    eac438a View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. policy: manifest with subresource integrity checks

    This enables code loaded via the module system to be checked for
    integrity to ensure the code loaded matches expectations.
    
    PR-URL: #23834
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    bmeck authored and targos committed Jan 24, 2019
    Copy the full SHA
    da8c526 View commit details
    Browse the repository at this point in the history
  2. worker: enable passing command line flags

    This PR adds the ability to provide Workers with their own
    execArgv flags in replacement of the main thread's execArgv. Only
    per-Isolate/per-Environment options are allowed. Per-Process options
    and V8 flags are not allowed. Passing an empty execArgv array will
    reset per-Isolate and per-Environment options of the Worker to their
    defaults. If execArgv option is not passed, the Worker will get
    the same flags as the main thread.
    
    Usage example:
    ```
    const worker = new Worker(__filename, {
        execArgv: ['--trace-warnings'],
    });
    ```
    
    PR-URL: #25467
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    yaelhe authored and targos committed Jan 24, 2019
    Copy the full SHA
    219b1b8 View commit details
    Browse the repository at this point in the history
  3. src: merge into core

    Make node-report part of core runtime because:
    
    1. When enabled, node-report significantly helps root cause various
    types of problems, including support issues sent to the various repos
    of the Node.js organization.
    
    2. The requirement of explicitly adding the dependency to node-report
    in user applications often represents a blocker to adoption.
    
    Major deviation from the module version of the node-report is that the
    report is generated in JSON format, as opposed to human readable text.
    
    No new functionalities have been added, changes that are required for
    melding it as a built-in capability has been affected on the module
    version of node-report (https://github.com/nodejs/node-report)
    
    Co-authored-by: Bidisha Pyne <bidipyne@in.ibm.com>
    Co-authored-by: Howard Hellyer <hhellyer@uk.ibm.com>
    Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Co-authored-by: Julian Alimin <dmastag@yahoo.com>
    Co-authored-by: Lakshmi Swetha Gopireddy <lakshmigopireddy@in.ibm.com>
    Co-authored-by: Manusaporn Treerungroj <m.treerungroj@gmail.com>
    Co-authored-by: Michael Dawson <michael_dawson@ca.ibm.com>
    Co-authored-by: Richard Chamberlain <richard_chamberlain@uk.ibm.com>
    Co-authored-by: Richard Lau <riclau@uk.ibm.com>
    Co-authored-by: Sam Roberts <vieuxtech@gmail.com>
    Co-authored-by: Vipin Menon <vipinmv1@in.ibm.com>
    
    PR-URL: #22712
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <Michael_Dawson@ca.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    gireeshpunathil authored and targos committed Jan 24, 2019
    Copy the full SHA
    549216a View commit details
    Browse the repository at this point in the history
  4. doc: add node-report documentation

    a separate section added for node-report at top level
    main documentation added to doc/api/report.md
    API documentation added to doc/api/process.md
    
    PR-URL: #22712
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <Michael_Dawson@ca.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    vipinmenon authored and targos committed Jan 24, 2019
    Copy the full SHA
    4f38106 View commit details
    Browse the repository at this point in the history
  5. test: add node-report tests

    One test per each API, so that additional tests in future are modular.
    test/common/report.js contain common functions  that tests leverage.
    
    PR-URL: #22712
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <Michael_Dawson@ca.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    LakshmiSwethaG authored and targos committed Jan 24, 2019
    Copy the full SHA
    0800f91 View commit details
    Browse the repository at this point in the history
  6. src: silence compiler warning in node_report.cc

    Currently the following compiler warnings is generated:
    ../src/node_report.cc:778:43:
    warning: format specifies type 'unsigned long' but the argument has
    type 'rlim_t' (aka 'unsigned long long') [-Wformat]
            snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
                                        ~~~   ^~~~~~~~~~~~~~
                                        %llu
    1 warning generated.
    
    This commit changes the format specifier to $llu.
    
    PR-URL: #25557
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    danbev authored and targos committed Jan 24, 2019
    Copy the full SHA
    8f42c9e View commit details
    Browse the repository at this point in the history
  7. deps: upgrade to libuv 1.25.0

    PR-URL: #25571
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    c0859d7 View commit details
    Browse the repository at this point in the history
  8. src: remove outdated Neuter() call in node_buffer.cc

    This call was introduced in 827ee49 to avoid a crash in a
    later `Neuter()` call that has later been removed in ebbbc5a,
    rendering the original call unnecessary.
    
    Refs: #3624
    Refs: #5204
    
    PR-URL: #25479
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    addaleax authored and targos committed Jan 24, 2019
    Copy the full SHA
    dbecc82 View commit details
    Browse the repository at this point in the history
  9. doc: use correct placeholder for policy docs

    PR-URL: #25627
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    addaleax authored and targos committed Jan 24, 2019
    Copy the full SHA
    5440f9d View commit details
    Browse the repository at this point in the history
  10. n-api: mark thread-safe function as stable

    Fixes: #24249
    PR-URL: #25556
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and targos committed Jan 24, 2019
    Copy the full SHA
    2b18582 View commit details
    Browse the repository at this point in the history
  11. report: remove unnecessary intermediate variable

    PR-URL: #25597
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    42bbe58 View commit details
    Browse the repository at this point in the history
  12. report: remove unnecessary includes

    PR-URL: #25597
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    213eddd View commit details
    Browse the repository at this point in the history
  13. report: use uv_pid_t instead of custom PID_TYPE

    PR-URL: #25597
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    c598d98 View commit details
    Browse the repository at this point in the history
  14. report: simplify option checking

    Also update the code for house style.
    
    PR-URL: #25597
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    a02b621 View commit details
    Browse the repository at this point in the history
  15. report: simplify rlimit to JSON logic

    PR-URL: #25597
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    0f91e03 View commit details
    Browse the repository at this point in the history
  16. n-api: change #ifdef to #if in node_api_types

    Currently, there are a number of compiler warnings like the following:
    In file included from ../src/node_api.h:11:
    ../src/node_api_types.h:13:21:x
     warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
     #ifdef NAPI_VERSION >= 4
    
    This commit changes the #ifdef macros to #if.
    
    PR-URL: #25635
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and targos committed Jan 24, 2019
    Copy the full SHA
    f688e73 View commit details
    Browse the repository at this point in the history
  17. os: implement os.release() using uv_os_uname()

    For non-Windows platforms, the happy path behavior should be
    identical. On Windows, uv_os_uname() attempts to use
    RtlGetVersion() before falling back to the deprecated
    GetVersionExW() that Node was previously using.
    
    PR-URL: #25600
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    0ebe6eb View commit details
    Browse the repository at this point in the history
  18. report: remove InitializeReport()

    PR-URL: #25598
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax authored and targos committed Jan 24, 2019
    Copy the full SHA
    4031b5c View commit details
    Browse the repository at this point in the history
  19. build: remove AIX/ppc (32bit) dead code

    * also dedup OS400 detection
    
    PR-URL: #25523
    Refs: https://github.com/nodejs/node/pull/25447/files/36839defcfaf7c46435e16fb1f0da006f3ebe8ac#r247378894
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    refack authored and targos committed Jan 24, 2019
    Copy the full SHA
    5fab92c View commit details
    Browse the repository at this point in the history
  20. test: add stdio checks to cp-exec-maxBuffer

    Expands this test case to check what happens to stdout/stderr when
    maxBuffer is exceeded.
    
    Also changes how cases are checked so that assertion stacks are
    tracable to their test case, aka 'make it actually debuggable'.
    
    PR-URL: #24951
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Fishrock123 authored and targos committed Jan 24, 2019
    Copy the full SHA
    90a64ab View commit details
    Browse the repository at this point in the history
  21. child_process: truncate output when maxBuffer is exceeded

    Preserves truncated output for `child_process.exec()` when `maxBuffer`
    is exceeded.
    
    This is particularly useful for commands which have indistinguishable
    error codes for what output they produce.
    
    PR-URL: #24951
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Fishrock123 authored and targos committed Jan 24, 2019
    Copy the full SHA
    ac5fa2c View commit details
    Browse the repository at this point in the history
  22. crypto: add crypto modules to cannotUseCache

    Currently, when configured --without-ssl there are two failures like the
    following:
    
    internal/util.js:101
        throw new ERR_NO_CRYPTO();
        ^
    
    Error [ERR_NO_CRYPTO]:
    Node.js is not compiled with OpenSSL crypto support
      at assertCrypto (internal/util.js:101:11)
      at crypto.js:31:1
      at NativeModule.compile (internal/bootstrap/loaders.js:316:5)
      at NativeModule.require (internal/bootstrap/loaders.js:219:7)
      at internal/policy/manifest.js:10:16
      at NativeModule.compile (internal/bootstrap/loaders.js:316:5)
      at NativeModule.require (internal/bootstrap/loaders.js:219:7)
      at internal/process/policy.js:6:22
      at NativeModule.compile (internal/bootstrap/loaders.js:316:5)
      at Function.NativeModule.require (internal/bootstrap/loaders.js:219:7)
    
    This commit adds policy/manifest and process/policy to cannotUseCache.
    
    PR-URL: #25606
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and targos committed Jan 24, 2019
    Copy the full SHA
    f415069 View commit details
    Browse the repository at this point in the history
  23. src: remove using v8::Function in node_os.cc

    PR-URL: #25640
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    cjihrig authored and targos committed Jan 24, 2019
    Copy the full SHA
    c59edca View commit details
    Browse the repository at this point in the history
  24. test: pull html/webappapis/microtask-queuing WPT

    With the command:
    
    ```
    git node wpt html/webappapis/microtask-queuing
    ```
    
    PR-URL: #25616
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and MylesBorins committed Jan 24, 2019
    Copy the full SHA
    572a70f View commit details
    Browse the repository at this point in the history
  25. test: run html/webappapis/microtask-queuing WPT

    PR-URL: #25616
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and MylesBorins committed Jan 24, 2019
    Copy the full SHA
    74ee8d3 View commit details
    Browse the repository at this point in the history
  26. test: clarify the path relativeness of WPT runner classes

    PR-URL: #25616
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and MylesBorins committed Jan 24, 2019
    Copy the full SHA
    08ade9b View commit details
    Browse the repository at this point in the history
  27. test: fix pummel/test-exec

    Fix test/pummel/test-exec.js which broke as a result of
    e47f972
    (#24951).
    
    (Until very recently, pummel tests were not run at all in CI and
    currently only run nightly on master.)
    
    PR-URL: #25677
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Trott authored and MylesBorins committed Jan 24, 2019
    Copy the full SHA
    a9ffce9 View commit details
    Browse the repository at this point in the history
  28. doc: add note regarding pushing release tags

    Tags shouldn't be pushed unless the remainder of release steps are able
    to be completed.
    
    PR-URL: #25569
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    MylesBorins committed Jan 24, 2019
    Copy the full SHA
    9d8a225 View commit details
    Browse the repository at this point in the history
  29. report: remove internalBinding('config').hasReport

    The `setup()` method is only called when the `--experimental-report`
    option is set. `getOptionValue()` returns `undefined` when
    the flag is not defined, so the extra check inside of `setup()` is
    redundant.
    
    PR-URL: #25610
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax committed Jan 24, 2019
    Copy the full SHA
    64959b6 View commit details
    Browse the repository at this point in the history
  30. src: remove unnecessary filename variable

    PR-URL: #25610
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax committed Jan 24, 2019
    Copy the full SHA
    a161a9b View commit details
    Browse the repository at this point in the history
  31. report: roll extra loop iteration in PrintNativeStack()

    PR-URL: #25610
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax committed Jan 24, 2019
    Copy the full SHA
    07a0dc8 View commit details
    Browse the repository at this point in the history
  32. report: downgrade reinterpret_cast to static_cast

    PR-URL: #25610
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax committed Jan 24, 2019
    Copy the full SHA
    03ba344 View commit details
    Browse the repository at this point in the history
  33. report: use uv_handle_type_name() to get handle type

    PR-URL: #25610
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax committed Jan 24, 2019
    Copy the full SHA
    f3d0591 View commit details
    Browse the repository at this point in the history
  34. 2019-01-24, Version 11.8.0 (Current)

    Notable Changes:
    
    * events:
      * For unhandled `error` events with an argument that is not an
        `Error` object, the resulting exeption will have more information
        about the argument.
        #25621
    * child_process:
      * When the `maxBuffer` option is passed, `stdout` and `stderr` will
        be truncated rather than unavailable in case of an error.
        #24951
    * policy:
      * Experimental support for module integrity checks through a manifest
        file is implemented now.
        #23834
    * n-api:
      * The `napi_threadsafe_function` feature is now stable.
        #25556
    * report:
      * An experimental diagnostic API for capturing process state is
        available as `process.report` and through command line flags.
        #22712
    * tls:
      * `tls.connect()` takes a `timeout` option analogous to the
        `net.connect()` one.
        #25517
    * worker:
      * `process.umask()` is available as a read-only function inside Worker
        threads now.
        #25526
      * An `execArgv` option that supports a subset of Node.js command line
        options is supported now.
        #25467
    
    PR-URL: #25687
    MylesBorins committed Jan 24, 2019
    Copy the full SHA
    11ee794 View commit details
    Browse the repository at this point in the history