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.10.0 proposal #26098

Merged
merged 223 commits into from
Feb 14, 2019
Merged

v11.10.0 proposal #26098

merged 223 commits into from
Feb 14, 2019

Commits on Jan 30, 2019

  1. inspector, trace_events: make sure messages are sent on a main thread

    Fixes: #23185
    PR-URL: #24814
    Reviewed-By: James M Snell <jasnell@gmail.com>
    eugeneo authored and addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    6967407 View commit details
    Browse the repository at this point in the history
  2. lib: refactor ERR_SYNTHETIC

    - Tidy up description in docs.
    - Remove a second definition in the docs.
    - Remove unused string input parameter.
    - Remove duplicate "JavaScript Callstack" in error messages.
    
    PR-URL: #25749
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    99bc0df View commit details
    Browse the repository at this point in the history
  3. report: split up osVersion and machine values

    Prior to this commit, on non-Windows platforms, the "osVersion"
    value was prepended to the "machine" value.
    
    PR-URL: #25755
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    cc22fd7 View commit details
    Browse the repository at this point in the history
  4. report: use consistent format for dumpEventTime

    Use the same JS-compatible format on both POSIX and Windows.
    
    PR-URL: #25751
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    d463181 View commit details
    Browse the repository at this point in the history
  5. src: turn ROUND_UP into an inline function

    PR-URL: #25743
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    d9c2690 View commit details
    Browse the repository at this point in the history
  6. src: add handle scope to OnFatalError()

    For the report generation, we use `Environment::GetCurrent(isolate)`
    which uses `isolate->GetCurrentContext()` under the hood, thus
    allocates a handle. Without a `HandleScope`, this is invalid.
    
    This might not strictly be allowed inside of `OnFatalError()`,
    but it won’t make anything worse either.
    
    PR-URL: #25775
    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: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    0949039 View commit details
    Browse the repository at this point in the history
  7. src: add debug check for inspector uv_async_t

    Add a check to make sure start_io_thread_async is not
    accidentally re-used or used when uninitialized.
    (This is a bit of an odd check imo, but it helped me figure
    out a real issue and it might do so again, so… why not?)
    
    PR-URL: #25777
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    3f080d1 View commit details
    Browse the repository at this point in the history
  8. src: fix indentation in a few node_http2 enums

    PR-URL: #25761
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    35454e0 View commit details
    Browse the repository at this point in the history
  9. src: simplify SlicedArguments

    Re-use the existing `MaybeStackBuffer` logic for `SlicedArguments`.
    
    PR-URL: #25745
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    be499c3 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. tools: bump cpplint.py to 3d8f6f876d

    PR-URL: #25771
    Fixes: #25760
    Refs: https://github.com/cpplint/cpplint/blob/3d8f6f876dd6e3918e5641483298dbc82e65f358/cpplint.py
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    refack authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    b9289f4 View commit details
    Browse the repository at this point in the history
  2. tools: refloat Node.js patches to cpplint.py

    * Preserve 3 node-core checks
    * Preserve patch to `FileInfo.RepositoryName`
    * Remove TAP to logfile (unused)
    
    PR-URL: #25771
    Fixes: #25760
    Refs: https://github.com/cpplint/cpplint/blob/3d8f6f876dd6e3918e5641483298dbc82e65f358/cpplint.py
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    refack authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    454278a View commit details
    Browse the repository at this point in the history
  3. process: simplify report uncaught exception logic

    This commit combines two if statements into a single if
    statement. Another if statement is replaced with a ternary.
    
    PR-URL: #25744
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    cc253b5 View commit details
    Browse the repository at this point in the history
  4. doc: revise style guide

    Use italics for words-as-words within style guide. Other minor
    improvements.
    
    PR-URL: #25778
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    fd98d62 View commit details
    Browse the repository at this point in the history
  5. doc: revise inspect security info in cli.md

    Revise inspect security information in cli.md.
    
    * Reword sentence for brevity.
    * Use bulleted list for clarity of options.
    * Eliminate personal pronoun (_you_) per style guide.
    
    PR-URL: #25779
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    accb8ae View commit details
    Browse the repository at this point in the history
  6. doc: remove outdated COLLABORATOR_GUIDE sentence about breaking changes

    The TSC has delegated authority over LTS and Current branches to the
    Release WG. Remove the bullet point about TSC having authority to
    determine that a breaking change is necessary on LTS and Current release
    branches. Retaining that authority would require de-chartering the
    Release WG.
    
    Fixes: nodejs/TSC#660
    
    PR-URL: #25780
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Trott authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    f5db509 View commit details
    Browse the repository at this point in the history
  7. src: make deleted functions public in node.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25764
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    gengjiawen authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    0b014d5 View commit details
    Browse the repository at this point in the history
  8. src: make StreamPipe::Unpipe() more resilient

    Clean up `StreamPipe::Unpipe()` to be more resilient against
    unexpected exceptions, in particular while executing its
    `MakeCallback()` line (which can fail in the presence of
    termination exceptions), and clean up the getter/setter part
    of the code to match that pattern as well (even though it should
    not fail as part of regular operations).
    
    PR-URL: #25716
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    b779c07 View commit details
    Browse the repository at this point in the history
  9. http: make timeout event work with agent timeout

    The `'timeout'` event is currently not emitted on the `ClientRequest`
    instance when the socket timeout expires if only the `timeout` option
    of the agent is set. This happens because, under these circumstances,
    `listenSocketTimeout()` is not called.
    
    This commit fixes the issue by calling it also when only the agent
    `timeout` option is set.
    
    PR-URL: #25488
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lpinca authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    25c19eb View commit details
    Browse the repository at this point in the history
  10. test: pull html/webappapis/timers WPT

    Using
    
    ```
    git node wpt html/webappapis/timers
    ```
    
    PR-URL: #25618
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    5792208 View commit details
    Browse the repository at this point in the history
  11. test: run html/webappapis/timers WPT

    PR-URL: #25618
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    5bffcf6 View commit details
    Browse the repository at this point in the history
  12. report: fix typo in error message

    PR-URL: #25782
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    f6c8820 View commit details
    Browse the repository at this point in the history
  13. report: disambiguate glibc versions

    - Give the glibc version entries more specific names.
    - Group all of the glibc version reporting together.
    
    PR-URL: #25781
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    b1e0c43 View commit details
    Browse the repository at this point in the history
  14. src: workaround MSVC compiler bug

    PR-URL: #25596
    Fixes: #25593
    Refs: https://developercommunity.visualstudio.com/content/problem/432157/dynamic-initializers-out-of-order.html
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    refack authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    998cea5 View commit details
    Browse the repository at this point in the history
  15. doc: add documentation for request.path

    The field has been added in v0.4.0.
    
    PR-URL: #25788
    Refs: b09c588#diff-1c0f1c434b17b7f8795d44a51a14320aR814
    Refs: https://github.com/nodejs/node/blob/380929ec0c4c4004b522bed5e3800ebce2b68bfd/test/parallel/test-http-client-defaults.js
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    gjbkz authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    7a1f166 View commit details
    Browse the repository at this point in the history
  16. benchmark: refactor _http-benchmarkers.js

    Refactor _http-benchmarkers.js:
    
    * The file used a mixture of inline callbacks with the `function`
      keyword and arrow functions. Use arrow functions for consistency.
    * The file used a mixture of trailing commas and no trailing commas. Use
      trailing commas for consistency.
    
    PR-URL: #25803
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    40398fd View commit details
    Browse the repository at this point in the history
  17. benchmark: refactor benchmark/common.js

    Refactor benchmark/common.js to consistently use arrow functions for
    anonymous callbacks and trailing commas.
    
    PR-URL: #25805
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    18b344c View commit details
    Browse the repository at this point in the history
  18. crypto: fix public key encoding name in comment

    PKCS#8 describes an encoding for private keys, not public keys. Using
    the name as a format usually refers to the PrivateKeyInfo structure it
    defines. (Or sometimes the EncryptedPrivateKeyInfo variant or the
    little-used OneAsymmetricKey extension defined in RFC 5958.) None of
    these structures can hold public keys to begin with.
    
    d2i_PUBKEY actually parses the public key analogous format defined in
    X.509, SubjectPublicKeyInfo. This function already uses "X.509" to refer
    to an entire certificate, so say SubjectPublicKeyInfo in the comment.
    
    (The abbreviation SPKI sometimes refers to SubjectPublicKeyInfo, e.g. in
    RFC 7469, but it can also an alternate S-expression-based PKI to X.509,
    Simple Public Key Infrastructure. To avoid confusion, stick with the
    expanded name.)
    
    PR-URL: #25736
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    davidben authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    da46be2 View commit details
    Browse the repository at this point in the history
  19. test, tools: suppress addon function cast warnings

    Currently, there are a number of compiler warnings generated when
    building the addons on Linux, for example:
    
    make[1]: Entering directory '/node/test/addons/zlib-binding/build'
      CXX(target) Release/obj.target/binding/binding.o
      SOLINK_MODULE(target) Release/obj.target/binding.node
      COPY Release/binding.node
    make[1]: Leaving directory '/node/test/addons/zlib-binding/build'
    In file included from ../binding.cc:1:
    /node/src/node.h:515:51: warning:
    cast between incompatible function types from
    'void (*)(v8::Local<v8::Object>,
              v8::Local<v8::Value>,
              v8::Local<v8::Context>)' to
    'node::addon_context_register_func' {aka
    'void (*)(v8::Local<v8::Object>,
              v8::Local<v8::Value>,
              v8::Local<v8::Context>,
              void*)'} [-Wcast-function-type]
    (node::addon_context_register_func) (regfunc), \
    					   ^
    /node/src/node.h:533:3:
    note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE_X'
       NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../binding.cc:58:1:
    note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE'
     NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)
     ^~~~~~~~~~~~~~~~~~~~~~~~~
    
    This commit adds the flag -Wno-cast-function-type to suppress these
    warnings. With this change the warnings are not displayed anymore and
    the output matches that of osx when running
    'make -j8 test/addons/.buildstamp'.
    
    PR-URL: #25663
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    danbev authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    d683da7 View commit details
    Browse the repository at this point in the history
  20. worker: throw for duplicates in transfer list

    Throw a `DataCloneError` exception when encountering duplicate
    `ArrayBuffer`s or `MessagePort`s in the transfer list.
    
    Fixes: #25786
    
    PR-URL: #25815
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    55c2702 View commit details
    Browse the repository at this point in the history
  21. deps: cherry-pick c736883 from upstream V8

    Original commit message:
    
        Optionally use halfsiphash for integer hashing.
    
        Change-Id: Ibd14f7b3fe78635675c76ae864112e3a3a7bc701
        Reviewed-on: https://chromium-review.googlesource.com/c/1382463
        Commit-Queue: Yang Guo <yangguo@chromium.org>
        Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#58674}
    
    Refs: v8/v8@c736883
    hashseed authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    411f6fe View commit details
    Browse the repository at this point in the history
  22. deps: v8, cherry-pick 9365d09, aac2f8c, 47d34a3

      Original commit message 9365d09:
    
          [coverage] Rework continuation counter handling
    
          This changes a few bits about how continuation counters are handled.
    
          It introduces a new mechanism that allows removal of a continuation
          range after it has been created. If coverage is enabled, we run a first
          post-processing pass on the AST immediately after parsing, which
          removes problematic continuation ranges in two situations:
    
          1. nested continuation counters - only the outermost stays alive.
          2. trailing continuation counters within a block-like structure are
             removed if the containing structure itself has a continuation.
    
          R=bmeurer@chromium.org, jgruber@chromium.org, yangguo@chromium.org
    
          Bug: v8:8381, v8:8539
          Change-Id: I6bcaea5060d8c481d7bae099f6db9f993cc30ee3
          Reviewed-on: https://chromium-review.googlesource.com/c/1339119
          Reviewed-by: Yang Guo <yangguo@chromium.org>
          Reviewed-by: Leszek Swirski <leszeks@chromium.org>
          Reviewed-by: Georg Neis <neis@chromium.org>
          Commit-Queue: Jakob Gruber <jgruber@chromium.org>
          Cr-Commit-Position: refs/heads/master@{#58443}
    
      Refs: v8/v8@9365d09
    
      Original commit message aac2f8c:
    
          [coverage] Filter out singleton ranges that alias full ranges
    
          Block coverage is based on a system of ranges that can either have
          both a start and end position, or only a start position (so-called
          singleton ranges). When formatting coverage information, singletons
          are expanded until the end of the immediate full parent range. E.g.
          in:
    
          {0, 10}  // Full range.
          {5, -1}  // Singleton range.
    
          the singleton range is expanded to {5, 10}.
    
          Singletons are produced mostly for continuation counters that track
          whether we execute past a specific language construct.
    
          Unfortunately, continuation counters can turn up in spots that confuse
          our post-processing. For example:
    
          if (true) { ... block1 ... } else { ... block2 ... }
    
          If block1 produces a continuation counter, it could end up with the
          same start position as the else-branch counter. Since we merge
          identical blocks, the else-branch could incorrectly end up with an
          execution count of one.
    
          We need to avoid merging such cases. A full range should always take
          precedence over a singleton range; a singleton range should never
          expand to completely fill a full range. An additional post-processing
          pass ensures this.
    
          Bug: v8:8237
          Change-Id: Idb3ec7b2feddc0585313810b9c8be1e9f4ec64bf
          Reviewed-on: https://chromium-review.googlesource.com/c/1273095
          Reviewed-by: Georg Neis <neis@chromium.org>
          Reviewed-by: Yang Guo <yangguo@chromium.org>
          Commit-Queue: Jakob Gruber <jgruber@chromium.org>
          Cr-Commit-Position: refs/heads/master@{#56531}
    
      Refs: v8/v8@aac2f8c
    
      deps: V8: backport 47d34a3
    
      Original commit message:
    
          Revert "[coverage] change block range to avoid ambiguity."
    
          This reverts commit 471fef0469d04d7c487f3a08e81f3d77566a2f50.
    
          Reason for revert: A more general fix incoming at https://crrev.com/c/1273095.
    
          Original change's description:
          > [coverage] change block range to avoid ambiguity.
          >
          > By moving the block range end to left of closing bracket,
          > we can avoid ambiguity where an open-ended singleton range
          > could be both interpreted as inside the parent range, or
          > next to it.
          >
          > R=<U+200B>verwaest@chromium.org
          >
          > Bug: v8:8237
          > Change-Id: Ibc9412b31efe900b6d8bff0d8fa8c52ddfbf460a
          > Reviewed-on: https://chromium-review.googlesource.com/1254127
          > Reviewed-by: Georg Neis <neis@chromium.org>
          > Commit-Queue: Yang Guo <yangguo@chromium.org>
          > Cr-Commit-Position: refs/heads/master@{#56347}
    
          TBR=yangguo@chromium.org,neis@chromium.org,verwaest@chromium.org
    
          # Not skipping CQ checks because original CL landed > 1 day ago.
    
          Bug: v8:8237
          Change-Id: I39310cf3c2f06a0d98ff314740aaeefbfffc0834
          Reviewed-on: https://chromium-review.googlesource.com/c/1273096
          Reviewed-by: Jakob Gruber <jgruber@chromium.org>
          Reviewed-by: Toon Verwaest <verwaest@chromium.org>
          Reviewed-by: Yang Guo <yangguo@chromium.org>
          Commit-Queue: Jakob Gruber <jgruber@chromium.org>
          Cr-Commit-Position: refs/heads/master@{#56513}
    
      Refs: v8/v8@47d34a3
    
    PR-URL: #25429
    Backport-PR-URL: #25728
    Reviewed-By: Yang Guo <yangguo@chromium.org>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    bcoe authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    673e434 View commit details
    Browse the repository at this point in the history
  23. test: allow coverage threshold to be enforced

    If COV_ENFORCE_THRESHOLD is set, tests run in coverage mode will
    exit with an error, if line coverage is below the percentage
    threshold.
    
    PR-URL: #25675
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    bcoe authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    704a440 View commit details
    Browse the repository at this point in the history
  24. report: separate release metadata

    Report release metadata separately from `componentVersions`.
    Test `componentVersions` and `release` values in the report.
    
    PR-URL: #25826
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    richardlau authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    1007416 View commit details
    Browse the repository at this point in the history
  25. test: exclude additional test for coverage

    Exclude async-hooks/test-callback-error as it seems
    to fail consistently when run with coverage on
    the docker ubuntu16 machines we plan to run the
    coverage sanity test on.
    
    PR-URL: #25833
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    mhdawson authored and addaleax committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    cdf3e84 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2019

  1. src: pass along errors from PromiseWrap instantiation

    PR-URL: #25734
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    
    PR-URL: #25837
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    882902c View commit details
    Browse the repository at this point in the history
  2. src: remove unused method in js_stream.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25790
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    gengjiawen authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    7556994 View commit details
    Browse the repository at this point in the history
  3. src: remove unused AsyncResource constructor in node.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25793
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    gengjiawen authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    8a8c178 View commit details
    Browse the repository at this point in the history
  4. tools: make test.py Python 3 compatible

    PR-URL: #25767
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: cclauss <cclauss@me.com>
    Reviewed-By: gengjiawen <technicalcute@gmail.com>
    thefourtheye authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    9f1bcd4 View commit details
    Browse the repository at this point in the history
  5. tools: add test-all-suites to Makefile

    There is currently no Makefile target that runs every test suite. This
    adds one.
    
    PR-URL: #25799
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Trott authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    9d2ea18 View commit details
    Browse the repository at this point in the history
  6. test: refactor test-http-agent-timeout-option

    Fix flakyness caused by usage of a non-routable IP address.
    
    Refs: #25488 (comment)
    
    PR-URL: #25854
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    lpinca authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    7cb9439 View commit details
    Browse the repository at this point in the history
  7. tools: exclude benchmark code from coverage report

    Refs: nodejs/build#1676 (comment)
    
    PR-URL: #25841
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    f395728 View commit details
    Browse the repository at this point in the history
  8. doc: remove redundant LTS/Current information in Collaborator Guide

    Remove bullet points about how breaking changes are handled in Current
    and LTS branches.
    
    * This information is covered in
      https://github.com/nodejs/Release#release-plan.
    * Having it here and in the above link means that the two may get out of
      sync, resulting in confusion.
    * The above link appears later in the doc in the LTS section.
    * Most Collaborators should not land *anything* in LTS branches and will
      almost never have a reason to land things into Current branches. They
      land stuff on the master branch. Adding this material here is
      confusing because it implies that Collaborators do land stuff on those
      branches. Save talk about those branches and how they're managed for
      later in the LTS section where it can be made clear that most
      Collaborators should not be landing code there anyway.
    
    PR-URL: #25842
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    618f641 View commit details
    Browse the repository at this point in the history
  9. doc: fix machine field in example report

    PR-URL: #25855
    Refs: #25755
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    cjihrig authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    699d161 View commit details
    Browse the repository at this point in the history
  10. tools: improve prerequisites for test-all-suites

    The prerequisistes for test-all-suites were running some tests
    themselves. When one of those tests failed during a coverage run, it
    resulted in artificially low coverage. Fix the prerequisites to only
    build stuff, not test.
    
    PR-URL: #25892
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    988c714 View commit details
    Browse the repository at this point in the history
  11. benchmark: use consistent coding style in assert/*

    Files in benchmark/assert/* were sometimes using trailing commas for
    multi-line objects and sometimes not, mixing the approaches in the same
    file sometimes. Standardize these files to always use trailing commas in
    multi-line objects.
    
    Additionally, remove some unnecessary line-wrapping (so that there are
    fewer multi-line objects).
    
    PR-URL: #25865
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    c4e2bbb View commit details
    Browse the repository at this point in the history
  12. doc: document os.userInfo() throwing SystemError

    `os.userInfo()` throws an exception which was not documented
    in environments like: `docker run --user $(id -u): $(id -g)`.
    
    PR-URL: #25724
    Fixes: #25714
    Reviewed-By: James M Snell <jasnell@gmail.com>
    raido authored and addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    1f6acbb View commit details
    Browse the repository at this point in the history
  13. src: use struct as arguments to node::Assert

    This just makes the code a bit more obvious (subjectively).
    
    PR-URL: #25869
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    f027290 View commit details
    Browse the repository at this point in the history
  14. src: handle errors while printing error objects

    Handle situations where accessing `.name` or `.stack` on an object
    fails.
    
    Fixes: #25718
    
    PR-URL: #25834
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    84358b5 View commit details
    Browse the repository at this point in the history
  15. inspector,vm: remove --eval wrapper

    Report the actual source code when running with `--eval` and
    `--inspect-brk`, by telling the vm module to break on the
    first line of the script being executed rather than wrapping
    the source code in a function.
    
    PR-URL: #25832
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Feb 3, 2019
    Configuration menu
    Copy the full SHA
    d02ad40 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2019

  1. tls: introduce client 'session' event

    OpenSSL has supported async notification of sessions and tickets since
    1.1.0 using SSL_CTX_sess_set_new_cb(), for all versions of TLS. Using
    the async API is optional for TLS1.2 and below, but for TLS1.3 it will
    be mandatory. Future-proof applications should start to use async
    notification immediately. In the future, for TLS1.3, applications that
    don't use the async API will silently, but gracefully, fail to resume
    sessions and instead do a full handshake.
    
    See: https://wiki.openssl.org/index.php/TLS1.3#Sessions
    
    PR-URL: #25831
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    7656d58 View commit details
    Browse the repository at this point in the history
  2. test: add hasCrypto to worker-cleanexit-with-moduleload

    Currently, this test fails when configured --without-ssl:
    
    === release test-worker-cleanexit-with-moduleload ===
    Path: parallel/test-worker-cleanexit-with-moduleload
    events.js:173
          throw er; // Unhandled 'error' event
          ^
    internal/util.js:101
        throw new ERR_NO_CRYPTO();
        ^
    
    Error [ERR_NO_CRYPTO]:
    Node.js is not compiled with OpenSSL crypto support
    
    This commit as a check for crypto so that this test is skipped if there
    is no crypto support.
    
    PR-URL: #25811
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    danbev authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    059d30e View commit details
    Browse the repository at this point in the history
  3. src: use nullptr in node_buffer.cc

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25820
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gengjiawen authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    00f8e86 View commit details
    Browse the repository at this point in the history
  4. src: remove unimplemented method in node_http2.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25732
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gengjiawen authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    bd771d9 View commit details
    Browse the repository at this point in the history
  5. test: do not fail SLOW tests if they are not slow

    PR-URL: #25868
    Refs: #25867
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    hashseed authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    025a7c3 View commit details
    Browse the repository at this point in the history
  6. src: fix race condition in ~NodeTraceBuffer

    Libuv does not guarantee that handles have their close
    callbacks called in the order in which they were added
    (and in fact, currently calls them in reverse order).
    
    This patch ensures that the `flush_signal_` handle
    is no longer in use (i.e. its close callback has already
    been run) when we signal to the main thread that
    `~NodeTraceBuffer` may be destroyed.
    
    The same applies for `~NodeTraceWriter`.
    
    Credit for debugging goes to Gireesh Punathil.
    
    Fixes: #25512
    Co-authored-by: Gireesh Punathil <gpunathi@in.ibm.com>
    
    PR-URL: #25896
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    e28d891 View commit details
    Browse the repository at this point in the history
  7. deps: remove OpenSSL git and travis configuration

    OpenSSL is packaging its git and travis configuration files. Remove
    them, Node.js has its own.
    
    PR-URL: #25689
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    8b71464 View commit details
    Browse the repository at this point in the history
  8. doc: improve doc on unintended breaking changes

    Improve the material in the Collaborator Guide on unintended breaking
    changes.
    
    PR-URL: #25887
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Trott authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    cc4ae20 View commit details
    Browse the repository at this point in the history
  9. src: use visibility("default") exports on POSIX

    Electron uses this because Chromium builds with symbols
    hidden by default.
    
    Refs:https://github.com/electron/node/commit/
    88b4941
    Refs: https://github.com/electron/node/commit/
    1293d1d7d0c33d3925da11ceccdce4eb2e927a43
    
    PR-URL: #25893
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    nornagon authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    2e80b91 View commit details
    Browse the repository at this point in the history
  10. test: relax expectations in test-icu-transcode

    Chromium's ICU considers "latin1" and "ascii" to mean Windows-1252,
    which is consistent with
    [WHATWG spec](https://encoding.spec.whatwg.org/#names-and-labels). If
    linked against Chromium's ICU, Node.js therefore fails
    `test/parallel/test-icu-transcode`.
    
    PR-URL: #25866
    Refs: #25851
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    hashseed authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    ee3165d View commit details
    Browse the repository at this point in the history
  11. crypto: fix malloc mixing in X509ToObject

    EC_KEY_key2buf returns an OPENSSL_malloc'd pointer so it shouldn't be
    passed into Buffer::New, which expect a libc malloc'd pointer. Instead,
    factor out the ECDH::GetPublicKey code which uses EC_POINT_point2oct.
    
    This preserves the existing behavior where encoding failures are
    silently ignored, but it is probably safe to CHECK fail them instead.
    
    PR-URL: #25717
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    davidben authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    3e010af View commit details
    Browse the repository at this point in the history
  12. crypto: don't crash X509ToObject on error

    Use MaybeLocal::ToLocal and don't crash X509ToObject on error.
    
    PR-URL: #25717
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    davidben authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    baa0865 View commit details
    Browse the repository at this point in the history
  13. report: use libuv calls for OS and machine info

    PR-URL: #25900
    Fixes: #25843
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    6d39a54 View commit details
    Browse the repository at this point in the history
  14. worker,etw: only enable ETW on the main thread

    The Windows ETW code is not written to be compatible with multi
    threading, and in particular it relies on global state like a
    single static `uv_async_t`. Adding that to multiple threads
    would corrupt the corresponding loops' handle queues.
    
    This addresses the flakiness of at least
    `test-worker-exit-code` and very likely other flaky tests that
    relate to Worker threads on Windows as well.
    
    Fixes: #25847
    Fixes: #25702
    Fixes: #24005
    Fixes: #23873
    
    PR-URL: #25907
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    c959d60 View commit details
    Browse the repository at this point in the history
  15. report: print libuv handle addresses as hex

    PR-URL: #25910
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    30a4e89 View commit details
    Browse the repository at this point in the history
  16. src: add PrintLibuvHandleInformation debug helper

    This function is not only helpful for debugging crashes,
    but can also be used as an ad-hoc debugging statement.
    
    PR-URL: #25905
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    7035496 View commit details
    Browse the repository at this point in the history
  17. test,tracing: use close event to wait for stdio

    Use `'close'` rather than `'exit'` to make sure that all stdio
    has been captured by the time that the event handler is run.
    
    PR-URL: #25894
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    2009f18 View commit details
    Browse the repository at this point in the history
  18. worker: add mutex lock to MessagePort ctor

    Automated tooling for race condition detection reports this as a
    possible problem. It’s unlikely that something bad would happen
    here (beyond maybe calling `TriggerAsync()` twice), but adding this
    should be okay.
    
    PR-URL: #25911
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    e70aa30 View commit details
    Browse the repository at this point in the history
  19. src: remove unused TLWrap::EnableTrace()

    Declaration is unused, it was added by mistake in 46c5c33.
    
    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    0772ce3 View commit details
    Browse the repository at this point in the history
  20. src: organize TLSWrap declarations by parent

    Make it clear which of the multiple interfaces a TLSWrap method is
    implementing by grouping and commenting the related methods.
    
    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    b5a8376 View commit details
    Browse the repository at this point in the history
  21. tls: don't shadow the tls global with a local

    `tls` shadows the global `tls` require, and isn't indicative of the
    arument type.
    
    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    4d0b56f View commit details
    Browse the repository at this point in the history
  22. src: const_cast is necessary for 1.1.1, not 0.9.7

    The const_cast used to be necessary for SSL_get_app_data() in OpenSSL
    0.9.7, but node doesn't compile against OpenSSL versions that old.
    However, now it's needed for the recently introduced
    SSL_renegotiate_pending(), which is not const-correct as of 1.1.1a.
    
    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    sam-github authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    d4c4f77 View commit details
    Browse the repository at this point in the history
  23. src: fix data type in node_crypto.cc

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25889
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    5a66e38 View commit details
    Browse the repository at this point in the history
  24. src: delete unreachable code in node_perf.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25850
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    44655e9 View commit details
    Browse the repository at this point in the history
  25. src: remove redundant method in node_worker.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25849
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    015ed0b View commit details
    Browse the repository at this point in the history
  26. deps: patch to fix *.onion MX query on c-ares

    c-ares rejects *.onion MX query but forgot to set `*bufp` to NULL. This
    will occur SegmentFault when free `*bufp`.
    
    I make this quick fix and then will make a PR for c-ares either.
    
    PR-URL: #25840
    Fixes: #25839
    Refs: https://github.com/c-ares/c-ares/blob/955df98/ares_create_query.c#L97-L103
    Refs: https://github.com/c-ares/c-ares/blob/955df98/ares_query.c#L124
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    XadillaX authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    a6c8e40 View commit details
    Browse the repository at this point in the history
  27. meta: clarify EoL platform support

    PR-URL: #25838
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    joaocgreis authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    1c6fade View commit details
    Browse the repository at this point in the history
  28. repl: simplify and improve completion

    The completion lists used a hand crafted list of global entries that
    was redundant due to also using the actual global properties for tab
    completion. Those entries ended up in an separated completion group
    which did not seem useful.
    
    PR-URL: #25731
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    BridgeAR authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    e66cb58 View commit details
    Browse the repository at this point in the history
  29. repl: fix eval return value

    In case no error has occurred during the evaluation of some code,
    `undefined` has been returned in some cases as error argument instead
    of `null`. This is fixed by this patch.
    
    PR-URL: #25731
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    BridgeAR authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    5aaeb01 View commit details
    Browse the repository at this point in the history
  30. repl: remove obsolete buffer clearing

    It is checked if an command buffer exists or not. This code branch
    can only be reached if none exist, so there's no need to clear that
    buffer again.
    
    PR-URL: #25731
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    BridgeAR authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    2c737a8 View commit details
    Browse the repository at this point in the history
  31. test: remove obsolete code

    The removed line does not add anything of value to the test. It was
    removed to simplify the test.
    
    PR-URL: #25731
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    BridgeAR authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    c866b52 View commit details
    Browse the repository at this point in the history
  32. child_process: close pipe ends that are re-piped

    when t0 and t1 are spawned with t0's outputstream [1, 2] is piped into
    t1's input, a new pipe is created which uses a copy of the t0's fd.
    This leaves the original copy in Node parent, unattended. Net result is
    that when t0 produces data, it gets bifurcated into both the copies
    
    Detect the passed handle to be of 'wrap' type and close after the
    native spawn invocation by which time piping would have been over.
    
    Fixes: #9413
    Fixes: #18016
    
    PR-URL: #21209
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    gireeshpunathil authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    197efb7 View commit details
    Browse the repository at this point in the history
  33. report: include information about event loop itself

    PR-URL: #25906
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    6c51ec3 View commit details
    Browse the repository at this point in the history
  34. doc: fix err_synthetic issue on v11.x

    Fixes: #25750
    
    PR-URL: #25770
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    sreepurnajasti authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    353de0f View commit details
    Browse the repository at this point in the history
  35. lib: fix a few minor issues flagged by lgtm

    * Confusing (but correct) regex using `A-z` character range by
      accident
    * Add the status argument to afterShutdown
    
    PR-URL: #25873
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    rneatherway authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    0b302e4 View commit details
    Browse the repository at this point in the history
  36. worker: remove undocumented .onclose property

    Remove setting of a 'close' event handler on MessagePort through the use
    of an `.onclose` property. We don't use this convention anywhere else in
    our codebase for 'close' events, this feature is undocumented, and we
    don't test it.
    
    PR-URL: #25904
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Trott authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    52d4b7a View commit details
    Browse the repository at this point in the history
  37. http: remove redundant call to socket.setTimeout()

    `Socket.prototype.setTimeout()` clears the previous timer before setting
    a new one.
    
    Refs: #25748 (comment)
    
    PR-URL: #25928
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lpinca authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    b7fb49e View commit details
    Browse the repository at this point in the history
  38. perf_hooks: only enable GC tracking when it's requested

    Previously a GC prologue callback and a GC epilogue callback
    are always unconditionally enabled during bootstrap when
    the `performance` binding is loaded, even when the user does
    not use the performance timeline API to enable GC tracking.
    This patch makes the callback addition conditional and only
    enables them when the user explicitly requests
    `observer.observe(['gc'])` to avoid the overhead.
    
    PR-URL: #25853
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    e81c6c8 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2019

  1. tools: update dmn in update-estlint.sh

    Version 2.1.0 of dmn will get rid of .map and .ts files.
    
    Backport-PR-URL: #25965
    PR-URL: #25877
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    8d14870 View commit details
    Browse the repository at this point in the history
  2. tools: update ESLint to 5.13.0

    Backport-PR-URL: #25965
    PR-URL: #25877
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    e13c185 View commit details
    Browse the repository at this point in the history
  3. tools: replace deprecated ESLint configuration

    For `globals`, booleans are deprecated in favor strings
    `'readable'`/`'writeable'`.
    
    Backport-PR-URL: #25965
    PR-URL: #25877
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    c55d662 View commit details
    Browse the repository at this point in the history
  4. test: add BigInt test for isDeepStrictEqual

    Add some BigInt tests for test-util-isDeepStrictEqual to get 100%
    coverage for lib/internal/util/comparisons.js.
    
    PR-URL: #25932
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    baa10ae View commit details
    Browse the repository at this point in the history
  5. test: add util.isDeepStrictEqual edge case tests

    Test for deep strict equality when prototype and toStringTag
    have been modified in surprising ways.
    
    PR-URL: #25932
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    1f8991f View commit details
    Browse the repository at this point in the history
  6. test: wait for TCP connect, not TLS handshake

    Test assumed server gets a handshake before the client destroyed it, and
    didn't assert that dns.lookup() callback occurred.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    c17a37d View commit details
    Browse the repository at this point in the history
  7. test: do not assume server gets secure connection

    Test assumed that server got the the connection before the client
    destroys it, but that is not guaranteed. Also, the test was closing the
    TCP connection 3 times, effectively:
    
    1. on the server side, right after TLS connection occurs (if it does)
    2. on the client side, internal to tls, when the cert is rejected
    3. again on the client side, in the error event which is emitted by
       the internal tls destroy from 2
    
    This is too often, and the dependency on 1 occurring is fragile.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    cc6b30f View commit details
    Browse the repository at this point in the history
  8. test: do not assume tls handshake order

    Do not assume that server handshake event happens before client, it is
    not guaranteed.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    639dc07 View commit details
    Browse the repository at this point in the history
  9. test: do not race connection and rejection

    Existing code assumed that the server completed the handshake before the
    client rejected the certificate, and destroyed the socket. This
    assumption is fragile, remove it, and instead check explicitly that data
    can or cannot be exchanged via TLS, whichever is expected.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    ace267b View commit details
    Browse the repository at this point in the history
  10. test: send a bad record only after connection done

    Connection is known to be completely setup only after data has
    exchanged, so wait unil data echo before sending a bad record.
    Otherwise, the bad record could interrupt completion of the server's
    handshake, and whether the error is emitted on the connection or server
    is a matter of timing.
    
    Also, assert that server errors do not occur. 'error' would crash node
    with and unhandled event, but 'tlsClientError' is ignored by default.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    898cf78 View commit details
    Browse the repository at this point in the history
  11. test: use mustCall in ephemeralkeyinfo test

    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    1b542e8 View commit details
    Browse the repository at this point in the history
  12. test: use common.mustCall(), and log the events

    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    50d2c8e View commit details
    Browse the repository at this point in the history
  13. test: use mustCall(), not global state checks

    Instead of pushing state into global arrays and checking the results
    before exit, use common.mustCall() and make the checks immediately.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    1be8676 View commit details
    Browse the repository at this point in the history
  14. test: clarify confusion over "client" in comment

    Fix perplexing comment. It's not that TLS "clients" don't support
    'secureConnect', it's that client sockets created with `new TLSSocket`
    (as opposed to `tls.connect()`) don't support that event.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    c457d00 View commit details
    Browse the repository at this point in the history
  15. doc: revise Collaborator Guide on reverting

    Revise the "Reverting commits" section of the Collaborator Guide. Reduce
    passive voice. Increase clarity.
    
    PR-URL: #25942
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    3b74cc6 View commit details
    Browse the repository at this point in the history
  16. doc: add a sentence about REPLACEME in code changes

    When adding to the REPL API recently, I was unsure what to put as a
    version number for the new method I added. This change adds a reference
    to `releases.md` where the use of `REPLACEME` is discussed.
    
    PR-URL: #25961
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    lance authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    f516f68 View commit details
    Browse the repository at this point in the history
  17. src: fix compiler warnings in node_buffer.cc

    Currently the following compiler warnings are generated on Linux:
    ../src/node_buffer.cc:
    In function 'void node::Buffer::{anonymous}::StringSlice(
        const v8::FunctionCallbackInfo<v8::Value>&)
          [with node::encoding encoding = (node::encoding)1]':
    ../src/node_buffer.cc:54:20: warning:
    'start' may be used uninitialized in this function
    [-Wmaybe-uninitialized]
       if (end < start) end = start;
                        ^~~
    ../src/node_buffer.cc:50:10: note: 'start' was declared here
       size_t start;
              ^~~~~
    
    This commit initializes start and end to zero to avoid these warnings.
    
    PR-URL: #25665
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    2d57504 View commit details
    Browse the repository at this point in the history
  18. benchmark: refactor for consistent style

    Code in benchmark directory sometimes uses `function () {}` for
    anonymous callbacks and sometimes uses `() => {}`. Multi-line arrays
    sometimes have a trailing comma and sometimes do not. Update to always
    use arrow functions for anonymous callbacks and trailing commas for
    multiline arrays.
    
    PR-URL: #25944
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    c4d16e8 View commit details
    Browse the repository at this point in the history
  19. tools: apply more stringent lint rules for benchmark code

    All benchmark code uses trailing commas on multi-line arrays and arrow
    functions for anonymous callbacks. Apply lint rules to that effect.
    
    PR-URL: #25944
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    6ca8d26 View commit details
    Browse the repository at this point in the history
  20. src: clean unused code in agent.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25914
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    f5d5034 View commit details
    Browse the repository at this point in the history
  21. test: refactor test-http-agent-timeout-option

    There is no need to establish a TCP connection. It is sufficient to
    test that the listener that forwards the `'timeout'` event from the
    socket to the `ClientRequest` instance is added to the socket.
    
    PR-URL: #25886
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    lpinca authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    1b9a608 View commit details
    Browse the repository at this point in the history
  22. src: refactor to nullptr in cpp code

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25888
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    gengjiawen authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    8cedfb8 View commit details
    Browse the repository at this point in the history
  23. src: use bool instead of integer literal in connection_wrap.cc

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25923
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    gengjiawen authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    620d429 View commit details
    Browse the repository at this point in the history
  24. benchmark: remove unreachable return

    PR-URL: #25883
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    ZYSzys authored and addaleax committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    2b1f881 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2019

  1. test: pin regression test for #8074 to TLS 1.2

    This test has a dependency on the order in which the TCP connection is
    made, and TLS server handshake completes. It assumes those server side
    events occur before the client side write callback, which is not
    guaranteed by the TLS API. It usually passes with TLS1.3, but TLS1.3
    didn't exist at the time the bug existed.
    
    Pin the test to TLS1.2, since the test shouldn't be changed in a way that
    doesn't trigger a segfault in 7.7.3:
    - #13184 (comment)
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    7e9f5ea View commit details
    Browse the repository at this point in the history
  2. test: end tls gracefully, rather than destroy

    The timing of destroy between client/server is undefined, but end is
    guaranteed to occur.
    
    PR-URL: #25508
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    ef9139e View commit details
    Browse the repository at this point in the history
  3. lib: use internal/options to query --abort-on-uncaught-exception

    Instead of using
    `internalBinding('config').shouldAbortOnUncaughtException`.
    Also removes that property from the binding.
    
    PR-URL: #25862
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    joyeecheung authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    b06f2fa View commit details
    Browse the repository at this point in the history
  4. test: exit sequence sanity tests

    Execute JS code in worker through same vm context
    while exiting from the main thread at arbitrary
    execution points, and make sure that the workers
    quiesce without crashing.
    
    `worker_threads` are not necessarily the subject of
    testing, those are used for easy simulation of
    multi-thread scenarios.
    
    Refs: #25007
    
    PR-URL: #25085
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    gireeshpunathil authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    4dca3ab View commit details
    Browse the repository at this point in the history
  5. src: make deleted function public in agent.h

    Signed-off-by: gengjiawen <technicalcute@gmail.com>
    
    PR-URL: #25909
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    gengjiawen authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    de9f37d View commit details
    Browse the repository at this point in the history
  6. src: make watchdog async callback a lambda

    `Watchdog::Async` features only once for the
    async callback, so make it a lambda.
    
    PR-URL: #25945
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gireeshpunathil authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    55a313b View commit details
    Browse the repository at this point in the history
  7. assert: refactor internal assert.js

    Move lib/internal/assert.js to lib/internal/assert/assertion_error.js.
    This is in preparation for making lib/internal/assert.js a tiny module
    for use in Node.js built-ins so that we can use `assert()` without
    having to load the entire ~1200 line `assert` module.
    
    PR-URL: #25956
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Trott authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    37d207c View commit details
    Browse the repository at this point in the history
  8. assert: create internal/assert micro-module

    For use in built-in modules that could benefit from `assert()` without
    having to load the entire module (unless an AssertionError actually
    occurs): lib/internal/assert.js.
    
    PR-URL: #25956
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Trott authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    0b4055e View commit details
    Browse the repository at this point in the history
  9. src: refactor SSLError case statement

    - Don't use both break and return simultaneously.
    - Use case:/UNREACHABLE() to enforce that all cases are handled, instead
      of CHECK().
    
    Backport-PR-URL: #25968
    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    sam-github authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    7cf484c View commit details
    Browse the repository at this point in the history
  10. tls: in-line comments and other cleanups

    PR-URL: #25861
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Backport-PR-URL: #25968
    
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    sam-github authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    fb83f84 View commit details
    Browse the repository at this point in the history
  11. test: refactor to block-scope

    PR-URL: #25532
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    LakshmiSwethaG authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    de587ba View commit details
    Browse the repository at this point in the history
  12. src: allow --perf-basic-prof-only-functions in NODE_OPTIONS

    PR-URL: #25565
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tomgco authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    e6a2548 View commit details
    Browse the repository at this point in the history
  13. src: allow --perf-prof-unwinding-info in NODE_OPTIONS

    PR-URL: #25565
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tomgco authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    c72c4b0 View commit details
    Browse the repository at this point in the history
  14. lib: remove dollar symbol for private function

    Just remove '$' because this isn't a programming language like Python.
    
    PR-URL: #25590
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    MaleDong authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    1b8d2ca View commit details
    Browse the repository at this point in the history
  15. src: nullcheck on trace controller

    Insert a NULLCHECK prior to return. Ideally we do this in the caller,
    but the TraceController object is somewhat special as:
    1. It is accessed by most threads
    2. It's life cycle is managed by Agent::Agent
    3. It's getter is invoked through Base Methods (upstream)
    
    Refs: #25814
    
    PR-URL: #25943
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    gireeshpunathil authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    e0af205 View commit details
    Browse the repository at this point in the history
  16. report: remove empty string stream insertion

    PR-URL: #25960
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    7443288 View commit details
    Browse the repository at this point in the history
  17. report: remove unnecessary case block scopes

    PR-URL: #25960
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    8494a61 View commit details
    Browse the repository at this point in the history
  18. report: widen scope of #ifndef

    This commit moves a #ifndef _WIN32 to contain the entire if
    statement that inspects file descriptors. Prior to this commit,
    the #ifndef was inside the if, making it essentially dead code
    on Windows.
    
    PR-URL: #25960
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    3f40031 View commit details
    Browse the repository at this point in the history
  19. deps: update acorn to 6.0.7

    acorn and acorn-walk are now published as two different packages. Put
    them both in subdirectories of `deps/acorn`.
    Adapt the REPL's recoverable error detection to use the new API for
    extending acorn parsers.
    
    PR-URL: #25844
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    targos authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    c01bbc5 View commit details
    Browse the repository at this point in the history
  20. report: use uv_getnameinfo() for socket endpoints

    PR-URL: #25962
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    afb2d17 View commit details
    Browse the repository at this point in the history
  21. perf_hooks: implement histogram based api

    Add a sampling-based event loop delay monitor.
    
    ```js
    const { monitorEventLoopDelay } = require('perf_hooks');
    
    const h = monitorEventLoopDelay();
    
    h.enable();
    
    h.disable();
    
    console.log(h.percentiles);
    console.log(h.min);
    console.log(h.max);
    console.log(h.mean);
    console.log(h.stddev);
    console.log(h.percentile(50));
    ```
    
    PR-URL: #25378
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    2cbb7a8 View commit details
    Browse the repository at this point in the history
  22. deps: float fix for building HdrHistogram on Win x86

    From:
    mcollina/native-hdr-histogram@c63e97151dcff9b9aed1d8ea5e4f5964c69be32fideps:
    
    PR-URL: #25378
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    823fd5b View commit details
    Browse the repository at this point in the history
  23. src: pass along errors from tls object creation

    PR-URL: #25822
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    e3fd752 View commit details
    Browse the repository at this point in the history
  24. src: pass along errors from http2 object creation

    PR-URL: #25822
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    0672c24 View commit details
    Browse the repository at this point in the history
  25. src: pass along errors from fs object creations

    PR-URL: #25822
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    d6f3b87 View commit details
    Browse the repository at this point in the history
  26. src: pass along errors from StreamBase req obj creations

    PR-URL: #25822
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    469cdac View commit details
    Browse the repository at this point in the history
  27. worker: use correct ctor for error serialization

    When serializing errors, use the error constructor that is
    closest to the object itself in the prototype chain.
    
    The previous practice of walking downwards meant that
    `Error` would usually be the first constructor that is used,
    even when a more specific one would be available/appropriate,
    because it is the base class of the other common error types.
    
    PR-URL: #25951
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    508a2e7 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2019

  1. src: simplify NativeModule caching and remove redundant data

    - Remove `NativeModule._source` - the compilation is now entirely
      done in C++ and `process.binding('natives')` is implemented
      directly in the binding loader so there is no need to store
      additional source code strings.
    - Instead of using an object as `NativeModule._cached` and insert
      into it after compilation of each native module, simply prebuild
      a JS map filled with all the native modules and infer the
      state of compilation through `mod.loading`/`mod.loaded`.
    - Rename `NativeModule.nonInternalExists` to
      `NativeModule.canBeRequiredByUsers` and precompute that
      property for all the native modules during bootstrap instead
      of branching in every require call during runtime. This also fixes
      the bug where `worker_threads` can be made available with
      `--expose-internals`.
    - Rename `NativeModule.requireForDeps` to
      `NativeModule.requireWithFallbackInDeps`.
    - Add a test to make sure we do not accidentally leak any module
      to the global namespace.
    
    Backport-PR-URL: #25964
    PR-URL: #25352
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and addaleax committed Feb 9, 2019
    Configuration menu
    Copy the full SHA
    b280d90 View commit details
    Browse the repository at this point in the history
  2. src: remove unused variable

    PR-URL: #25481
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and addaleax committed Feb 9, 2019
    Configuration menu
    Copy the full SHA
    76687de View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2019

  1. process: move setup of process warnings into node.js

    To clarify the side effects and conditions of the warning setup
    during bootstrap.
    
    PR-URL: #25263
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Backport-PR-URL: #26025
    antsmartian authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    f4cfbf4 View commit details
    Browse the repository at this point in the history
  2. doc: revise Introducing New Modules

    Revise "Introducing New Modules" in the Collaborator Guide:
    
    * Improve clarity.
    * Remove passive voice.
    * Keep sentences short for ease of reading/scanning.
    
    PR-URL: #25975
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Trott authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    a225f99 View commit details
    Browse the repository at this point in the history
  3. doc: clarify http timeouts

    Socket timeouts set using the `'connection'` event are replaced by
    `server.keepAliveTimeout` when a response is handled.
    
    PR-URL: #25748
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    inversion authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    eb4b5ea View commit details
    Browse the repository at this point in the history
  4. deps: update llhttp to 1.1.1

    PR-URL: #25753
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    indutny authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    3f8c22b View commit details
    Browse the repository at this point in the history
  5. doc: edit process.report related documentation

    This commit makes several corrections, and generally edits the
    documentation for process.report and its methods.
    
    PR-URL: #25983
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    9420a73 View commit details
    Browse the repository at this point in the history
  6. http: makes response.writeHead return the response

    Fixes: #25935
    
    PR-URL: #25974
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    qubyte authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    a5247cc View commit details
    Browse the repository at this point in the history
  7. http2: makes response.writeHead return the response

    Fixes: #25935
    
    PR-URL: #25974
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    qubyte authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    237b5e6 View commit details
    Browse the repository at this point in the history
  8. src: refactor macro to std::min in node_buffer.cc

    PR-URL: #25919
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    gengjiawen authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    779a577 View commit details
    Browse the repository at this point in the history
  9. src: fix return type in Hash

    PR-URL: #25936
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    85d5f67 View commit details
    Browse the repository at this point in the history
  10. crypto: include 'Buffer' in error output of Hash.update method

    Fixes: #25487
    
    PR-URL: #25533
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    amitzur authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    8c9800c View commit details
    Browse the repository at this point in the history
  11. worker: no throw on property access/postMessage after termination

    PR-URL: #25871
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    chjj authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    5d2e064 View commit details
    Browse the repository at this point in the history
  12. fs: remove useless internalFS

    PR-URL: #25161
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ZYSzys authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    29c195e View commit details
    Browse the repository at this point in the history
  13. test: remove extraneous report validation argument

    The second argument passed to validate() and validateContent()
    is not used for anything.
    
    PR-URL: #25986
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    d123f94 View commit details
    Browse the repository at this point in the history
  14. fs: remove redundant callback check

    PR-URL: #25160
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ZYSzys authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    2b48a38 View commit details
    Browse the repository at this point in the history
  15. src: pass cli options to bootstrap/loaders.js lexically

    Instead of using `internalBinding('config')` which should be used
    to carry information about build-time options, directly pass the
    run-time cli options into bootstrap/loaders.js lexically via
    function arguments.
    
    PR-URL: #25463
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Backport-PR-URL: #26027
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    7565586 View commit details
    Browse the repository at this point in the history
  16. src: remove unused internalBinding('config') properties

    Remove the following properties:
    
    - `preserveSymlinks`
    - `preserveSymlinksMain`
    - `experimentalModules`
    - `userLoader`
    - `experimentalVMModules`
    - `experimentalREPLAwait`
    - `exposeInternals`
    
    We used to use them to pass cli option values from C++ into
    JS, but now the values are obtained in JS land using
    `require('internal/options').getOptionValue` instead so they
    are unused.
    
    Also removes `test/parallel/test-internal-modules-expose.js`
    which tests `--expose-internals`.
    We already have hundreds of tests depending on `--expose-internals`,
    they are more than enough to test the functionality of the flag.
    
    PR-URL: #25463
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Backport-PR-URL: #26027
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    d342707 View commit details
    Browse the repository at this point in the history
  17. process: split execution into main scripts

    This patch splits the execution mode selection from the environment
    setup in `lib/internal/bootstrap/node.js`, and split the entry point
    of different execution mode into main scripts under
    `lib/internal/main`:
    
    - `check_syntax.js`: used when `-c`/`--check` which only checks the
      syntax of the input instead of executing it.
    - `eval_stdin.js`: used when `-e` is passed without value and stdin
      is not a TTY (e.g. something is piped).
    - `eval_string`: used when `-e` is passed along with a string argument
    - `inspect.js`: for `node inspect`/`node debug`
    - `print_bash_completion.js`: for `--completion-bash`
    - `print_help.js`: for `--help`
    - `prof_process.js`: for `--prof-process`
    - `repl.js`: for the REPL
    - `run_main_module.js`: used when a main module is passed
    - `run_third_party_main.js`: for the legacy `_third_party_main.js`
      support
    - `worker_thread.js`: for workers
    
    This makes the entry points easier to navigate and paves the way
    for customized v8 snapshots (that do not need to deserialize
    execution mode setup) and better embedder APIs.
    
    As an example, after this patch, for the most common case where
    Node.js executes a user module as an entry point, it essentially
    goes through:
    
    - `lib/internal/per_context.js` to setup the v8 Context (which is
      also run when setting up contexts for the `vm` module)
    - `lib/internal/bootstrap/loaders.js` to set up internal binding
      and builtin module loaders (that are separate from the loaders
      accessible in the user land).
    - `lib/internal/bootstrap/node.js`: to set up the rest of the
      environment, including various globals and the process object
    - `lib/internal/main/run_main_module.js`: which is selected from
      C++ to prepare execution of the user module.
    
    This patch also removes `NativeModuleLoader::CompileAndCall` and
    exposes `NativeModuleLoader::LookupAndCompile` directly so that
    we can handle syntax errors and runtime errors of bootstrap
    scripts differently.
    
    PR-URL: #25667
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Backport-PR-URL: #26036
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    e6a4fb6 View commit details
    Browse the repository at this point in the history
  18. worker: move worker thread setup code into the main script

    This patch directly inlines `createMessageHandler()` and
    `createWorkerFatalExeception()` in the new
    `lib/internal/main/worker_thread.js` since the implementation
    of the two methods are related to the execution flow of
    workers.
    
    PR-URL: #25667
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Backport-PR-URL: #26036
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    8db6b8a View commit details
    Browse the repository at this point in the history
  19. src: move v8_platform implementation into node_v8_platform-inl.h

    So that the v8_platform global variable can be referenced in other
    files.
    
    PR-URL: #25541
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    0a154ff View commit details
    Browse the repository at this point in the history
  20. src: move public C++ APIs into src/api/*.cc

    This patch moves most of the public C++ APIs into src/api/*.cc
    so that it's easier to tell that we need to be careful about
    the compatibility of these code.
    
    Some APIs, like `node::LoadEnvironmet()`, `node::Start()` and
    `node::Init()` still stay in `node.cc` because they are still
    very specific to our use cases and do not work quite well yet
    for embedders anyway - we could not even manage to write cctest for
    them at the moment.
    
    PR-URL: #25541
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    b72ec23 View commit details
    Browse the repository at this point in the history
  21. worker: refactor thread id management

    - Assign thread IDs to `Environment` instances, rather than Workers.
      This is more embedder-friendly than the current system, in which
      all “main threads” (if there are multiple ones) would get the
      id `0`.
    - Because that means that `isMainThread === (threadId === 0)` no longer
      holds, refactor `isMainThread` into a separate entity. Implement it
      in a way that allows for future extensibility, because we use
      `isMainThread` in multiple different ways (determining whether there
      is a parent thread; determining whether the current thread has control
      of the current process; etc.).
    
    PR-URL: #25796
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    addaleax authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    f63817f View commit details
    Browse the repository at this point in the history
  22. lib: save primordials during bootstrap and use it in builtins

    This patches changes the `safe_globals` internal module into a
    script that gets run during bootstrap and saves JavaScript builtins
    (primordials) into an object that is available for all other builtin
    modules to access lexically later.
    
    PR-URL: #25816
    Refs: #18795
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    92ca506 View commit details
    Browse the repository at this point in the history
  23. process: expose process.features.inspector

    Instead of using process.config.variables.v8_enable_inspector
    to detect whether inspector is enabled in the build.
    
    PR-URL: #25819
    Refs: #25343
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    1d76ba1 View commit details
    Browse the repository at this point in the history
  24. process: move process mutation into bootstrap/node.js

    This patch moves the part in the report initialization
    that mutates the process object into bootstrap/node.js
    so it's easier to tell the side effect of the initialization
    on the global state during bootstrap.
    
    PR-URL: #25821
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    c8bf432 View commit details
    Browse the repository at this point in the history
  25. src: remove main_isolate

    PR-URL: #25823
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    fd6ce53 View commit details
    Browse the repository at this point in the history
  26. src: split ownsProcessState off isMainThread

    Embedders may want to control whether a Node.js instance
    controls the current process, similar to what we currently
    have with `Worker`s.
    
    Previously, the `isMainThread` flag had a bit of a double usage,
    both for indicating whether we are (not) running a Worker and
    whether we can modify per-process state.
    
    PR-URL: #25881
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    01bb7b7 View commit details
    Browse the repository at this point in the history
  27. process: stub unsupported worker methods

    Some process methods are not supported in workers. This commit
    adds stubs that throw more informative errors.
    
    PR-URL: #25587
    Fixes: #25448
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    d7ed125 View commit details
    Browse the repository at this point in the history
  28. src: move process.reallyExit impl into node_process_methods.cc

    Because the part that is shared by `process.reallyExit` and the
    Node.js teardown is `WaitForInspectorDisconnect()`, move that
    into node_internals.h instead, and move the C++ binding code
    into `node_process_methods.cc` since that's the only place
    it's needed.
    
    PR-URL: #25860
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    c47eb93 View commit details
    Browse the repository at this point in the history
  29. src: use NULL check macros to check nullptr

    PR-URL: #25916
    Refs: #20914
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    ZYSzys authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    5de1034 View commit details
    Browse the repository at this point in the history
  30. lib: move signal event handling into bootstrap/node.js

    Moves the `process.on()` and `promise.emit()` calls happened during
    bootstrap for signal events into `bootstrap/node.js` so it's easier
    to tell the side effects.
    
    Drive-by changes:
    
    - Moves the signal event re-arming to a point later during
      the bootstrap - as early as it were it's unlikely that there
      could be any existing signal events to re-arm for node-report.
    - Use a Map instead of an Object for signal wraps since it is used
      as a deletable dictionary anyway.
    
    PR-URL: #25859
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    8ade433 View commit details
    Browse the repository at this point in the history
  31. lib: replace 'assert' with 'internal/assert' for many built-ins

    Replace large 'assert' module with tiny 'internal/assert' module for
    many built-in uses.
    
    PR-URL: #25956
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Trott authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    f40e0fc View commit details
    Browse the repository at this point in the history
  32. report: refactor report option validation

    PR-URL: #25990
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    cjihrig authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    c8ceece View commit details
    Browse the repository at this point in the history
  33. report: rename setDiagnosticReportOptions()

    setDiagnosticReportOptions() is a method on process.report,
    making the "DiagnosticReport" part redundant. Rename the
    function to setOptions().
    
    PR-URL: #25990
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    cjihrig authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    88019b0 View commit details
    Browse the repository at this point in the history
  34. process: move deprecation warning initialization into pre_execution.js

    Since this is only necessary when user code execution is expected.
    
    PR-URL: #25825
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    d7bf070 View commit details
    Browse the repository at this point in the history
  35. process: group main thread execution preparation code

    This patch groups the preparation of main thread execution into
    `prepareMainThreadExecution()` and removes the cluster IPC
    setup in worker thread bootstrap since clusters do not use
    worker threads for its implementation and it's unlikely to change.
    
    PR-URL: #26000
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    9a7e883 View commit details
    Browse the repository at this point in the history
  36. process: normalize process.argv before user code execution

    And make sure that `process.argv` from the preloaded modules
    is the same as the one in the main module.
    
    Refs: #25967
    PR-URL: #26000
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    joyeecheung authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    614bb9f View commit details
    Browse the repository at this point in the history
  37. src: remove redundant void

    PR-URL: #26003
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gengjiawen authored and targos committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    24d9e9c View commit details
    Browse the repository at this point in the history
  38. src,lib: remove dead process.binding() code

    There are no non-internal builtin modules left, so this
    should be safe to remove to a large degree.
    
    PR-URL: #25829
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    3cd134c View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2019

  1. test: capture stderr from child processes

    If the test fails with errors from the child commands,
    there is no debug info. Suppliment the stderr data
    so that we know what to look for.
    
    Refs: #25988
    PR-URL: #26007
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gireeshpunathil authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    3eb6f61 View commit details
    Browse the repository at this point in the history
  2. src: remove unused class in node_errors.h

    PR-URL: #25980
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    gengjiawen authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    6c6e678 View commit details
    Browse the repository at this point in the history
  3. http: reduce multiple output arrays into one

    Now we are using `output`, `outputEncodings` and `outputCallbacks`
    to hold pending data. Reducing them into one array `outputData`
    can slightly improve performance and reduce some redundant codes.
    
    PR-URL: #26004
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    starkwang authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    90c9f1d View commit details
    Browse the repository at this point in the history
  4. src: remove redundant cast in node_file.cc

    PR-URL: #25977
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gengjiawen authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    d7ae105 View commit details
    Browse the repository at this point in the history
  5. build: export deprecated OpenSSL symbols on Windows

    Methods such as `TLSv1_server_method` are categorized as
    `DEPRECATEDIN_1_1_0`. Add the deprecated categories to
    the list of categories to include passed to `mkssldef.py`.
    
    Adds a regression test to `test/addons/openssl-binding`.
    
    PR-URL: #25991
    Refs: #20369
    Refs: #25981
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    richardlau authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    d5d163d View commit details
    Browse the repository at this point in the history
  6. http2: improve compat performance

    This bunch of commits help me improve the performance of a http2
    server by 8-10%. The benchmarks reports several 1-2% improvements in
    various areas.
    
    PR-URL: #25567
    Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    mcollina authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    0899c8b View commit details
    Browse the repository at this point in the history
  7. src: remove unused method in class Http2Stream

    PR-URL: #25979
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    gengjiawen authored and targos committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    7ab34ae View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2019

  1. worker: pre-allocate thread id

    Allocate a thread id before actually creating the Environment instance.
    
    PR-URL: #26011
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    1764aae View commit details
    Browse the repository at this point in the history
  2. worker: set up child Isolate inside Worker thread

    Refs: #24016
    
    PR-URL: #26011
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    6c1e928 View commit details
    Browse the repository at this point in the history
  3. test: add Worker + --prof regression test

    Fixes: #24016
    
    PR-URL: #26011
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    896962f View commit details
    Browse the repository at this point in the history
  4. repl: add repl.setupHistory for programmatic repl

    Adds a `repl.setupHistory()` instance method so that
    programmatic REPLs can also write history to a file.
    
    This change also refactors all of the history file
    management to `lib/internal/repl/history.js`, cleaning
    up and simplifying `lib/internal/repl.js`.
    
    PR-URL: #25895
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    lance authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    4c22d6e View commit details
    Browse the repository at this point in the history
  5. n-api: finalize during second-pass callback

    Calling into the engine from a weak callback is unsafe, however, the
    engine offers a way to attach a second-pass weak callback which gets
    called when it is safe to call into JavaScript. This moves the point
    at which the N-API finalize callback gets called to this latter point.
    
    Fixes: #25927
    PR-URL: #25992
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    03ffcf7 View commit details
    Browse the repository at this point in the history
  6. worker: keep stdio after exit

    This addresses review comments from
    #25871.
    
    Refs: #25871
    
    PR-URL: #26017
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    23868ba View commit details
    Browse the repository at this point in the history
  7. report: make more items programmatically accessible

    Prefer structured output over stringified information
    for libuv handles and the native stack trace.
    
    PR-URL: #26019
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    dfd47aa View commit details
    Browse the repository at this point in the history
  8. process: normalize process.execPath in CreateProcessObject()

    Directly normalize `process.execPath` using `uv_fs_realpath`
    on OpenBSD before serializing it into the process object,
    instead of using `require('fs')` to normalize and override
    the path in `bootstrap/node.js`.
    
    PR-URL: #26002
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    ae21fca View commit details
    Browse the repository at this point in the history
  9. doc: fix some nits in perf_hooks

    PR-URL: #26022
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    663b625 View commit details
    Browse the repository at this point in the history
  10. src: add WeakReference utility

    Add a simple `WeakReference` utility that we can use until the
    language provides something on its own.
    
    PR-URL: #25993
    Fixes: #23862
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    731c273 View commit details
    Browse the repository at this point in the history
  11. domain: avoid circular memory references

    Avoid circular references that the JS engine cannot see through
    because it involves an `async id` ⇒ `domain` link.
    
    Using weak references is not a great solution, because it increases
    the domain module’s dependency on internals and the added calls into
    C++ may affect performance, but it seems like the least bad one.
    
    PR-URL: #25993
    Fixes: #23862
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    60c5099 View commit details
    Browse the repository at this point in the history
  12. src: add lock to inspector MainThreadHandle dtor

    Otherwise, the `CHECK` is reported to be a race condition
    by automated tooling. It’s not easy to tell from looking at
    the source code whether that is actually the case or not,
    but adding this lock should be a safe way to resolve it.
    
    PR-URL: #26010
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    adaa2ae View commit details
    Browse the repository at this point in the history
  13. test: add assert test for position indicator

    This test adds coverage for a ternary in assertion_error.js that checks
    if stderr is a TTY.
    
    PR-URL: #26024
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Trott authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    61330b2 View commit details
    Browse the repository at this point in the history
  14. test: refactor two http client timeout tests

    Refactor test-http-client-set-timeout and
    test-http-client-timeout-option-with-agent.
    
    PR-URL: #25473
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lpinca authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    6323a9f View commit details
    Browse the repository at this point in the history
  15. deps: upgrade npm to 6.7.0

    PR-URL: #25804
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    zkat authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    1c5fbea View commit details
    Browse the repository at this point in the history
  16. doc: fix minor typo in dgram.md

    PR-URL: #26055
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    danbev authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    e629afa View commit details
    Browse the repository at this point in the history
  17. lib: move per_context.js under lib/internal/bootstrap

    PR-URL: #26033
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    bd932a3 View commit details
    Browse the repository at this point in the history
  18. process: document the bootstrap process in node.js

    PR-URL: #26033
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    85bc64a View commit details
    Browse the repository at this point in the history
  19. lib: save a copy of Symbol in primordials

    PR-URL: #26033
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    d5f4a1f View commit details
    Browse the repository at this point in the history
  20. process: use primordials in bootstrap/node.js

    PR-URL: #26033
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    8d3eb47 View commit details
    Browse the repository at this point in the history
  21. lib: fix the typo error

    Fix a typo error ('the' before 'any').
    
    PR-URL: #26032
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    MaleDong authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    b1a8927 View commit details
    Browse the repository at this point in the history
  22. lib: simplify 'umask'

    Just check: if 'mask' is not undefined, just call 'validateMode' and
    then return the unmask value, we don't need split them into two returns.
    
    PR-URL: #26035
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    MaleDong authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    b2b37c6 View commit details
    Browse the repository at this point in the history
  23. deps: upgrade to libuv 1.26.0

    Notable changes:
    - A bug that could result in 100% CPU utilization in Node
      has been fixed (libuv/libuv#2162)
    - Node's report module will now include the entire Windows
      product name (libuv/libuv#2170)
    
    PR-URL: #26037
    Fixes: #26013
    Fixes: #25875
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    cjihrig authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    8b5a2c4 View commit details
    Browse the repository at this point in the history
  24. worker: set stack size for worker threads

    This is so we can inform V8 about a known limit for the stack.
    
    Otherwise, on some systems recursive functions may lead to
    segmentation faults rather than “safe” failures.
    
    PR-URL: #26049
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    9c9aefe View commit details
    Browse the repository at this point in the history
  25. http: improve performance for incoming headers

    PR-URL: #26041
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    starkwang authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    5198297 View commit details
    Browse the repository at this point in the history
  26. tls: renegotiate should take care of its own state

    In the initial version of this test there were two zero-length writes to
    force tls state to cycle. The second is not necessary, at least not now,
    but the first was. The renegotiate() API should ensure that packet
    exchange takes place, not its users, so move the zero-length write into
    tls.
    
    See: #14239
    See: b1909d3a70f9
    
    PR-URL: #25997
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    sam-github authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    8495a78 View commit details
    Browse the repository at this point in the history
  27. os,report: use UV_MAXHOSTNAMESIZE

    UV_MAXHOSTNAMESIZE was introduced in libuv 1.26.0. Use this
    instead of including multiple header files, adding fallback
    ifdef logic, and remembering to add one to the buffer size
    for the terminating nul character with MAXHOSTNAMELEN.
    
    PR-URL: #26038
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and addaleax committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    5f6a710 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2019

  1. process: refactor lib/internal/bootstrap/node.js

    - Use `deprecate` from `internal/util` instead of from `util`
    - Split `setupGlobalVariables()` into `setupGlobalProxy()` and
      `setupBuffer()`, and move out manipulation of the process object.
    
    PR-URL: #26033
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Backport-PR-URL: #26085
    joyeecheung authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    9d6291a View commit details
    Browse the repository at this point in the history
  2. doc: renamed remote's name

    To keep consistency through-out the guide.
    
    Fixes: #26045
    
    PR-URL: #26050
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    thangktran authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    21e6d35 View commit details
    Browse the repository at this point in the history
  3. assert: add internal assert.fail()

    PR-URL: #26047
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    ccf60bb View commit details
    Browse the repository at this point in the history
  4. cluster: migrate round_robin_handle to internal assert

    Use smaller internal assert module for round_robin_handle.js.
    
    PR-URL: #26047
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    f873523 View commit details
    Browse the repository at this point in the history
  5. lib: merge 'undefined' into one 'break' branch

    We don't need to split this alone, but just merge it into the 'break'
    switch branch together.
    
    PR-URL: #26039
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    MaleDong authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    32e6bb3 View commit details
    Browse the repository at this point in the history
  6. test: use emitter.listenerCount() in test-http-connect

    Use `emitter.listenerCount()` instead of the `length` property of the
    array returned by `emitter.listeners()`.
    
    PR-URL: #26031
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    lpinca authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    64cc234 View commit details
    Browse the repository at this point in the history
  7. test: replaced anonymous fn with arrow syntax

    PR-URL: #26029
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    pushkalb123 authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    cb86357 View commit details
    Browse the repository at this point in the history
  8. src: remove redundant cast in node_http2.h

    PR-URL: #25978
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    gengjiawen authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    f71d676 View commit details
    Browse the repository at this point in the history
  9. doc: clarify effect of stream.destroy() on write()

    PR-URL: #25973
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    sam-github authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    44fc2f6 View commit details
    Browse the repository at this point in the history
  10. doc: edit N-API introductory material in Collaborator Guide

    Use shorter, clearer sentences. Remove passive voice and personal
    pronouns.
    
    PR-URL: #26051
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    4a254a6 View commit details
    Browse the repository at this point in the history
  11. 2018-02-14, Version 11.10.0 (Current)

    Notable changes:
    
    deps:
      * Updated libuv to 1.26.0.
      * Updated npm to 6.7.0.
    http, http2:
      * `response.writeHead` now returns the response object.
    perf_hooks:
      * Implemented a histogram based API.
    process:
      * Exposed `process.features.inspector`.
    repl:
      * Added `repl.setupHistory` for programmatic repl.
    tls:
      * Introduced client "session" event.
    
    PR-URL: #26098
    targos committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    6e56771 View commit details
    Browse the repository at this point in the history