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

v13.11.0 proposal #32185

Merged
merged 108 commits into from Mar 12, 2020
Merged

v13.11.0 proposal #32185

merged 108 commits into from Mar 12, 2020

Commits on Mar 9, 2020

  1. src: Handle bad callback in asyc_wrap

    Align with the MaybeLocal<> API contract
    
    PR-URL: #31946
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    HarshithaKP authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    31e4a0d View commit details
    Browse the repository at this point in the history
  2. test: remove common.expectsInternalAssertion

    Remove convenience function for internal assertions. It is only used
    once.
    
    Signed-off-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #32057
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    89987b3 View commit details
    Browse the repository at this point in the history
  3. test: add coverage for FSWatcher exception

    Cover an previously uncovered exception possible in the internal start
    function for FSWatcher.
    
    Signed-off-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #32057
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    83e9a3e View commit details
    Browse the repository at this point in the history
  4. crypto: make update(buf, enc) ignore encoding

    Make the cipher/decipher/hash/hmac update() methods ignore the input
    encoding when the input is a buffer.
    
    This is the documented behavior but some inputs were rejected, notably
    when the specified encoding is 'hex' and the buffer has an odd length
    (because a _string_ with an odd length is never a valid hex string.)
    
    The sign/verify update() methods work okay because they use different
    validation logic.
    
    Fixes: #31751
    
    PR-URL: #31766
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    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: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    a727b13 View commit details
    Browse the repository at this point in the history
  5. src: introduce node_sockaddr

    Introduce the SocketAddress utility class. The QUIC implementation
    makes extensive use of this for handling of socket addresses. It
    was separated out to make it generically reusable throughout core
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #32070
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    jasnell authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    4ac1ce1 View commit details
    Browse the repository at this point in the history
  6. doc: update email address in authors

    update my personal email
    
    PR-URL: #32026
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    yaelhe authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    5f12595 View commit details
    Browse the repository at this point in the history
  7. meta: move thefourtheye to TSC Emeritus

    thefourtheye has a considerable history of contributions to Node.js.
    They have not been active much of late, and the TSC Charter has a
    section about activity indicating that moving to Emeritus at this time
    is the thing to do. Thanks for all you've done to make Node.js
    fantastic, thefourtheye, and hope to see you around again soon!
    
    PR-URL: #32059
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    c0ba6ec View commit details
    Browse the repository at this point in the history
  8. benchmark: remove problematic tls params

    These very small values can cause crashes/exceptions to occur on some
    systems because most time is spent in V8 GC or in parts of node core
    that are not being tested (e.g. streams).
    
    PR-URL: #31816
    Reviewed-By: James M Snell <jasnell@gmail.com>
    mscdex authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    31ec443 View commit details
    Browse the repository at this point in the history
  9. doc: remove em dashes

    Our documentation uses em dashes inconsistently. They are treated
    inconsistently typographically too. (For example, they are sometimes
    surrounded by spaces and sometimes not.) They are also often confused
    with ordinary hyphens such as in the CHANGELOG, where they are
    inadvertently mixed together in a single list. The difference is
    not obvious in the raw markdown but is very noticeable when rendered,
    appearing to be a typographical error (which it in fact is).
    
    The em dash is never needed. There are always alternatives. Remove em
    dashes entirely.
    
    PR-URL: #32080
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    50094de View commit details
    Browse the repository at this point in the history
  10. src,http2: introduce node_http_common

    The nghttp2 and nghttp3 (used in the QUIC implementation) share nearly
    identical structs for header handling. However, they differ enough that
    they need to be handled slightly different in each case. This PR
    includes some elements introduced in the QUIC PR separated out to
    make them independently reviewable, and updates the http2 implementation
    to use the shared utilities.
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #32069
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    jasnell authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    a037770 View commit details
    Browse the repository at this point in the history
  11. async_hooks: fix ctx loss after nested ALS calls

    PR-URL: #32085
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    puzpuzpuz authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    3befe80 View commit details
    Browse the repository at this point in the history
  12. stream: add comments to pipeline implementation

    Fixes: #32039
    
    PR-URL: #32042
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ronag authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    2585b81 View commit details
    Browse the repository at this point in the history
  13. events: fix removeListener for Symbols

    Fix removeListener when eventName type is 'symbol'.
    
    ```js
    const EventEmitter = require('events');
    const myEmitter = new EventEmitter();
    const sym = Symbol('symbol');
    const fn = () => { };
    myEmitter.on(sym, fn);
    
    myEmitter.on('removeListener', (...args) => {
      console.log('removeListener');
      console.log(args, args[0] === sym, args[1] === fn);
    });
    
    myEmitter.removeAllListeners()
    ```
    
    When the listener's eventName type is 'symbol' and removeListener is
    called with no parameters, removeListener should be emitted.
    
    PR-URL: #31847
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    fuxingZhang authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    55486bc View commit details
    Browse the repository at this point in the history
  14. http: fix socket re-use races

    Whether and when a socket is destroyed or not after a timeout is up to
    the user. This leaves an edge case where a socket that has emitted
    'timeout' might be re-used from the free pool. Even if destroy is called
    on the socket, it won't be removed from the freelist until 'close' which
    can happen several ticks later.
    
    Sockets are removed from the free list on the 'close' event.
    However, there is a delay between calling destroy() and 'close'
    being emitted. This means that it possible for a socket that has
    been destroyed to be re-used from the free list, causing unexpected
    failures.
    
    PR-URL: #32000
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ronag authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    1ffa9f3 View commit details
    Browse the repository at this point in the history
  15. test: update tests for larger Buffers

    V8 is about to increase the max TypedArray length to 2**32-1, which
    Node inherits as Buffer.kMaxLength. Some tests relied on values greater
    than the previous max length (2**31-1) to throw errors; this updates
    those tests for the new max length.
    
    PR-URL: #32114
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    jakobkummerow authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    8e43568 View commit details
    Browse the repository at this point in the history
  16. build: enable backtrace when V8 is built for PPC and S390x

    Refs: nodejs/node-v8#119
    
    PR-URL: #32113
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    targos authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    7c739aa View commit details
    Browse the repository at this point in the history
  17. wasi: add returnOnExit option

    This commit adds a WASI option allowing the __wasi_proc_exit()
    function to return an exit code instead of forcefully terminating
    the process.
    
    PR-URL: #32101
    Fixes: #32093
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    cjihrig authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    dd83bd2 View commit details
    Browse the repository at this point in the history
  18. test: apply camelCase in test-net-reconnect-error

    Rename two idnetifiers that were snake_case rather than camelCase.
    
    Signed-off-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #32120
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    74edcc5 View commit details
    Browse the repository at this point in the history
  19. test: remove superfluous checks in test-net-reconnect-error

    The process.on('exit', ...) checks duplicate the work of
    `common.mustCall()` and are superfluous. Remove them.
    
    Signed-off-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #32120
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    da7349d View commit details
    Browse the repository at this point in the history
  20. doc: fix broken links in benchmark README

    PR-URL: #32121
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    2e5f81f View commit details
    Browse the repository at this point in the history
  21. test: add WASI test for path_link()

    PR-URL: #32132
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    1428de8 View commit details
    Browse the repository at this point in the history
  22. doc: document fs.watchFile() bigint option

    This commit documents the bigint option to fs.watchFile(), which
    has been supported since v10.5.0.
    
    PR-URL: #32128
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    a79b8fa View commit details
    Browse the repository at this point in the history
  23. src: fix -Winconsistent-missing-override warning

    ../src/node_http_common.h:497:8: warning: 'MemoryInfo' overrides a
    member function but is not marked 'override' [-Winconsistent-missing-override]
      void MemoryInfo(MemoryTracker* tracker) const {
    
    PR-URL: #32126
    Refs: #32069
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    cjihrig authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    7b9b578 View commit details
    Browse the repository at this point in the history
  24. src: fix -Wreorder compiler warning

    ../src/node_http_common-inl.h:126:7: warning: field 'token_'
    will be initialized after field 'name_' [-Wreorder]
        : token_(other.token_),
    
    PR-URL: #32126
    Refs: #32069
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    cjihrig authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    e9f9d07 View commit details
    Browse the repository at this point in the history
  25. doc: document self-referencing a package name

    Added a section for "Self-referencing a package using its name" that
    documents importing a package's own exports (this was missed when
    adding the feature).
    
    PR-URL: #31680
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
    giltayar authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    97965f5 View commit details
    Browse the repository at this point in the history
  26. fs: fix valid id range on chown, lchown, fchown

    PR-URL: #31694
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    himself65 authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    c106a85 View commit details
    Browse the repository at this point in the history
  27. src: add missing namespace using statements in node_watchdog.h

    Although these `using`s can derived from other header files, it will
    be better to be self-contained.
    
    PR-URL: #32117
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    legendecas authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    bd75688 View commit details
    Browse the repository at this point in the history
  28. src: improve KVStore API

    This adds `const char*` based APIs to KVStore to avoid multiple string
    conversions (char -> Utf8 -> Local -> char etc.) when possible.
    
    PR-URL: #31773
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lundibundi authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    296f35b View commit details
    Browse the repository at this point in the history
  29. src: simplify node_worker.cc using new KVStore API

    PR-URL: #31773
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lundibundi authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    cc27846 View commit details
    Browse the repository at this point in the history
  30. test: allow EAI_FAIL in test-net-dns-error.js

    Test test-net-dns-error.js causes assertion failure on SunOS,
    test expects ENOTFOUND, but OS returns EAI_FAIL.
    
    Maximum length of a host name is 63 characters.
    Test test-net-dns-error.js makes a connection attempt to
    invalid host name (longer than maximum). Such
    connection attempt on SunOS returns permanent failure
    (EAI_FAIL) as invalid hostname won't be ever resolved.
    
    PR-URL: #31780
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Vita Batrla authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    6545d1a View commit details
    Browse the repository at this point in the history
  31. doc: link setRawMode() from signal docs

    Fixes: #32065
    
    PR-URL: #32088
    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: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    addaleax authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    50c5eb4 View commit details
    Browse the repository at this point in the history
  32. build: allow passing multiple libs to pkg_config

    Sometimes it's necessary to pass multiple library names to pkg-config,
    e.g. the brotli shared libraries can be pulled in with
        pkg-config libbrotlienc libbrotlidec
    
    Update the code to handle both, strings (as used so far), and lists
    of strings.
    
    Signed-off-by: André Draszik <git@andred.net>
    
    PR-URL: #32046
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    andred authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    f07d423 View commit details
    Browse the repository at this point in the history
  33. build: allow use of system-installed brotli

    brotli is available as a shared library since 2016, so it makes sense
    to allow its use as a system-installed version.
    
    Some of the infrastructure was in place already (node.gyp and
    node.gypi), but some bits in the configure script here were missing.
    
    Add them, keeping the default as before, to use the bundled version.
    
    Refs: google/brotli#421
    Signed-off-by: André Draszik <git@andred.net>
    
    PR-URL: #32046
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    andred authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    6413524 View commit details
    Browse the repository at this point in the history
  34. test: changed function to arrow function

    PR-URL: #32045
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    ProdipRoy89 authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    3d64c9e View commit details
    Browse the repository at this point in the history
  35. test: use index.js if package.json "main" is empty

    Verify that the module loader uses index.js when the "main" property of
    package.json is the empty string.
    
    Refs: #32013
    
    PR-URL: #32040
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    862cd2b View commit details
    Browse the repository at this point in the history
  36. src: handle NULL env scenario

    Convert hard assertion into a throw with a useful error
    message in src/module_wrap.cc.
    
    PR-URL: #31899
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    HarshithaKP authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    cba75c5 View commit details
    Browse the repository at this point in the history
  37. test: increase test timeout to prevent flakiness

    This increases the waiting time for each event from 500 to 750 ms.
    The former timeout could be hit on very slow machines with high load.
    
    PR-URL: #31716
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    6a9654a View commit details
    Browse the repository at this point in the history
  38. doc: revise tools/icu/README.md

    * Simplify introductory sentence.
    * Remove some passive voice.
    * Make style in bulleted list a little more consistent.
    * Remove superfluous list entry.
    
    PR-URL: #32136
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    02ebc81 View commit details
    Browse the repository at this point in the history
  39. async_hooks: add sync enterWith to ALS

    This allows transitioning the entire following sync and async execution
    sub-tree to the given async storage context. With this one can be sure
    the context binding will remain for any following sync activity and all
    descending async execution whereas the `run*(...)` methods must wrap
    everything that is intended to exist within the context. This is helpful
    for scenarios such as prepending a `'connection'` event to an http
    server which binds everything that occurs within each request to
    the given context. This is helpful for APMs to minimize the need
    for patching and especially adding closures.
    
    PR-URL: #31945
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Qard authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    4d5981b View commit details
    Browse the repository at this point in the history
  40. n-api: define release 6

    Mark all N-APIs that have been added since version 5 as stable.
    
    PR-URL: #32058
    Fixes: nodejs/abi-stable-node#393
    Co-Authored-By: legendecas <legendecas@gmail.com>
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    2 people authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    710c905 View commit details
    Browse the repository at this point in the history
  41. test: warn when inspector process crashes

    If the subprocess being inspected hard crashes, there will be no
    information on the log, and the parent process will just wait until
    timeout. Logging the error signal when it happens can help developers
    understand failures faster.
    
    Signed-off-by: Matheus Marchini <mmarchini@netflix.com>
    
    PR-URL: #32133
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    mmarchini authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    6f9f2c5 View commit details
    Browse the repository at this point in the history
  42. cli: allow --jitless V8 flag in NODE_OPTIONS

    This work is modeled on #30094 which allowed
    `--disallow-code-generation-from-strings` in `NODE_OPTIONS`.
    
    The `--jitless` v8 option has been supported since 12.0.0. As a v8
    option, node automatically picks it up, but there have been a few issues
    that were resolved by simply telling users about the option: #26758,
    
    This PR:
      - allows `--jitless` in `NODE_OPTIONS`
      - documents `--jitless`
      - moves `--experimental-loader=module` to locally restore alphabetical
        order in option documentation
    
    Refs: #30094
    Refs: #26758
    Refs: #28800
    
    PR-URL: #32100
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    andrewdotn authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    e1347b4 View commit details
    Browse the repository at this point in the history
  43. benchmark: refactor helper into a class

    This reverts commit 5b0308c.
    
    PR-URL: #31755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    e11f38c View commit details
    Browse the repository at this point in the history
  44. benchmark: add test and all options and improve errors"

    This reverts commit 4671d55 and
    contains a fix to the issue raised for the revert.
    
    PR-URL: #31755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    5d92cec View commit details
    Browse the repository at this point in the history
  45. test: refactor all benchmark tests to use the new test option

    This reverts commit aa0a01b.
    
    PR-URL: #31755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    92cc406 View commit details
    Browse the repository at this point in the history
  46. benchmark: remove special test entries

    This reverts commit 7cfbc9f.
    
    PR-URL: #31755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    ddb8824 View commit details
    Browse the repository at this point in the history
  47. stream: don't destroy final readable stream in pipeline

    If the last stream in a pipeline is still usable/readable
    don't destroy it to allow further composition.
    
    Fixes: #32105
    Backport-PR-URL: #32111
    PR-URL: #32110
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ronag authored and MylesBorins committed Mar 9, 2020
    Copy the full SHA
    4640ea2 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2020

  1. stream: combine properties using defineProperties

    Backport-PR-URL: #32164
    PR-URL: #31187
    Refs: #31144
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    antsmartian authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    90a4d43 View commit details
    Browse the repository at this point in the history
  2. stream: improve writable.write() performance

    Backport-PR-URL: #32169
    PR-URL: #31624
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    mscdex authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    1e05ddf View commit details
    Browse the repository at this point in the history
  3. fs: fix writeFile[Sync] for non-seekable files

    Completely disables the use of positioned writes at
    writeFile and writeFileSync, which allows it to work
    with non-seekable files.
    
    Fixes: #31926
    
    Backport-PR-URL: #32172
    PR-URL: #32006
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    mildsunrise authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    1c4f4cc View commit details
    Browse the repository at this point in the history
  4. stream: simplify Writable.write

    Slightly refactors Writable.write for minor perf
    and readability improvements.
    
    PR-URL: #31146
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    ronag authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    9d1b1a3 View commit details
    Browse the repository at this point in the history
  5. stream: simplify pipeline

    Backport-PR-URL: #32174
    PR-URL: #31316
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
    ronag authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    7ce1cc9 View commit details
    Browse the repository at this point in the history
  6. stream: re-use legacy destroyer

    Backport-PR-URL: #32174
    PR-URL: #31316
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
    ronag authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    4b04bf8 View commit details
    Browse the repository at this point in the history
  7. stream: eos make const state const

    writable & readable is based on type and is not actual
    state, treat them as such.
    
    Backport-PR-URL: #32178
    PR-URL: #32031
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ronag authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    f263659 View commit details
    Browse the repository at this point in the history
  8. src: create a getter for kernel version

    Backport-PR-URL: #32166
    PR-URL: #31732
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    juanarbol authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    258a80d View commit details
    Browse the repository at this point in the history
  9. src: make aliased_buffer.h self-contained

    aliased_buffer.h uses MultiplyWithOverflowCheck() implemented
    in util-inl.h
    
    PR-URL: #31884
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    2388a40 View commit details
    Browse the repository at this point in the history
  10. src: refactor debug category parsing

    Move the debug category parsing into a new EnabledDebugList class,
    so that it can be reused outside of Environment.
    
    PR-URL: #31884
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    5127c70 View commit details
    Browse the repository at this point in the history
  11. src: implement per-process native Debug() printer

    This patch adds a per-process native Debug() printer that can be
    called when an Environment is not available.
    
    PR-URL: #31884
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    6aa797b View commit details
    Browse the repository at this point in the history
  12. tools: use per-process native Debug() printer in mkcodecache

    PR-URL: #31884
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    bb41383 View commit details
    Browse the repository at this point in the history
  13. test: improve test-debug-usage

    test-debug-usage fails if run with `--trace-warnings` because the
    regular expression checking does not allow for the resulting stack trace
    from the deprecation warning.
    
    The test also only tests two parts of the three-part usage message.
    
    Improve the test so that it passes with `--trace-warnings` and verifies
    all three parts of the usage message.
    
    Signed-off-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #32141
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    188f1d2 View commit details
    Browse the repository at this point in the history
  14. doc: remove personal pronoun usage in addons.md

    Per our style guide, avoid personal pronouns (I, you, we, etc.) in
    reference documentation.
    
    PR-URL: #32142
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    2d39369 View commit details
    Browse the repository at this point in the history
  15. doc: remove personal pronoun usage in errors.md

    Per our style guide, avoid personal pronouns (I, you, we, etc.) in
    reference documentation.
    
    PR-URL: #32142
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    fa99fb2 View commit details
    Browse the repository at this point in the history
  16. doc: remove personal pronoun usage in fs.md

    Per our style guide, avoid personal pronouns (I, you, we, etc.) in
    reference documentation.
    
    PR-URL: #32142
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    618b389 View commit details
    Browse the repository at this point in the history
  17. doc: remove personal pronoun usage in policy.md

    Per our style guide, avoid personal pronouns (I, you, we, etc.) in
    reference documentation.
    
    PR-URL: #32142
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    7de4dfb View commit details
    Browse the repository at this point in the history
  18. src: use C++ style for struct with initializers

    Fixes warning on clang 11:
    
            In file included from ../../src/node_http2.cc:6:
            ../../src/node_http2.h:508:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
            typedef struct {
                          ^
                           SessionJSFields
            ../../src/node_http2.h:512:33: note: type is not C-compatible due to this default member initializer
              uint32_t max_invalid_frames = 1000;
                                            ^~~~
            ../../src/node_http2.h:514:3: note: type is given name 'SessionJSFields' for linkage purposes by this typedef declaration
            } SessionJSFields;
              ^
    
    PR-URL: #32134
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    sam-github authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    1e9a251 View commit details
    Browse the repository at this point in the history
  19. build: workaround for gclient python3 issues

    gclient doesn't support Python 3 yet. To workaround that problem, add an
    enviroment variable to override the Python version used by ./configure.
    
    Signed-off-by: Matheus Marchini <mmarchini@netflix.com>
    
    PR-URL: #32140
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Christian Clauss <cclauss@me.com>
    mmarchini authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    3c06316 View commit details
    Browse the repository at this point in the history
  20. doc: change worker.takeHeapSnapshot to getHeapSnapshot

    Adapt doc to match implementation which exports getHeapSnapshot().
    
    PR-URL: #32061
    Refs: #31569
    Refs: https://github.com/nodejs/node/blob/987a67339518d0380177a2e589f2bbd274230d0e/lib/internal/worker.js#L323
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Flarna authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    bc1e357 View commit details
    Browse the repository at this point in the history
  21. test: always skip vm-timeout-escape-queuemicrotask

    This issue is unfixable with the current implementations of V8 and
    Node.js. Changes to make this fixable are unlikely to happen in the
    foreseeable future. The test itself is flaky and skipped.  It
    serves as a demonstration of the issue only.
    
    PR-URL: #31980
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lundibundi authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    4589863 View commit details
    Browse the repository at this point in the history
  22. vm: refactor value validation with internal/validators.js

    PR-URL: #31480
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    lundibundi authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    eaf6723 View commit details
    Browse the repository at this point in the history
  23. lib: improve value validation utils

    Add common validators: `validateArray`, `validateBoolean`,
    `validateObject` and appropriate tests.
    
    PR-URL: #31480
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    lundibundi authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    607ac90 View commit details
    Browse the repository at this point in the history
  24. fs: return first folder made by mkdir recursive

    mkdir('/foo/bar', { recursive: true }) and mkdirSync will now return
    the path of the first folder created. This matches more closely
    mkdirp's behavior, and is useful for setting folder permissions.
    
    PR-URL: #31530
    Refs: #31481
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    bcoe authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    ff58854 View commit details
    Browse the repository at this point in the history
  25. lib: move isLegalPort to validators, refactor

    isLegalPort was used multiple places in the same way -- to validate
    the port and throw if necessary. Moved into internal/validators.
    
    PR-URL: #31851
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    jasnell authored and MylesBorins committed Mar 10, 2020
    Copy the full SHA
    897b1d2 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. fs: fix WriteStream autoClose order

    WriteStream autoClose was implemented by manually
    calling .destroy() instead of using autoDestroy
    and callback. This caused some invariants related
    to order of events to be broken.
    
    Fixes: #31776
    
    Backport-PR-URL: #32163
    PR-URL: #31790
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ronag authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    7eed9d6 View commit details
    Browse the repository at this point in the history
  2. test: mark test-timers-blocking-callback flaky on osx

    This is only for 10.15 but this test is periodically failing across
    many CI runs. Would like to mark this as flaky so we can avoid lots
    of red CI.
    
    Refs: #21781
    
    PR-URL: #32189
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    MylesBorins committed Mar 11, 2020
    Copy the full SHA
    84197ea View commit details
    Browse the repository at this point in the history
  3. src: elevate v8 namespace

    PR-URL: #32041
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    RamanandPatil authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    55a8ca8 View commit details
    Browse the repository at this point in the history
  4. stream: do not swallow errors with async iterators and pipeline

    Before this patch, pipeline() could swallow errors by pre-emptively
    producing a ERR_STREAM_PREMATURE_CLOSE that was not really helpful
    to the user.
    
    Co-Authored-By: Robert Nagy <ronagy@icloud.com>
    
    PR-URL: #32051
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    mcollina authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    0a00552 View commit details
    Browse the repository at this point in the history
  5. src: discard tasks posted to platform TaskRunner during shutdown

    Discard tasks silently that are posted when the Isolate is being
    disposed.
    
    It is not possible to avoid a race condition window between
    unregistering the Isolate with the platform and disposing it
    in which background tasks and the Isolate deinit steps themselves
    may lead to new tasks being posted. The only sensible action
    in that case is discarding the tasks.
    
    Fixes: #31752
    Fixes: https://bugs.chromium.org/p/v8/issues/detail?id=10104
    Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2061548
    Refs: #31795
    Refs: #30909
    PR-URL: #31853
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    625d8f7 View commit details
    Browse the repository at this point in the history
  6. Revert "src: keep main-thread Isolate attached to platform during Dis…

    …pose"
    
    This reverts commit e460f8c.
    
    It is no longer necessary after the previous commit, and restores
    consistency of the call order between the main thread code,
    the other call sites, and the documentation.
    
    Refs: #31795
    PR-URL: #31853
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    d8c927b View commit details
    Browse the repository at this point in the history
  7. tools: update ESLint to 7.0.0-alpha.0

    Update ESLint to 7.0.0-alpha.0
    
    PR-URL: #31400
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    c70cfd2 View commit details
    Browse the repository at this point in the history
  8. tools: update ESLint to 7.0.0-alpha.1

    Update ESLint to 7.0.0-alpha.1
    
    PR-URL: #31400
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    cac1d01 View commit details
    Browse the repository at this point in the history
  9. tools: update ESLint to 7.0.0-alpha.2

    Update ESLint to 7.0.0-alpha.2
    
    PR-URL: #31400
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    814bb4a View commit details
    Browse the repository at this point in the history
  10. tools: enable default-case-last lint rule

    PR-URL: #31400
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    d3c4210 View commit details
    Browse the repository at this point in the history
  11. tools: enable no-useless-backreference lint rule

    PR-URL: #31400
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    35d0569 View commit details
    Browse the repository at this point in the history
  12. fs: make fs.read params optional

    This makes all the parameters of the `fs.read` function, except
    for `fd` and the callback(when not using as a promise) optional.
    
    They will default to sensible defaults.
    
    Fixes: #31237
    
    PR-URL: #31402
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    lholmquist authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    94f3eed View commit details
    Browse the repository at this point in the history
  13. build: support android build on ndk version equal or above 23

    change scripts and sources for android build, don't need standalone
    toolchain after ndk 19, and use clang as default android target
    compiler.
    
    PR-URL: #31521
    Reviewed-By: Christian Clauss <cclauss@me.com>
    forfun414 authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    d66daa5 View commit details
    Browse the repository at this point in the history
  14. src: remove unused include from node_file.cc

    PR-URL: #31809
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    c3aa3e7 View commit details
    Browse the repository at this point in the history
  15. src: fix -Wmaybe-uninitialized compiler warning

    Turn the `strategy_` method pointer into an enum-based static dispatch.
    
    It's both safer and more secure (no chance of method pointer corruption)
    and it helps GCC see that the shift and suffix tables it's complaining
    about are unused in single char search mode.
    
    Fixes the following warning:
    
        ../src/string_search.h:113:30: warning:
        ‘search’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             return (this->*strategy_)(subject, index);
    
    Fixes: #26733
    Refs: #31532
    Refs: #31798
    PR-URL: #31809
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    fa376f4 View commit details
    Browse the repository at this point in the history
  16. doc: prevent tables from shrinking page

    Tables on some pages (e.g. https://nodejs.org/api/crypto.html) are
    quite wide because of long content (e.g. URLs) that don't break.
    With this change, cell padding is smaller on small screens, and the
    table content is allowed to break.
    
    PR-URL: #31859
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    davidgilbertson authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    38329bd View commit details
    Browse the repository at this point in the history
  17. doc: add entry for AsyncHook class

    fixes: #31661
    
    PR-URL: #31865
    Fixes: #31661
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    HarshithaKP authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    3fa57ee View commit details
    Browse the repository at this point in the history
  18. test: improve test-fs-existssync-false.js

    PR-URL: #31883
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    himself65 authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    ceca1c3 View commit details
    Browse the repository at this point in the history
  19. doc: add support encoding link on string_decoder.md

    PR-URL: #31911
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    himself65 authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    35bea07 View commit details
    Browse the repository at this point in the history
  20. doc: improve Buffer documentation

    Various improvements to the Buffer docs.
    
    PR-URL: #32086
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    5bc5161 View commit details
    Browse the repository at this point in the history
  21. http, async_hooks: remove unneeded reference to wrapping resource

    Remove the reference from handle to the unique/wrapping resource
    ReusedHandle as there is meanwhile a strong reference for all async
    resources in place via AsyncWarp::resource_.
    
    PR-URL: #32054
    Refs: #30959
    Refs: #30196
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Flarna authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    49a07f7 View commit details
    Browse the repository at this point in the history
  22. src: fix missing extra ca in tls.rootCertificates

    Fixes tls.rootCertificates missing certificates loaded from
    NODE_EXTRA_CA_CERTS.
    
    Fixes: #32074
    
    PR-URL: #32075
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ebickle authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    2248ba7 View commit details
    Browse the repository at this point in the history
  23. doc: clarify windows specific behaviour

    It was not possible to understand which, if either, of the sentences
    after the first ("Windows does not... emulation") apply specifically to
    Windows.  Specifically, `kill(pid, 0)` works on Linux and Windows and I
    couldn't find it documented anywhere else, but the unconditional
    termination occurs only on Windows.
    
    PR-URL: #32079
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    sam-github authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    fa78aa4 View commit details
    Browse the repository at this point in the history
  24. doc: clear up child_process command resolution

    Fixes: #20605
    Refs: libuv/libuv#1837
    
    PR-URL: #32091
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lundibundi authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    af73ed6 View commit details
    Browse the repository at this point in the history
  25. build: add mjs extension to lint-js

    This matches what the lint-js make target passes through the CLI.
    
    PR-URL: #32145
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    nschonni authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    fe34da8 View commit details
    Browse the repository at this point in the history
  26. esm: remove unused parameter on module.instantiate

    PR-URL: #32147
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    himself65 authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    4c2e4d1 View commit details
    Browse the repository at this point in the history
  27. doc: include the error type in the request.resolve doc

    PR-URL: #32152
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    trusktr authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    893e918 View commit details
    Browse the repository at this point in the history
  28. async_hooks: avoid resource reuse by FileHandle

    Wrap reused read_wrap in a unique async resource to ensure that
    executionAsyncResource() is not ambiguous.
    
    PR-URL: #31972
    Refs: #30959
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Flarna authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    478f1e7 View commit details
    Browse the repository at this point in the history
  29. build: remove empty line on node.gyp file

    PR-URL: #31952
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    juanarbol authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    079bb31 View commit details
    Browse the repository at this point in the history
  30. src: fix spawnSync CHECK when SIGKILL fails

    We might not have sufficient privileges to signal the child process
    so don't make assumptions about the return value of `uv_process_kill()`.
    
    Example:
    
        node -e 'child_process.spawnSync("sudo", ["ls"], { maxBuffer: 1 })'
    
    No test because:
    
    1. The test needs to run as root (can't invoke sudo), and
    
    2. The parent needs to drop privileges but can't, because
       then the child process won't have sufficient privileges.
    
    Fixes: #31747
    
    PR-URL: #31768
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    025f658 View commit details
    Browse the repository at this point in the history
  31. crypto: optimize sign.update() and verify.update()

    Use `StringBytes::InlineDecoder` to decode strings inputs in C++ land
    instead of decoding them to buffers in JS land before passing them on
    to the C++ layer. This is what the other update() methods already did.
    
    PR-URL: #31767
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    ce686c0 View commit details
    Browse the repository at this point in the history
  32. src: DRY crypto Update() methods

    Factor out the common logic into a template function.
    Removes approximately six instances of copy/pasted code.
    
    PR-URL: #31767
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    e83671c View commit details
    Browse the repository at this point in the history
  33. doc,test: add server.timeout property to http2 public API

    Both http and https modules have server.timeout property
    in public API. This commit adds documentation section and test
    for server.timeout in http2 module, so it becomes consistent
    with http and https.
    
    Also improves description of callback argument in documentation
    for server.setTimeout().
    
    PR-URL: #31693
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    puzpuzpuz authored and MylesBorins committed Mar 11, 2020
    Copy the full SHA
    77e5b50 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2020

  1. stream: avoid destroying http1 objects

    http1 objects are coupled with their corresponding
    res/req and cannot be treated independently as
    normal streams. Add a special exception for this
    in the pipeline cleanup.
    
    Fixes: #32184
    
    Backport-PR-URL: #32212
    PR-URL: #32197
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    ronag authored and MylesBorins committed Mar 12, 2020
    Copy the full SHA
    66fe2d9 View commit details
    Browse the repository at this point in the history
  2. stream: avoid destroying writable source

    User might still want to be able to use the writable side
    of src. This is in the case where e.g. the Duplex input
    is not directly connected to its output. Such a case could
    happen when the Duplex is reading from a socket and then echos
    the data back on the same socket.
    
    Backport-PR-URL: #32212
    PR-URL: #32198
    Refs: 4d93e10#commitcomment-37751035
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    ronag authored and MylesBorins committed Mar 12, 2020
    Copy the full SHA
    fab8c83 View commit details
    Browse the repository at this point in the history
  3. 2020-03-11 Version 13.11.0 (Current)

    Notable changes:
    
    * async_hooks:
      - add sync enterWith to ALS (Stephen Belanger)
        #31945
    * cli:
      - allow --jitless V8 flag in NODE\_OPTIONS (Andrew Neitsch)
        #32100
    * fs:
      - return first folder made by mkdir recursive (Benjamin Coe)
        #31530
    * n-api:
      - define release 6 (Gabriel Schulhof)
        #32058
    * src:
      - create a getter for kernel version (Juan José Arboleda)
        #31732
    * wasi:
      - add returnOnExit option (Colin Ihrig)
        #32101
    
    PR-URL: #32185
    MylesBorins committed Mar 12, 2020
    Copy the full SHA
    4a53612 View commit details
    Browse the repository at this point in the history