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

src: enable CPU affinity for Node main thread to avoid context switch #11

Open
wants to merge 1,113 commits into
base: anode-v16.x
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jan 3, 2023

  1. report: add queue info for udp

    PR-URL: nodejs/node#44345
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4e87ef4 View commit details
    Browse the repository at this point in the history
  2. meta: update AUTHORS

    PR-URL: nodejs/node#44422
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5275c1e View commit details
    Browse the repository at this point in the history
  3. meta: update AUTHORS

    PR-URL: nodejs/node#44511
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b204087 View commit details
    Browse the repository at this point in the history
  4. tools: update eslint to 8.23.0

    PR-URL: nodejs/node#44419
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e4cb157 View commit details
    Browse the repository at this point in the history
  5. tools: update doc to [email protected]

    PR-URL: nodejs/node#44370
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ce60510 View commit details
    Browse the repository at this point in the history
  6. tools: don't use f-strings in test.py

    PR #43954 introduced the use of f-strings to `test.py` making the script
    only work with python versions >= 3.6. Remove that use to make it
    compatible again with older python versions.
    
    PR-URL: nodejs/node#44407
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    santigimeno authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    be1a22d View commit details
    Browse the repository at this point in the history
  7. tools: update lint-md-dependencies to [email protected]

    PR-URL: nodejs/node#44510
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5869595 View commit details
    Browse the repository at this point in the history
  8. lib: use safe Promise alternatives when available

    PR-URL: nodejs/node#43476
    Reviewed-By: Moshe Atlow <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2f864b1 View commit details
    Browse the repository at this point in the history
  9. debugger: decrease timeout used to wait for the port to be free

    By default, the debugger would query the specified inspector
    sever port to see if it's available before starting the server,
    and it would keep retrying until a timeout (previously 9999 ms)
    is reached. This timeout seems to be longer than necessary. This
    patch decreases the timeout to 3 seconds.
    
    PR-URL: nodejs/node#44359
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ffd44b0 View commit details
    Browse the repository at this point in the history
  10. src: make minor improvements to SecureBuffer

    Remove an unnecessary static_cast<char*>().
    
    Use OPENSSL_secure_zalloc() instead of OPENSSL_secure_malloc() +
    memset().
    
    Update the comment describing the function which predates support for
    OpenSSL's secure heap.
    
    PR-URL: nodejs/node#44302
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    f06cd76 View commit details
    Browse the repository at this point in the history
  11. tls: use OpenSSL constant for client random size

    Avoid magic numbers in the code and use an OpenSSL constant instead.
    
    PR-URL: nodejs/node#44305
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2fe716b View commit details
    Browse the repository at this point in the history
  12. test: raise sleep times in child process tests

    sequential/test-child-process-execsync and
    parallel/test-child-process-spawnsync-timeout are both flaky
    on azure Windows machines, where it may take longer for Node.js
    to launch and receive output from child processes. These tests
    work by spawning a child processes that is supposed to sleep
    for a long time, but the option is configured so that Node.js
    would terminate them early when a shorter timeout is reached.
    Then the tests assert that the time taken for the whole thing
    is shorter than the specified sleep time (meaning the process
    don't actually get to sleep for that long). To make the tests
    less brittle on azure Windows, this patch raises the sleep
    times in those tests on Windows platform, so that the overhead
    can be taken into account there.
    
    PR-URL: nodejs/node#44375
    Refs: nodejs/build#3014
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Nitzan Uziely <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3b7beea View commit details
    Browse the repository at this point in the history
  13. test: fix multiple incorrect mustNotCall() uses

    This does not fix occurrences in test/parallel/test-dns-* because those
    tests contain unrelated pre-existing bugs that would cause the tests to
    fail with this fix. This unrelated bug in those tests should be fixed
    separately before the use of mustNotCall() can be fixed in those files.
    
    PR-URL: nodejs/node#44022
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3115dda View commit details
    Browse the repository at this point in the history
  14. test: split heap prof tests

    The original heap prof tests can take too long to complete on
    azure Windows machines, resulting in timeouts. Split them into
    smaller tests and move them into the parallel directory to
    speed up the execution.
    
    PR-URL: nodejs/node#44388
    Refs: nodejs/reliability#356
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6cf65f2 View commit details
    Browse the repository at this point in the history
  15. test: make the vm timeout escape tests more lenient

    Previously the tests required that Node.js finish the initialization
    of the watchdog thread and fires the timeout within 100ms, which
    can be difficult on certain systems under load. This patch
    relaxes the requirement to 2000ms. If there is a bug and the
    timeout can actually be escaped, raising the timeout to 2000ms
    would not make a difference anyway.
    
    PR-URL: nodejs/node#44433
    Refs: nodejs/reliability#333
    Refs: nodejs/reliability#361
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Stephen Belanger <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2802d1f View commit details
    Browse the repository at this point in the history
  16. test: deflake child process exec timeout tests

    On Windows it might take too long for the parent to start the
    communication with a child process, so by the time the parent
    starts its own timer, the child process might have already
    completed running, and the parent in those tests won't have a
    chance to terminate these child processes after the timeout.
    To address this issue, raise the time for which the child is
    supposed to run to make sure that the parent starts
    its own timer before the child terminates in the tests.
    Also, split the test into smaller ones to reduce the overhead.
    
    PR-URL: nodejs/node#44390
    Refs: nodejs/reliability#356
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Stephen Belanger <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c9b5239 View commit details
    Browse the repository at this point in the history
  17. test: avoid race in file write stream handle tests

    The test previously created two fs.promises.open calls on the
    same file with w+ back-to-back, and one of them could fail
    when checking the contents of that file if the other happened
    to be opening the file for write. Split them into different
    tests (with different tmpdir) to avoid the race.
    
    PR-URL: nodejs/node#44380
    Refs: nodejs/reliability#354
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    885468a View commit details
    Browse the repository at this point in the history
  18. crypto: improve RSA-PSS digest error messages

    md and mgf1_md are internal variable names and should not appear in
    JS error messages. Also include the invalid digest name in the error
    message.
    
    PR-URL: nodejs/node#44307
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2cd3c02 View commit details
    Browse the repository at this point in the history
  19. src: fix multiple format string bugs

    The THROW_ERR_* functions interpret the first argument as a printf-like
    format string, which is problematic when it contains unsanitized user
    input. This typically happens when a printf-like function is used to
    produce the error message, which is then passed to a THROW_ERR_*
    function, which again interprets the error message as a format string.
    
    Fix such occurrences by properly formatting error messages using static
    format strings only, and in a single step.
    
    PR-URL: nodejs/node#44314
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    10939d7 View commit details
    Browse the repository at this point in the history
  20. tty: fix TypeError when stream is closed

    Fixes: nodejs/node#41330
    PR-URL: nodejs/node#43803
    Reviewed-By: Joyee Cheung <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ec4c256 View commit details
    Browse the repository at this point in the history
  21. src: remove KeyObjectData::symmetric_key_len_

    symmetric_key_len_ is always equal to symmetric_key_.size(). Storing it
    separately is redundant and has no significant benefit.
    
    PR-URL: nodejs/node#44346
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    515fcc2 View commit details
    Browse the repository at this point in the history
  22. node-api: cleanup redundant static modifiers

    Functions declared in anonymous namespaces are not necessarily to be
    marked as static.
    
    PR-URL: nodejs/node#44301
    Refs: nodejs/node#44141
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9ceeb24 View commit details
    Browse the repository at this point in the history
  23. src: simplify ECDH::GetCurves()

    There is no need to explicitly branch based on num_curves or on the
    return value of the second call to EC_get_builtin_curves. Remove
    unnecessary branches and replace the loop with a functional transform.
    
    PR-URL: nodejs/node#44309
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9607c25 View commit details
    Browse the repository at this point in the history
  24. build: add --libdir flag to configure

    This will allow distribution packages to select an alternative
    location for the unofficial libnode.so. For example, on Fedora it
    will install into /usr/lib64 on 64-bit systems.
    
    Signed-off-by: Stephen Gallagher <[email protected]>
    PR-URL: nodejs/node#44361
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    sgallagher authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    eda025f View commit details
    Browse the repository at this point in the history
  25. src: simplify and optimize GetOpenSSLVersion()

    The previous implementation was typically compiled to a fair amount of
    code even though all inputs are available at compile time.
    
    The fact that GetOpenSSLVersion() returns a std::string and used an
    uninitialized buffer with snprintf made it impossible to make
    GetOpenSSLVersion() a constexpr, and compilers would typically emit code
    to dynamically construct the resulting string.
    
    The simplified implementation usually boils down to a few mov
    instructions.
    
    (Ideally, this function could be a constexpr returning a
    std::string_view, but that does not have any advantage in the current
    design of node::Metadata::Versions which stores versions as
    std::string instances.)
    
    Also make the function static since it is not in an anonymous namespace
    and change the argument types and the return type of search() to
    types that are more appropriate, semantically. (The use of snprintf
    previously made this difficult.) Lastly, make the n argument of search()
    optional because the simplified implementation always sets it to 0
    except during recursive calls within search() itself.
    
    PR-URL: nodejs/node#44395
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Shelley Vohr <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    95869c2 View commit details
    Browse the repository at this point in the history
  26. cluster: fix cluster rr distribute error

    PR-URL: nodejs/node#44202
    Reviewed-By: James M Snell <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    43f2843 View commit details
    Browse the repository at this point in the history
  27. src: trace fs async api

    PR-URL: nodejs/node#44057
    Reviewed-By: James M Snell <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4bf4903 View commit details
    Browse the repository at this point in the history
  28. src: fix ssize_t error from nghttp2.h

    The "node_http2.h" include reordering enforced by clang-format broke
    Electron's Node.js upgrade on Windows. ssize_t is a part of the POSIX
    standard and it's not available on Windows, so the fix for this is to
    include "node.h" which typedefs it on Windows in
    https://github.com/nodejs/node/blob/bb4dff783ddb3b20c67041f7ccef796c335c2407/src/node.h#L212-L220.
    
    Refs: electron/electron#35350 (comment)
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: nodejs/node#44393
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Shelley Vohr <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    638a6cf View commit details
    Browse the repository at this point in the history
  29. src: make Endianness an enum class

    PR-URL: nodejs/node#44411
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8e0a63c View commit details
    Browse the repository at this point in the history
  30. src: fix uv_err_name memory leak

    PR-URL: nodejs/node#44421
    Refs: nodejs/node#44401
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ae6f292 View commit details
    Browse the repository at this point in the history
  31. src: remove base64_select_table and base64_table

    node::base64_encode() uses ::base64_encode() when the mode is
    Base64Mode::NORMAL, so base64_select_table is only ever called for
    Base64Mode::URL and thus only ever returns base64_table_url, but never
    base64_table.
    
    Also move base64_table_url into base64-inl.h.
    
    PR-URL: nodejs/node#44425
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9cc9dc5 View commit details
    Browse the repository at this point in the history
  32. node-api: avoid calling virtual methods in base's dtor

    Derived classes' fields are already destroyed if the virtual methods are
    invoked in the base class's destructor. It is not safe to call virtual
    methods in base's dtor.
    
    PR-URL: nodejs/node#44424
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9a8f6e8 View commit details
    Browse the repository at this point in the history
  33. src: add error handling to uv_uptime call

    PR-URL: nodejs/node#44386
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    juanarbol authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    bb2a5b2 View commit details
    Browse the repository at this point in the history
  34. src: avoid casting std::trunc(... / ...) to size_t

    Given that the divisor is not zero, the result of dividing unsigned
    integers is an unsigned integer that is always rounded down, i.e.,
    there is no need to call std::trunc(). Doing so unnecessarily yields
    a floating-point number, requiring the result to be cast to an unsigned
    integer again.
    
    PR-URL: nodejs/node#44467
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3d5b306 View commit details
    Browse the repository at this point in the history
  35. src: fix incorrect comments in crypto

    PR-URL: nodejs/node#44470
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    216a4e8 View commit details
    Browse the repository at this point in the history
  36. src: improve error handling in CloneSSLCerts

    If sk_X509_new() returns NULL or if sk_X509_push() fails, return instead
    of silently ignoring the error.
    
    PR-URL: nodejs/node#44410
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2b8c304 View commit details
    Browse the repository at this point in the history
  37. crypto: add digest name to INVALID_DIGEST errors

    We already do this in some places. This adds the digest name to
    remaining uses of ERR_CRYPTO_INVALID_DIGEST except for one occurrence in
    crypto_sig.cc that would require significant refactoring due to the
    unusual error handling there.
    
    PR-URL: nodejs/node#44468
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0333592 View commit details
    Browse the repository at this point in the history
  38. net: add local family

    PR-URL: nodejs/node#43975
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    07bca09 View commit details
    Browse the repository at this point in the history
  39. http: make idle http parser count configurable

    PR-URL: nodejs/node#43974
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    466862c View commit details
    Browse the repository at this point in the history
  40. lib: make validateObject less affected by prototype tampering

    PR-URL: nodejs/node#42929
    Reviewed-By: Tobias Nießen <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d1bdb35 View commit details
    Browse the repository at this point in the history
  41. bootstrap: stop delaying instantiation of maps in per-context scripts

    The linked issue, https://bugs.chromium.org/p/v8/issues/detail?id=6593,
    is marked as "Fixed", so I think we can revert this now.
    
    This reverts commit 08a9c4a.
    
    Signed-off-by: Darshan Sen <[email protected]>
    
    PR-URL: nodejs/node#42934
    Refs: https://bugs.chromium.org/p/v8/issues/detail?id=9187
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8b349c8 View commit details
    Browse the repository at this point in the history
  42. buffer: fix atob input validation

    This commit fixes a few inconsistencies between Node.js `atob`
    implementation and the WHATWG spec.
    
    Refs: https://infra.spec.whatwg.org/#forgiving-base64-decode
    Fixes: nodejs/node#42646
    PR-URL: nodejs/node#42662
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    austinkelleher authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e02a18c View commit details
    Browse the repository at this point in the history
  43. lib: refactor validateInt32 and validateUint32

    PR-URL: nodejs/node#43071
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    mawaregetsuka authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8484554 View commit details
    Browse the repository at this point in the history
  44. src: use a typed array internally for process._exiting

    This would prevent manual writes to the _exiting JS property on the
    process object by passing the data directly via a typed array for
    performance.
    
    This change partially addresses this TODO:
    https://github.com/nodejs/node/blob/3d575a4f1bd197c3ce669758a2a3c763462a883a/src/api/hooks.cc#L68-L71
    
    Signed-off-by: Darshan Sen <[email protected]>
    
    PR-URL: nodejs/node#43883
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4644f38 View commit details
    Browse the repository at this point in the history
  45. net,tls: pass a valid socket on tlsClientError

    On the 'tlsClientError' event, the `tlsSocket` instance is passed as
    `closed` status. Thus, users can't get information such as `remote
    address`, `remoteFamily`, and so on.
    
    This adds a flag to close a socket after emitting an `error` event.
    
    Signed-off-by: Daeyeon Jeong [email protected]
    PR-URL: nodejs/node#44021
    Fixes: nodejs/node#43963
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    daeyeon authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9e8a7f6 View commit details
    Browse the repository at this point in the history
  46. util: add maxArrayLength option to Set and Map

    PR-URL: nodejs/node#43576
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cola119 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fa3904e View commit details
    Browse the repository at this point in the history
  47. src: nest namespace report in namespace node

    PR-URL: nodejs/node#44069
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    67cfeef View commit details
    Browse the repository at this point in the history
  48. lib: reset RegExp statics before running user code

    Fixes: nodejs/node#43740
    
    PR-URL: nodejs/node#43741
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a2d55ae View commit details
    Browse the repository at this point in the history
  49. doc: add performance note to --enable-source-maps docs

    PR-URL: nodejs/node#43817
    Reviewed-By: Ben Coe <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    saurabhdaware authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8ee87f5 View commit details
    Browse the repository at this point in the history
  50. src: fix cppgc incompatibility in v8

    This patch updates the layout of the BaseObjects to make sure
    that the first embedder field of them is a "type" pointer, the
    first 16 bits of which are the Node.js embedder ID, so that
    cppgc will always skip over them. In addition we now use this
    field to determine if the native object should be interpreted
    as a Node.js embedder object in the serialization and deserialization
    callbacks for the startup snapshot to improve the reliability.
    
    Co-authored-by: Joyee Cheung <[email protected]>
    PR-URL: nodejs/node#43521
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    2 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2980e5a View commit details
    Browse the repository at this point in the history
  51. typings: add JSDoc for internal/validators

    PR-URL: nodejs/node#44181
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    anonrig authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    df11d14 View commit details
    Browse the repository at this point in the history
  52. report: print javascript stack on fatal error

    Try to print JavaScript stack on fatal error. OOMError needs to be
    distinguished from fatal error since no new handle can be created at
    that time.
    
    PR-URL: nodejs/node#44242
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ee97c09 View commit details
    Browse the repository at this point in the history
  53. tls: remove SecureContext setFreeListLength

    This function was introduced in 2684c90
    as an internal helper function. The C++ implementation became a no-op in
    a57e2f2 when building against OpenSSL
    1.1.0 (instead of OpenSSL 1.0.2), and eventually became a no-op in all
    supported OpenSSL versions in 970ce14.
    Finally, eb20447 removed the only call
    site of setFreeListLength (which was already a no-op at that point).
    
    Refs: nodejs/node#1529
    Refs: nodejs/node#10859
    Refs: nodejs/node#19794
    Refs: nodejs/node#38116
    PR-URL: nodejs/node#44300
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    cb141ac View commit details
    Browse the repository at this point in the history
  54. report: expose report public native apis

    Allows APM vendors to generate a diagnostic report without calling into
    JavaScript. Like, from their own message channels interrupting the
    isolate and generating a report on demand.
    
    PR-URL: nodejs/node#44255
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ca457e0 View commit details
    Browse the repository at this point in the history
  55. inspector: prevent integer overflow in open()

    PR-URL: nodejs/node#44367
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    410a0f5 View commit details
    Browse the repository at this point in the history
  56. test: split report OOM tests

    On some machines the report OOM tests can take too long to complete,
    resulting in a timeout. This splits the test into several different
    smaller tests to reduce the flakiness of it.
    
    PR-URL: nodejs/node#44389
    Refs: nodejs/reliability#356
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    88f31e4 View commit details
    Browse the repository at this point in the history
  57. doc,worker: document resourceLimits overrides

    If `--max-old-space-size` is passed on the command line, it takes
    precedence over `resourceLimits.maxOldSpaceSizeMb` passed to the worker
    thread. IMO this is a bug, but seems unlikely to change(?), so let's
    start by documenting it. See the attached issue for more details.
    
    Refs: nodejs/node#43991
    PR-URL: nodejs/node#43992
    Reviewed-By: James M Snell <[email protected]>
    kvakil authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c0b5d70 View commit details
    Browse the repository at this point in the history
  58. os: add machine method

    PR-URL: nodejs/node#44416
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    730d34d View commit details
    Browse the repository at this point in the history
  59. lib: add diagnostics channel for process and worker

    PR-URL: nodejs/node#44045
    Reviewed-By: James M Snell <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ae47a85 View commit details
    Browse the repository at this point in the history
  60. crypto: use actual option name in error message

    oaep_label is the name of the C++ variable. Use oaepLabel instead, which
    is the name of the documented option.
    
    PR-URL: nodejs/node#44455
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: theanarkh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    84a5e76 View commit details
    Browse the repository at this point in the history
  61. src: expose environment RequestInterrupt api

    Allow add-ons to interrupt JavaScript execution, and wake up loop if it
    is currently idle.
    
    PR-URL: nodejs/node#44362
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gerhard Stöbich <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0df8f18 View commit details
    Browse the repository at this point in the history
  62. report: fix missing section javascriptHeap on OOMError

    `Environment::GetCurrent` may not available in the context of OOM.
    Removes the cyclic `Environment::GetCurrent` and `env->isolate()`
    calls to ensure both `isolate` and `env` is present if available.
    
    However, this behavior is not guaranteed. As
    `Environment::GetCurrent` didn't allocate new handles in the heap,
    when a Context is entered it can still get the valid env pointer.
    Removes the unstable assertion of the absence of env in the test.
    
    PR-URL: nodejs/node#44398
    Reviewed-By: Rafael Gonzaga <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    91e7bc9 View commit details
    Browse the repository at this point in the history
  63. report: get stack trace with cross origin contexts

    When a new context with a different security token is entered, or
    when no context is entered, `StackTrace::CurrentStackTrace` need to
    be explicitly set with flag `kExposeFramesAcrossSecurityOrigins` to
    avoid crashing.
    
    PR-URL: nodejs/node#44398
    Reviewed-By: Rafael Gonzaga <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    68b1e37 View commit details
    Browse the repository at this point in the history
  64. crypto: handle invalid prepareAsymmetricKey JWK inputs

    Fixes #44471
    
    PR-URL: nodejs/node#44475
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    be1c1db View commit details
    Browse the repository at this point in the history
  65. src: rename misleading arg in ClientHelloParser

    Despite being named onend_arg, the pointer is passed both to the
    onend_cb and to the onhello_cb. Rename it to cb_arg, which matches the
    name of the class field cb_arg_.
    
    PR-URL: nodejs/node#44500
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    de19589 View commit details
    Browse the repository at this point in the history
  66. doc: move policy docs to the permissions scope

    PR-URL: nodejs/node#44222
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    74652b7 View commit details
    Browse the repository at this point in the history
  67. test: add more cases for parse-encoding

    PR-URL: nodejs/node#44427
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Qingyu Deng <[email protected]>
    tony-go authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    8028eae View commit details
    Browse the repository at this point in the history
  68. test: fix DebugSymbolsTest.ReqWrapList on PPC64LE

    Currently, DebugSymbolsTest.ReqWrapList fails on PPC64LE when Node has
    been configured with Link Time Optimization (LTO) and using RHEL 8.5
    and gcc:
    ```console
    $ . /opt/rh/gcc-toolset-11/enable
    $ export CC='ccache gcc'
    $ export CXX='ccache g++'
    $ ./configure --enable-lto
    $ make -j8 cctest
    ...
    21:52:27 [ RUN      ] DebugSymbolsTest.ReqWrapList
    21:52:27 ../test/cctest/test_node_postmortem_metadata.cc:203: Failure
    21:52:27 Expected equality of these values:
    21:52:27   expected
    21:52:27     Which is: 140736537072320
    21:52:27   calculated
    21:52:27     Which is: 1099680328560
    21:52:27 [  FAILED  ] DebugSymbolsTest.ReqWrapList (43 ms)
    ```
    
    After looking into this is seems that the compiler is tampering with the
    `last` variable when compiling with LTO enabled. This commit suggests
    adding volatile to this variable to prevent the compiler from tampering
    with it.
    
    PR-URL: nodejs/node#44341
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    danbev authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    079f0ad View commit details
    Browse the repository at this point in the history
  69. doc: document attribute Script.cachedDataRejected

    Explicitly document the attribute `Script.cachedDataRejected` in a
    dedicated section.
    
    Removes the documented option `produceCachedData` and the description
    of `cachedDataRejected` in `vm.runInContext`, `vm.runInNewContext`,
    and `vm.runInThisContext` as the created `vm.Script` instance is not
    accessible from userland in these methods.
    
    PR-URL: nodejs/node#44451
    Reviewed-By: Luigi Pinca <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    8322491 View commit details
    Browse the repository at this point in the history
  70. deps: update to uvwasi 0.0.13

    Notable changes:
    
    - A bug has been fixed in `uvwasi_fd_readdir()` that caused
      the number of entries to be processed incorrectly.
    
    PR-URL: nodejs/node#44524
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    cjihrig authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    d67be13 View commit details
    Browse the repository at this point in the history
  71. lib: fix reference leak

    PR-URL: nodejs/node#44499
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    falsandtru authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    aac9121 View commit details
    Browse the repository at this point in the history
  72. v8: add setHeapSnapshotNearHeapLimit

    PR-URL: nodejs/node#44420
    Refs: nodejs/node#33010
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    0c5b425 View commit details
    Browse the repository at this point in the history
  73. tools: fix shebang to use python3 by default

    PR-URL: nodejs/node#44531
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    himself65 authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    cc229a3 View commit details
    Browse the repository at this point in the history
  74. doc: emphasize that createCipher is never secure

    The current documentation clearly states that createCipher() and
    createDecipher() should not be used with ciphers in counter mode, but
    (1) this is an understatement, and (2) these functions are
    (semantically) insecure for ciphers in any other supported block cipher
    mode as well.
    
    Semantic security requires IND-CPA, but a deterministic cipher with
    fixed key and IV, such as those generated by these functions, does not
    fulfill IND-CPA.
    
    Are there justified use cases for createCipher() and createDecipher()?
    Yes and no. The only case in which these functions can be used in a
    semantically secure manner arises only when the password argument is
    not actually a password but rather a random or pseudo-random sequence
    that is unpredictable and that is never reused (e.g., securely derived
    from a password with a proper salt). Insofar, it is possible to use
    these APIs without immediately creating a vulnerability. However,
    
    - any application that manages to fulfill this requirement should also
      be able to fulfill the similar requirements of crypto.createCipheriv()
      and those of crypto.createDecipheriv(), which give much more control
      over key and initialization vector, and
    - the MD5-based key derivation step generally does not help and might
      even reduce the overall security due to its many weaknesses.
    
    Refs: nodejs/node#13821
    Refs: nodejs/node#19343
    Refs: nodejs/node#22089
    PR-URL: nodejs/node#44538
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    b1ac803 View commit details
    Browse the repository at this point in the history
  75. stream: add ReadableByteStream.tee()

    This supports teeing readable byte streams to meet
    the latest web streams standards.
    
    Signed-off-by: Daeyeon Jeong [email protected]
    PR-URL: nodejs/node#44505
    Refs: https://streams.spec.whatwg.org/#readable-stream-tee
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    daeyeon authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    a832f57 View commit details
    Browse the repository at this point in the history
  76. doc: remove ebpf from supported tooling list

    PR-URL: nodejs/node#44549
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    ced45c0 View commit details
    Browse the repository at this point in the history
  77. test: use python3 instead of python

    On some platforms, such as macOS, the `python` command is no longer
    available by default.
    
    PR-URL: nodejs/node#44545
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    c5d28fd View commit details
    Browse the repository at this point in the history
  78. doc: do not use weak MODP group in example

    As a first, small step toward deprecating modp1, stop using it in an
    example that users might copy.
    
    Refs: nodejs/node#44539
    PR-URL: nodejs/node#44585
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: theanarkh <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    9a94062 View commit details
    Browse the repository at this point in the history
  79. crypto: restrict PBKDF2 args to signed int

    OpenSSL internally represents the output length and the iteration count
    as signed integers, which is why node's C++ implementation expects these
    arguments to fit into signed integers as well. The JavaScript validation
    logic, however, only requires the arguments to be unsigned 32-bit
    integers, which is a superset of non-negative (signed) 32-bit integers.
    
    Change the JavaScript validation to match the expectation within C++.
    
    Fixes: nodejs/node#44570
    PR-URL: nodejs/node#44575
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    b11d8f7 View commit details
    Browse the repository at this point in the history
  80. meta: update AUTHORS

    PR-URL: nodejs/node#44591
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    c43a3aa View commit details
    Browse the repository at this point in the history
  81. doc: fix link in process.md

    PR-URL: nodejs/node#44594
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    5514081 View commit details
    Browse the repository at this point in the history
  82. doc: mention how to get commit release

    PR-URL: nodejs/node#44572
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Ruy Adorno <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    1 Configuration menu
    Copy the full SHA
    75e3133 View commit details
    Browse the repository at this point in the history
  83. tools: increase timeout of running WPT

    We run all WPT from one subset in the same process using workers.
    As the number of the tests grow, it can take longer to run some of the
    subsets, but it's still overall faster than running them in different
    processes. This patch increases the timeout
    for WPT to prevent the test from failing because it takes longer
    to run (even though it would still complete at some point).
    
    PR-URL: nodejs/node#44574
    Refs: nodejs/reliability#371
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7983ec0 View commit details
    Browse the repository at this point in the history
  84. build: rewritten the Android build system

    Completely rewritten the Android build system using Python
    
    Co-Authored-By: 东灯 <[email protected]>
    Co-Authored-By: Feng Yu <[email protected]>
    PR-URL: nodejs/node#44207
    Refs: nodejs/node#36287
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: Christian Clauss <[email protected]>
    3 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d75cc51 View commit details
    Browse the repository at this point in the history
  85. doc: fix vm.Script createCachedData example

    `Script.createCachedData` and `SourceTextModule.createCachedData`
    doesn't serialize JavaScript variables.
    
    PR-URL: nodejs/node#44487
    Reviewed-By: Joyee Cheung <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    dfa2159 View commit details
    Browse the repository at this point in the history
  86. doc: fix errors in http.md

    Fixes: nodejs/node#44567
    PR-URL: nodejs/node#44587
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Mestery <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d64f5d6 View commit details
    Browse the repository at this point in the history
  87. doc: fix heading levels for test runner hooks

    before/after/beforeEach/afterEach are exported directly from `node:test`
    and should not be indented under `it.todo`.
    
    PR-URL: nodejs/node#44603
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    meyfa authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    207ff52 View commit details
    Browse the repository at this point in the history
  88. doc: remove old OpenSSL ENGINE constants

    These constants have not existed since OpenSSL 1.1.0 reached EOL a few
    years ago.
    
    Refs: nodejs/node#19794
    PR-URL: nodejs/node#44589
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    394e691 View commit details
    Browse the repository at this point in the history
  89. doc: deprecate modp1, modp2, and modp5 groups

    These MODP groups should not be used by new applications, and existing
    applications should attempt to migrate to stronger groups (or different
    key exchange mechanisms).
    
    Some applications still rely on these particular groups, so Node.js will
    likely maintain support, directly or indirectly, for the foreseeable
    future.
    
    Refs: nodejs/node#44539
    PR-URL: nodejs/node#44588
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    62f94ec View commit details
    Browse the repository at this point in the history
  90. test: ignore stale process cleanup failures on Windows

    In some tests we try to clean up stale child processes on Windows,
    but they don't necessarily exist, in that case we should ignore
    any failures from the WMIC.exe command.
    
    PR-URL: nodejs/node#44480
    Reviewed-By: Luigi Pinca <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0ebc683 View commit details
    Browse the repository at this point in the history
  91. inspector: expose inspector.close on workers

    Workers can open their own inspector agent with `inspector.open`.
    They should be able to close their own inspector agent too with
    `inspector.close`.
    
    PR-URL: nodejs/node#44489
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    70e05b4 View commit details
    Browse the repository at this point in the history
  92. win: fix fs.realpath.native for long paths

    Unlike other fs.js functions that work with paths, realpath.native isn't
    using pathModule.toNamespacedPath prior to calling libuv function. This
    is causing issues on windows.
    
    Windows long path test is also improved to cover the mentioned issue.
    
    Fixes: nodejs/node#39721
    PR-URL: nodejs/node#44536
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gerhard Stöbich <[email protected]>
    StefanStojanovic authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    db85799 View commit details
    Browse the repository at this point in the history
  93. src: dump isolate stats when process exits

    When process exits, dump v8 isolate's internal stats for performance
    evaluation and debugging.
    It fixed the incorrect profiling log output when running V8's builtin
    PGO profiling for node.js service type application,which exits by user
    pressing CTRL+C etc. keys.
    
    PR-URL: nodejs/node#44534
    Reviewed-By: Anna Henningsen <[email protected]>
    qdaoming authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    56f8da5 View commit details
    Browse the repository at this point in the history
  94. stream: refactor use es2020 statement

    PR-URL: nodejs/node#44533
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Erick Wendel <[email protected]>
    xtx1130 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    efb8b15 View commit details
    Browse the repository at this point in the history
  95. benchmark: add stream destroy benchmark

    PR-URL: nodejs/node#44533
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Erick Wendel <[email protected]>
    xtx1130 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8850d74 View commit details
    Browse the repository at this point in the history
  96. tools: update lint-md-dependencies to @rollup/[email protected]

    PR-URL: nodejs/node#44590
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4e67a27 View commit details
    Browse the repository at this point in the history
  97. src: make NearHeapLimitCallback() more robust

    Instead of removing the callback before generating heap snapshot
    and then adding it back after the heap snapshot is generated,
    just remove it once the heap snapshot limit is reached.
    Otherwise if the worker callback kicks in and sets the heap
    limit to higher value during the heap snapshot generation,
    the current_heap_limit in the heap snapshot callback becomes
    invalid, and we might return a heap limit lower than the current
    one, resulting in OOM.
    
    In addition add more logs and checks in Worker::NearHeapLimit()
    to help us catch problems.
    
    PR-URL: nodejs/node#44581
    Refs: nodejs/reliability#372
    Reviewed-By: theanarkh <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e1b0c48 View commit details
    Browse the repository at this point in the history
  98. build: remove redundant entry in crypto

    PR-URL: nodejs/node#44604
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: theanarkh <[email protected]>
    gengjiawen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c32f7d6 View commit details
    Browse the repository at this point in the history
  99. src: make ReqWrap weak

    This commit allows throwing an exception after creating `FSReqCallback`
    
    Co-authored-by: Anna Henningsen <[email protected]>
    PR-URL: nodejs/node#44074
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    2 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d23ebfe View commit details
    Browse the repository at this point in the history
  100. doc: remove empty line in YAML block

    PR-URL: nodejs/node#44617
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    ovflowd authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e8a7ca5 View commit details
    Browse the repository at this point in the history
  101. fs: remove unused option in fs.fstatSync()

    PR-URL: nodejs/node#44613
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: theanarkh <[email protected]>
    LiviaMedeiros authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ee3c104 View commit details
    Browse the repository at this point in the history
  102. doc: use serial comma in stream docs

    Signed-off-by: Daeyeon Jeong [email protected]
    PR-URL: nodejs/node#44609
    Reviewed-By: theanarkh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Harshitha K P <[email protected]>
    daeyeon authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8870c74 View commit details
    Browse the repository at this point in the history
  103. test_runner: include stack of uncaught exceptions

    PR-URL: nodejs/node#44614
    Fixes: nodejs/node#44611
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9afeb14 View commit details
    Browse the repository at this point in the history
  104. src: avoid copy when creating Blob

    PR-URL: nodejs/node#44616
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b57a86a View commit details
    Browse the repository at this point in the history
  105. test: fix test-repl not validating leaked globals properly

    PR-URL: nodejs/node#44640
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ccb9119 View commit details
    Browse the repository at this point in the history
  106. tools: update lint-md-dependencies to @rollup/[email protected]

    PR-URL: nodejs/node#44638
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fbd86cb View commit details
    Browse the repository at this point in the history
  107. doc: use serial comma in report docs

    Signed-off-by: Daeyeon Jeong [email protected]
    PR-URL: nodejs/node#44608
    Reviewed-By: theanarkh <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    daeyeon authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    40958ab View commit details
    Browse the repository at this point in the history
  108. tools: update eslint to 8.23.1

    PR-URL: nodejs/node#44639
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8ae2991 View commit details
    Browse the repository at this point in the history
  109. meta: update test_runner in label-pr-config

    PR-URL: nodejs/node#44615
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    shrujalshah28 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d4b594a View commit details
    Browse the repository at this point in the history
  110. doc: remove comma in README.md

    Grammar edit
    
    PR-URL: nodejs/node#44599
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Taha-Chaudhry authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6f75c16 View commit details
    Browse the repository at this point in the history
  111. lib,test: fix bug in InternalSocketAddress

    InternalSocketAddress must set [kDetails] in order for the inherited
    properties to function correctly.
    
    Co-authored-by: Tobias Nießen <[email protected]>
    PR-URL: nodejs/node#44618
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    92135bb View commit details
    Browse the repository at this point in the history
  112. tls: fix out-of-bounds read in ClientHelloParser

    ClientHelloParser::ParseHeader(data, avail) potentially accesses data
    beyond avail bytes because it trusts the client to transmit a valid
    frame length. Sending an impossibly small frame length causes the TLS
    server to read beyond the buffer provided by the caller.
    
    Guard against this by calling End() on the ClientHelloParser when the
    client transmits an impossibly small frame length.
    
    The test is designed to reliable cause a segmentation fault on Linux and
    Windows when the buffer overrun occurs, and to trigger a spatial safety
    violation when compiled with an address sanitizer enabled or when
    running under valgrind.
    
    PR-URL: nodejs/node#44580
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3d3292d View commit details
    Browse the repository at this point in the history
  113. doc,inspector: document changes of inspector.close

    Retrospectively document the changes history of the `inspector.close`
    API.
    
    PR-URL: nodejs/node#44628
    Refs: nodejs/node#44489
    Refs: nodejs/node#13228
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5b4824c View commit details
    Browse the repository at this point in the history
  114. test: improve lib/readline.js coverage

    PR-URL: nodejs/node#42686
    Refs: https://coverage.nodejs.org/coverage-a0461255c05c79cf/lib/readline.js.html#L105
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    fossamagna authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    88a8296 View commit details
    Browse the repository at this point in the history
  115. tools: add timezone update workflow

    Fixes: nodejs/node#43134
    PR-URL: nodejs/node#43988
    Reviewed-By: Steven R Loomis <[email protected]>
    98lenvi authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3467ef3 View commit details
    Browse the repository at this point in the history
  116. tools: fix typo in update-nghttp2.sh

    PR-URL: nodejs/node#44664
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fb9ba7d View commit details
    Browse the repository at this point in the history
  117. doc: add legendecas to TSC list

    Refs: nodejs/TSC#1282
    
    Signed-off-by: Michael Dawson <[email protected]>
    
    PR-URL: nodejs/node#44662
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    mhdawson authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3e1ebf1 View commit details
    Browse the repository at this point in the history
  118. test: fix test-performance-measure

    Refs: nodejs/node#42949
    
    Looking at the documentation for setTimeout
    (https://nodejs.org/api/timers.html#settimeoutcallback-delay-args)
    there is no guarantee that setTimeout won't complete early.
    
    From the failure of nodejs/node#42949 this
    is likely what happened.
    
    I have updated the assert.ok test to allow some variation in
    the test.
    
    PR-URL: nodejs/node#44637
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    smitley authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4c626d1 View commit details
    Browse the repository at this point in the history
  119. doc: maintain only one list of MODP groups

    There are two lists of MODP groups, one of which is redundant and does
    not mark weak groups as deprecated. Remove said list and refer readers
    to the first list instead.
    
    Refs: nodejs/node#43986
    Refs: nodejs/node#44588
    PR-URL: nodejs/node#44644
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c320d16 View commit details
    Browse the repository at this point in the history
  120. doc: improve building doc for Windows Powershell

    PR-URL: nodejs/node#44625
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    bmuenzenmeyer authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a0fbd95 View commit details
    Browse the repository at this point in the history
  121. deps: upgrade npm to 8.19.2

    PR-URL: nodejs/node#44632
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    npm-cli-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    58732dc View commit details
    Browse the repository at this point in the history
  122. doc: make legacy banner slightly less bright

    PR-URL: nodejs/node#44665
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Trott authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5f6ac6e View commit details
    Browse the repository at this point in the history
  123. meta: move dnlup to emeriti

    PR-URL: nodejs/node#44667
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    dnlup authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7695a07 View commit details
    Browse the repository at this point in the history
  124. http: throw error on content-length mismatch

    PR-URL: nodejs/node#44378
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Robert Nagy <[email protected]>
    sidwebworks authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    50ca02c View commit details
    Browse the repository at this point in the history
  125. deps: update ngtcp2 update instructions

    Prefer tagged versions over the latest commit on the development branch,
    and a few other minor improvements.
    
    PR-URL: nodejs/node#44619
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    91b3999 View commit details
    Browse the repository at this point in the history
  126. deps: update corepack to 0.14.1

    PR-URL: nodejs/node#44704
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7bb59c6 View commit details
    Browse the repository at this point in the history
  127. module: open stat/readPackage to mutations

    PR-URL: nodejs/node#44537
    Reviewed-By: Antoine du Hamel <[email protected]>
    arcanis authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    1194bae View commit details
    Browse the repository at this point in the history
  128. deps: update to ngtcp2 0.8.1 and nghttp3 0.7.0

    Refs: nodejs/node#44619
    Co-authored-by: James M Snell <[email protected]>
    PR-URL: nodejs/node#44622
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    2 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    220f555 View commit details
    Browse the repository at this point in the history
  129. src: remove <unistd.h> from node_os.cc

    The file does not use sysconf() and its use of gethostname() has been
    removed, so including <unistd.h> appears to be unnecessary.
    
    PR-URL: nodejs/node#44668
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    1a38b30 View commit details
    Browse the repository at this point in the history
  130. meta: update AUTHORS

    PR-URL: nodejs/node#44705
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9daadb5 View commit details
    Browse the repository at this point in the history
  131. tools: add update-llhttp.sh

    PR-URL: nodejs/node#44652
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Co-authored-by: Antoine du Hamel <[email protected]>
    Co-authored-by: Tobias Nießen <[email protected]>
    Co-authored-by: Luigi Pinca <[email protected]>
    4 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    765d4fb View commit details
    Browse the repository at this point in the history
  132. meta: add mailmap entry for dnlup

    This updates dnlup's name to their preferred email per their last pull
    request.
    
    This will also prevent duplicate entries for dnlup when the
    update-authors job runs.
    
    It also moves one unrelated line in .mailmap so that all lines are
    sorted in lexical order.
    
    PR-URL: nodejs/node#44716
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Trott authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    90fd063 View commit details
    Browse the repository at this point in the history
  133. esm,loader: tidy ESMLoader internals

    PR-URL: nodejs/node#44701
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    JakobJingleheimer authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0153a83 View commit details
    Browse the repository at this point in the history
  134. doc: remove extra space on threadpool usage

    PR-URL: nodejs/node#44734
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    connorjburton authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ec232dc View commit details
    Browse the repository at this point in the history
  135. doc: mention where to push security commits

    PR-URL: nodejs/node#44691
    Reviewed-By: Danielle Adams <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5551c83 View commit details
    Browse the repository at this point in the history
  136. gyp: libnode for ios app embedding

    PR-URL: nodejs/node#44210
    Reviewed-By: Jiawen Geng <[email protected]>
    chexiongsheng authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    40bc300 View commit details
    Browse the repository at this point in the history
  137. src: avoid using v8 on Isolate termination

    Fix multiple instances of those uncovered while running the tests on
    debug builds.
    
    Fixes: nodejs/node-v8#227
    PR-URL: nodejs/node#44669
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    santigimeno authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b5dffba View commit details
    Browse the repository at this point in the history
  138. doc: include code examples for webstreams consumers

    Add missing examples for webstreams consumers
    
    Doc URL: https://nodejs.org/api/webstreams.html#streamconsumerstextstream
    
    PR-URL: nodejs/node#44387
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    khaosdoctor authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b54d100 View commit details
    Browse the repository at this point in the history
  139. benchmark: fix startup benchmark

    This allows the misc/startup benchmark to run again
    after the renaming of the C++ `native_module` to `builtins`
    
    PR-URL: nodejs/node#44727
    Refs: nodejs/node#44135
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    evanlucas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    f8e9dd8 View commit details
    Browse the repository at this point in the history
  140. doc,crypto: cleanup removed pbkdf2 behaviours

    PR-URL: nodejs/node#44733
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fa05d90 View commit details
    Browse the repository at this point in the history
  141. util: increase robustness with primordials

    PR-URL: nodejs/node#41212
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ljharb authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    34b7f90 View commit details
    Browse the repository at this point in the history
  142. doc: add registry number for Electron 22

    PR-URL: nodejs/node#44748
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    VerteDinde authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    531a0e4 View commit details
    Browse the repository at this point in the history
  143. test: change promise to async/await in debugger-watcher

    PR-URL: nodejs/node#44687
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Pooja444 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ca34771 View commit details
    Browse the repository at this point in the history
  144. doc: update guidance for adding new modules

    - updated based on decision to use node: prefix in
      nodejs/TSC#1206
    - updated based on agreement in TSC meeting
      on adding /promises to existing modules as per
      minutes - nodejs/TSC#1281
    
    Signed-off-by: Michael Dawson <[email protected]>
    
    PR-URL: nodejs/node#44576
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Danielle Adams <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    mhdawson authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d63ad83 View commit details
    Browse the repository at this point in the history
  145. http: disable chunked encoding when OBS fold is used

    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Vladimir de Turckheim <[email protected]>
    PR-URL: #341
    CVE-ID: CVE-2022-32213, CVE-2022-32215, CVE-2022-35256
    ShogunPanda authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    c9c70d1 View commit details
    Browse the repository at this point in the history
  146. doc: update the deprecation for exit code to clarify its scope

    This updates the deprecation, DEP0164, to clarify its scope.
    
    Previously, `process.exitCode` wasn't mentioned but it needs
    to be applied with the same deprecation because its meaning
    is the same as the `code` value and it's overridden with the
    `code` value in `process.exit()`.
    
    Signed-off-by: Daeyeon Jeong <[email protected]>
    Co-authored-by: Antoine du Hamel <[email protected]>
    PR-URL: nodejs/node#44714
    Refs: nodejs/node#44712
    Refs: nodejs/node#43738
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    2 people authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    702c496 View commit details
    Browse the repository at this point in the history
  147. meta: update AUTHORS

    PR-URL: nodejs/node#44777
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    85f2250 View commit details
    Browse the repository at this point in the history
  148. test: check that sysconf returns a positive value

    Static analysis insists that sysconf(_SC_PAGE_SIZE) might return a
    negative integer (even though it never will). This was supposed to be
    handled by the existing check EXPECT_GE(page, static_cast<int>(N)).
    I assume that static analysis does not consider this sufficient because
    static_cast<int>(N) could be negative or zero if N exceeds INT_MAX (even
    though it never will).
    
    To resolve this (theoretical) problem, explicitly check that the return
    value is positive and then cast it to a size_t.
    
    PR-URL: nodejs/node#44666
    Reviewed-By: Darshan Sen <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    99a58b0 View commit details
    Browse the repository at this point in the history
  149. test: update test-debugger-low-level to use await/async

    PR-URL: nodejs/node#44688
    Reviewed-By: Rich Trott <[email protected]>
    ml7181 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2a02416 View commit details
    Browse the repository at this point in the history
  150. test: use async/await in test-debugger-invalid-args

    PR-URL: nodejs/node#44678
    Reviewed-By: Rich Trott <[email protected]>
    nupurchauhan6 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6fbaaac View commit details
    Browse the repository at this point in the history
  151. doc: fix v16.17.1 security release changelog

    doc/changelogs/CHANGELOG_V16.md is missing the security release header
    prior to the "Notable changes" section.
    
    PR-URL: nodejs/node#44759
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Bryan English <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ruyadorno authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    913e05e View commit details
    Browse the repository at this point in the history
  152. doc: fix description for napi_get_cb_info() in n-api.md

    Signed-off-by: Daeyeon Jeong <[email protected]>
    PR-URL: nodejs/node#44761
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    daeyeon authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    96440bf View commit details
    Browse the repository at this point in the history
  153. test: change promises to async/await

    PR-URL: nodejs/node#44683
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    MadhulikaSharma95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    318ecd2 View commit details
    Browse the repository at this point in the history
  154. fs: fix typo in mkdir example

    PR-URL: nodejs/node#44791
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    SergeyTsukanov authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    14cabfc View commit details
    Browse the repository at this point in the history
  155. test: verify napi_remove_wrap with napi_delete_reference

    Verify that napi_remove_wrap and napi_delete_reference should be safe
    to be called consecutively on the in-out params of napi_wrap.
    
    PR-URL: nodejs/node#44754
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8b0b23c View commit details
    Browse the repository at this point in the history
  156. doc: ensure to revert node_version changes

    PR-URL: nodejs/node#44760
    Reviewed-By: Ruy Adorno <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Geoffrey Booth <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    50c3685 View commit details
    Browse the repository at this point in the history
  157. doc: mention git node backport

    PR-URL: nodejs/node#44764
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    06e3349 View commit details
    Browse the repository at this point in the history
  158. tools: update lint-md-dependencies to [email protected]

    PR-URL: nodejs/node#44776
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e33a449 View commit details
    Browse the repository at this point in the history
  159. tools: update eslint to 8.24.0

    PR-URL: nodejs/node#44778
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    67cd9ba View commit details
    Browse the repository at this point in the history
  160. path: change basename() argument from ext to suffix

    Closes: nodejs/node#44773
    PR-URL: nodejs/node#44774
    Fixes: nodejs/node#44773
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Trott authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    db5b72f View commit details
    Browse the repository at this point in the history
  161. tools: update eslint-check.js to object style

    Updated rule from deprecated function-style
    format to object-style format.
    
    Refs: https://eslint.org/docs/latest/developer-guide/working-with-rules
    PR-URL: nodejs/node#44706
    Reviewed-By: Rich Trott <[email protected]>
    andiemontoyeah authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    47d08f3 View commit details
    Browse the repository at this point in the history
  162. Configuration menu
    Copy the full SHA
    9f3f417 View commit details
    Browse the repository at this point in the history
  163. test: use async/await in test-debugger-profile

    PR-URL: nodejs/node#44684
    Reviewed-By: Rich Trott <[email protected]>
    surbhirjain authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d130d51 View commit details
    Browse the repository at this point in the history
  164. test: use async/await in test-debugger-preserve-breaks

    PR-URL: nodejs/node#44696
    Reviewed-By: Stephen Belanger <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    poorvitusam authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    cca6b12 View commit details
    Browse the repository at this point in the history
  165. test: update test-debugger-breakpoint-exists.js to use async/await

    PR-URL: nodejs/node#44682
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    archana-kamath authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6f9fe30 View commit details
    Browse the repository at this point in the history
  166. build: update timezone-update.yml

    Signed-off-by: sashashura <[email protected]>
    
    PR-URL: nodejs/node#44717
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mestery <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    sashashura authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    83c65ab View commit details
    Browse the repository at this point in the history
  167. test: modify test-debugger-custom-port.js to use async-await

    PR-URL: nodejs/node#44680
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    pshastricb authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6614225 View commit details
    Browse the repository at this point in the history
  168. doc: remove "currently" and comma splice from child_process.md

    Remove redundant use of "currently" and fix a comma splice.
    
    PR-URL: nodejs/node#44789
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Harshitha K P <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Trott authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5cbb6a8 View commit details
    Browse the repository at this point in the history
  169. tools: refactor deprecated format in no-unescaped-regexp-dot

    PR-URL: nodejs/node#44763
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    sonimadhuri authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6ec5ef6 View commit details
    Browse the repository at this point in the history
  170. esm: fix duplicated test

    PR-URL: nodejs/node#44779
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    GeoffreyBooth authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d6b602a View commit details
    Browse the repository at this point in the history
  171. test: refactor to async/await

    PR-URL: nodejs/node#44694
    Reviewed-By: Stephen Belanger <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    DivyaMohan94 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    078ecbe View commit details
    Browse the repository at this point in the history
  172. bootstrap: update comments in bootstrap/node.js

    The comments in bootstrap/node.js are now out of date due to
    recent changes to the bootstrap process. Update them to reflect
    the current status.
    
    PR-URL: nodejs/node#44726
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3833f31 View commit details
    Browse the repository at this point in the history
  173. child_process: remove lookup of undefined property

    execSync() passes opts.args to checkExecSyncError(). There are
    two problems:
    
    1. opts.args appears to always be undefined.
    2. Even if it was defined, checkExecSyncError() would not use
       it since the command input is guaranteed to be defined.
    
    This commit updates the code to pass undefined instead.
    
    PR-URL: nodejs/node#44766
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    46e5907 View commit details
    Browse the repository at this point in the history
  174. fs: don't hard code name in validatePosition()

    The name of the position being validated by validatePosition()
    was not being used. Instead, the string 'position' was being
    used everywhere. It worked out because the only call sites were
    using the name 'position' as well.
    
    PR-URL: nodejs/node#44767
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b0ea3de View commit details
    Browse the repository at this point in the history
  175. test: add extra tests for basename with ext option

    PR-URL: nodejs/node#44772
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    connorjburton authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b3ce013 View commit details
    Browse the repository at this point in the history
  176. test: use async/await in test-debugger-sb-before-load

    PR-URL: nodejs/node#44697
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    hopeolaide authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7de6aa7 View commit details
    Browse the repository at this point in the history
  177. test: change promises to async/await in test-debugger-backtrace.js

    PR-URL: nodejs/node#44677
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    zhangjuliet authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4c40de2 View commit details
    Browse the repository at this point in the history
  178. test: migrated from Promise chains to Async/Await

    PR-URL: nodejs/node#44674
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    rathi2016 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    264518b View commit details
    Browse the repository at this point in the history
  179. src: remove ParseIP() in cares_wrap.cc

    This function is only used in one place where the result argument is
    never nullptr, so remove special handling of that case. Also, instead
    of returning magic values 0/4/6 and then later translating those into
    error/AF_INET/AF_INET6, use AF_INET/AF_INET6 directly. Lastly, inline
    the function, which is simpler overall.
    
    PR-URL: nodejs/node#44771
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    27c27c6 View commit details
    Browse the repository at this point in the history
  180. test: use async/await in test-debugger-auto-resume

    PR-URL: nodejs/node#44675
    Reviewed-By: Rich Trott <[email protected]>
    samyuktaprabhu authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4073de6 View commit details
    Browse the repository at this point in the history
  181. crypto: use EVP_PKEY_CTX_set_dsa_paramgen_q_bits when available

    This matches the formulation described in the documentation:
    https://www.openssl.org/docs/man3.0/man3/EVP_PKEY_CTX_set_dsa_paramgen_q_bits.html
    
    It is also, starting OpenSSL 3.0, more type-safe because the wrapper
    macros were finally converted to real functions. In OpenSSL 3.0, it is
    also no longer quite a wrapper over EVP_PKEY_CTX_ctrl, so using this
    name saves some extra OSSL_PARAM <-> EVP_PKEY_CTRL conversions.
    
    Alas, it was only backported to OpenSSL 1.1.1e, so I've left a temporary
    compatibility define until you all decide to drop pre-1.1.1e releases of
    1.1.1.
    
    PR-URL: nodejs/node#44561
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    davidben authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    24704b9 View commit details
    Browse the repository at this point in the history
  182. node-api: add deprecation code of uncaught exception

    Deprecation should reference a valid deprecation code.
    
    PR-URL: nodejs/node#44624
    Refs: nodejs/node#36510
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    80b38ca View commit details
    Browse the repository at this point in the history
  183. test: don't clobber RegExp.$_ on startup

    Some tests expect it to be empty so clear it again after running a
    regular expression against /proc/cpuinfo.
    
    It didn't cause test failures on any of the CI machines, to the best of
    my knowledge, because most of the time /proc/cpuinfo doesn't contain
    the string it was looking for.
    
    Fixes: nodejs/node#44840
    PR-URL: nodejs/node#44864
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    bnoordhuis authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4b9a2e3 View commit details
    Browse the repository at this point in the history
  184. test: update WPT runner

    PR-URL: nodejs/node#43455
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    63f9a51 View commit details
    Browse the repository at this point in the history
  185. crypto: fix webcrypto generateKey() AES key length validation error

    PR-URL: nodejs/node#44170
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0ea9df3 View commit details
    Browse the repository at this point in the history
  186. crypto: fix webcrypto operation errors to be OperationError

    PR-URL: nodejs/node#44171
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    99c78d6 View commit details
    Browse the repository at this point in the history
  187. crypto: fix webcrypto EC key namedCurve validation errors

    PR-URL: nodejs/node#44172
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5cc2b8a View commit details
    Browse the repository at this point in the history
  188. crypto: fix webcrypto deriveBits validations

    PR-URL: nodejs/node#44173
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9005210 View commit details
    Browse the repository at this point in the history
  189. crypto: allow zero-length secret KeyObject

    PR-URL: nodejs/node#44201
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a71a9ff View commit details
    Browse the repository at this point in the history
  190. crypto: allow zero-length IKM in HKDF and in webcrypto PBKDF2

    PR-URL: nodejs/node#44201
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    689a7f8 View commit details
    Browse the repository at this point in the history
  191. test,crypto: update WebCryptoAPI WPT

    PR-URL: nodejs/node#44223
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: LiviaMedeiros <[email protected]>
    Backport-PR-URL: nodejs/node#44872
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7e8e093 View commit details
    Browse the repository at this point in the history
  192. tools: increase timeout of running WPT

    We run all WPT from one subset in the same process using workers.
    As the number of the tests grow, it can take longer to run some of the
    subsets, but it's still overall faster than running them in different
    processes. This patch increases the timeout
    for WPT to prevent the test from failing because it takes longer
    to run (even though it would still complete at some point).
    
    Refs: nodejs/reliability#371
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    PR-URL: nodejs/node#44574
    Backport-PR-URL: nodejs/node#44872
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    bdc8758 View commit details
    Browse the repository at this point in the history
  193. 2022-10-12, Version 16.18.0 'Gallium' (LTS)

    Notable changes:
    
    assert: add `getCalls` and `reset` to callTracker (Moshe Atlow) nodejs/node#44191
    crypto: allow zero-length secret KeyObject (Filip Skokan) nodejs/node#44201
    crypto: allow zero-length IKM in HKDF and in webcrypto PBKDF2 (Filip Skokan) nodejs/node#44201
    doc: deprecate modp1, modp2, and modp5 groups (Tobias Nießen) nodejs/node#44588
    http: make idle http parser count configurable (theanarkh) nodejs/node#43974
    http: throw error on content-length mismatch (sidwebworks) nodejs/node#44378
    lib: add diagnostics channel for process and worker (theanarkh) nodejs/node#44045
    net,tls: pass a valid socket on `tlsClientError` (Daeyeon Jeong) nodejs/node#44021
    net: add local family (theanarkh) nodejs/node#43975
    report: expose report public native apis (Chengzhong Wu) nodejs/node#44255
    src: expose environment RequestInterrupt api (Chengzhong Wu) nodejs/node#44362
    stream: add `ReadableByteStream.tee()` (Daeyeon Jeong) nodejs/node#44505
    test_runner: add before/after/each hooks (Moshe Atlow) nodejs/node#43730
    util: add `maxArrayLength` option to Set and Map (Kohei Ueno) nodejs/node#43576
    
    PR-URL: nodejs/node#44886
    juanarbol authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    54a488d View commit details
    Browse the repository at this point in the history
  194. Working on v16.18.1

    juanarbol authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    63bd402 View commit details
    Browse the repository at this point in the history
  195. inspector: harden IP address validation again

    Use inet_pton() to parse IP addresses, which restricts IP addresses
    to a small number of well-defined formats. In particular, octal and
    hexadecimal number formats are not allowed, and neither are leading
    zeros. Also explicitly reject 0.0.0.0/8 and ::/128 as non-routable.
    
    Refs: https://hackerone.com/reports/1710652
    CVE-ID: CVE-2022-43548
    PR-URL: https://github.com/nodejs-private/node-private/pull/354
    Reviewed-by: Michael Dawson <[email protected]>
    Reviewed-by: Rafael Gonzaga <[email protected]>
    Reviewed-by: Rich Trott <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0e9ffa1 View commit details
    Browse the repository at this point in the history
  196. 2022-11-04, Version 16.18.1 'Gallium' (LTS)

    This is a security release.
    
    Notable changes:
    
    The following CVEs are fixed in this release:
    
    - CVE-2022-43548: DNS rebinding in --inspect via invalid octal IP
                      address (Medium)
    
    PR-URL: https://github.com/nodejs-private/node-private/pull/363
    BethGriggs authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    72c7417 View commit details
    Browse the repository at this point in the history
  197. Configuration menu
    Copy the full SHA
    3742a46 View commit details
    Browse the repository at this point in the history
  198. build: fix bad upstream merge

    The upstream merge of nodejs/node@e27e709d3c
    accidentally removed code related to systemtap and dtrace.
    
    Signed-off-by: Stephen Gallagher <[email protected]>
    PR-URL: nodejs/node#44642
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    sgallagher authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8a10c4a View commit details
    Browse the repository at this point in the history
  199. test: update list of known globals

    This is important to allow to run v16 doc tests on more recent versions.
    
    PR-URL: nodejs/node#45255
    Refs: https://github.com/nodejs/node/actions/runs/3356902660/jobs/5562322617
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6377763 View commit details
    Browse the repository at this point in the history
  200. deps: update corepack to 0.14.2

    PR-URL: nodejs/node#44775
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2d087e6 View commit details
    Browse the repository at this point in the history
  201. deps: update undici to 5.11.0

    PR-URL: nodejs/node#44929
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    4dbbf9d View commit details
    Browse the repository at this point in the history
  202. deps: update timezone

    PR-URL: nodejs/node#44950
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    821cfb4 View commit details
    Browse the repository at this point in the history
  203. build: remove redundant condition from common.gypi

    Both paths for the condition being removed result in the same
    value being assigned to `openssl_product`. This condition was
    also problematic as it was testing a variable in the same scope
    which gyp/gyp-next currently does not support.
    
    Refs: https://gyp.gsrc.io/docs/InputFormatReference.md#user_defined-variables
    PR-URL: nodejs/node#45076
    Refs: nodejs/node-gyp#2750
    Refs: nodejs/node#38633
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    richardlau authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fb713ad View commit details
    Browse the repository at this point in the history
  204. deps: upgrade openssl sources to OpenSSL_1_1_1s

    This updates all sources in deps/openssl/openssl by:
        $ git clone https://github.com/quictls/openssl
        $ cd openssl
        $ git checkout OpenSSL_1_1_1s+quic
        $ cd ../node/deps/openssl
        $ rm -rf openssl
        $ cp -R ../openssl openssl
        $ rm -rf openssl/.git* openssl/.travis*
        $ git add --all openssl
        $ git commit openssl
    
    PR-URL: nodejs/node#45274
    Refs: https://mta.openssl.org/pipermail/openssl-announce/2022-November/000242.html
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    ae5115a View commit details
    Browse the repository at this point in the history
  205. deps: update archs files for OpenSSL-1.1.1s

    After an OpenSSL source update, all the config files need to be
    regenerated and committed by:
       $ make -C deps/openssl/config
       $ git add deps/openssl/config/archs
       $ git add deps/openssl/openssl/include/crypto/bn_conf.h
       $ git add deps/openssl/openssl/include/crypto/dso_conf.h
       $ git add deps/openssl/openssl/include/openssl/opensslconf.h
       $ git commit
    
    PR-URL: nodejs/node#45274
    Refs: https://mta.openssl.org/pipermail/openssl-announce/2022-November/000242.html
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    RafaelGSS authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    aefcea4 View commit details
    Browse the repository at this point in the history
  206. Configuration menu
    Copy the full SHA
    fbcadfe View commit details
    Browse the repository at this point in the history
  207. tools: refactor avoid-prototype-pollution lint rule

    The lint rule was not catching all occurences of unsafe primordials use,
    and was too strict on some methods.
    
    PR-URL: nodejs/node#43476
    Backport-PR-URL: nodejs/node#44926
    Reviewed-By: Moshe Atlow <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    9b798ba View commit details
    Browse the repository at this point in the history
  208. tools: fix typo in avoid-prototype-pollution lint rule

    PR-URL: nodejs/node#44446
    Backport-PR-URL: nodejs/node#44926
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    848ff9f View commit details
    Browse the repository at this point in the history
  209. tools: make license-builder.sh comply with shellcheck 0.8.0

    Fixes for SC2312 added in shellcheck 0.8.0.
    
    PR-URL: nodejs/node#41258
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Trott authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    009d10b View commit details
    Browse the repository at this point in the history
  210. tools: have test-asan use ubuntu-20.04

    PR-URL: nodejs/node#45581
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    panva authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d5f2961 View commit details
    Browse the repository at this point in the history
  211. cli: add --watch

    PR-URL: nodejs/node#44366
    Backport-PR-URL: nodejs/node#44976
    Fixes: nodejs/node#40429
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8631c77 View commit details
    Browse the repository at this point in the history
  212. test: split watch mode inspector tests to sequential

    PR-URL: nodejs/node#44551
    Backport-PR-URL: nodejs/node#44976
    Reviewed-By: Kohei Ueno <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Nitzan Uziely <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e4d5211 View commit details
    Browse the repository at this point in the history
  213. test: deflake watch mode tests

    PR-URL: nodejs/node#44621
    Backport-PR-URL: nodejs/node#44976
    Fixes: nodejs/node#44655
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    f8bdc2e View commit details
    Browse the repository at this point in the history
  214. test: fix watch mode test flake

    PR-URL: nodejs/node#44739
    Backport-PR-URL: nodejs/node#44976
    Fixes: nodejs/node#44735
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fb703a7 View commit details
    Browse the repository at this point in the history
  215. deps: update undici to 5.12.0

    PR-URL: nodejs/node#45236
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    03c5a3a View commit details
    Browse the repository at this point in the history
  216. test: fix textdecoder test for small-icu builds

    The `Shift_JIS` encoding may not be available, e.g. when Node.js is
    configured with `--with-intl=small-icu`.
    
    PR-URL: nodejs/node#45225
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Steven R Loomis <[email protected]>
    richardlau authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5a69a0d View commit details
    Browse the repository at this point in the history
  217. deps: V8: cherry-pick b95354290941

    Original commit message:
    
        [extensions] Fix dcheck failures in getV8Statistics
    
        HeapObjectIterator creates a SafepointScope which requires the heap to
        allow garbage collection. This collides with the outer
        DisallowGarbageCollection scope. HeapObjectIterator already ensures
        there is no allocation during its lifetime, so there is no need to
        create an outer DisallowGarbageCollection scope.
    
        Code::source_position_table requires their kind not equals to
        CodeKind::BASELINE.
    
        This also exposes the statistics extension through flag
        --expose-statistics.
    
        Bug: v8:12657
        Change-Id: I1bf11cf499285a742dd99ec8c228ebc36152b597
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3496552
        Reviewed-by: Camillo Bruni <[email protected]>
        Reviewed-by: Marja Hölttä <[email protected]>
        Commit-Queue: Chengzhong Wu <[email protected]>
        Cr-Commit-Position: refs/heads/main@{#79425}
    
    Refs: v8/v8@b953542
    PR-URL: nodejs/node#44947
    Refs: v8/v8@bbd800c
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    09cff6c View commit details
    Browse the repository at this point in the history
  218. deps: V8: backport bbd800c6e359

    Original commit message:
    
        [heap] Fix incorrect from space committed size
    
        NewSpace page operations like RemovePage, PrependPage, and
        EnsureCurrentCapacity should account for committed page size.
    
        This may happen when a page was promoted from the new space to
        old space on mark-compact.
    
        Also, add DCHECKs on Commit and Uncommit to ensure the final
        committed page size is the same as the current state.
    
        Bug: v8:12657
        Change-Id: I7aebc1fd3f51f177ae2ef6420f757f0c573e126b
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3504766
        Reviewed-by: Dominik Inführ <[email protected]>
        Commit-Queue: Chengzhong Wu <[email protected]>
        Cr-Commit-Position: refs/heads/main@{#79426}
    
    Refs: v8/v8@bbd800c
    PR-URL: nodejs/node#44947
    Refs: v8/v8@b953542
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    90fca00 View commit details
    Browse the repository at this point in the history
  219. src: split property helpers from node::Environment

    PR-URL: nodejs/node#44056
    Backport-PR-URL: nodejs/node#44542
    Refs: nodejs/node#42528
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Feng Yu <[email protected]>
    legendecas authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a7c5bed View commit details
    Browse the repository at this point in the history
  220. deps: update corepack to 0.15.0

    PR-URL: nodejs/node#45235
    Backport-PR-URL: nodejs/node#45246
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    24dc964 View commit details
    Browse the repository at this point in the history
  221. deps: update corepack to 0.15.1

    PR-URL: nodejs/node#45331
    Backport-PR-URL: nodejs/node#45246
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    nodejs-github-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5a90899 View commit details
    Browse the repository at this point in the history
  222. deps: upgrade npm to 8.19.3

    PR-URL: nodejs/node#45322
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    npm-cli-bot authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    445d96f View commit details
    Browse the repository at this point in the history
  223. node-api: handle no support for external buffers

    Refs: electron/electron#35801
    Refs: nodejs/abi-stable-node#441
    
    Electron recently dropped support for external
    buffers. Provide a way for addon authors to:
    - hide the methods to create external buffers so they can
      avoid using them if they want the broadest compatibility.
    - call the methods that create external buffers at runtime
      to check if external buffers are supported and either
      use them or not based on the return code.
    
    Signed-off-by: Michael Dawson <[email protected]>
    
    PR-URL: nodejs/node#45181
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    mhdawson authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    cd41356 View commit details
    Browse the repository at this point in the history
  224. build: support Python 3.11

    PR-URL: nodejs/node#45191
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    12f105f View commit details
    Browse the repository at this point in the history
  225. tools: use Python 3.11 in GitHub Actions workflows

    PR-URL: nodejs/node#45191
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5d5d14c View commit details
    Browse the repository at this point in the history
  226. util: add default value option to parsearg

    Users can set a default
    value for every expected
    input argument
    
    PR-URL: nodejs/node#44631
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Eomm authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b128f30 View commit details
    Browse the repository at this point in the history
  227. doc: fix typo in parseArgs default value

    Refs: nodejs/node#44631
    PR-URL: nodejs/node#45083
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    tniessen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e95e6c8 View commit details
    Browse the repository at this point in the history
  228. dgram: add dgram send queue info

    PR-URL: nodejs/node#44149
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    theanarkh authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a3a152d View commit details
    Browse the repository at this point in the history
  229. build: add version info to timezone update PR

    Refs: nodejs/node#44950 (comment)
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: nodejs/node#45021
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8a2ab64 View commit details
    Browse the repository at this point in the history
  230. tools: update gr2m/create-or-update-pull-request-action

    Update gr2m/create-or-update-pull-request-action to version 1.9.1.
    
    PR-URL: nodejs/node#45022
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5c81857 View commit details
    Browse the repository at this point in the history
  231. tools: fix create-or-update-pull-request-action hash on GHA

    Refs: nodejs/node#45022 (comment)
    PR-URL: nodejs/node#45166
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    aduh95 authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    d987f54 View commit details
    Browse the repository at this point in the history
  232. test: add a test to ensure the correctness of timezone upgrades

    Currently, there's no way to know if a timezone upgrade PR is correct
    without building and testing the change locally. This change provides a
    solution for that.
    
    Tested in RaisinTen/node#4.
    
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: nodejs/node#45299
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    884b2ef View commit details
    Browse the repository at this point in the history
  233. tools: fix timezone update tool

    The spawnSync call was previously silently failing with this error:
    ```sh
    icupkg: unable to open input file "icudt*.dat"
    ```
    because spawnSync doesn't support globbing. This change replaces the
    spawnSync call with execSync because that supports globbing.
    
    I have tested this workflow with some minor modifications in my fork and
    I can confirm that it works as expected now. The bot opened this PR -
    RaisinTen/node#2 which updates
    deps/icu-small/source/data/in/icudt71l.dat.bz2.
    
    Fixes: nodejs/node#44865
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: nodejs/node#44870
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    f25536d View commit details
    Browse the repository at this point in the history
  234. tools: remove faulty early termination logic from update-timezone.mjs

    We do not build Node.js in the workflow so
    https://github.com/nodejs/node/blob/f4815fcd7691364d8139b44c1295dbc46f6ee4a8/tools/update-timezone.mjs#L18
    is actually the version of `tzdata` in the Node.js in the runner instead
    of what's in `main`.
    
    The script is pretty fast even when the versions differ and there is an
    update, so this optimization doesn't seem to be worth having given the
    problem.
    
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: nodejs/node#44870
    Fixes: nodejs/node#44865
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5954779 View commit details
    Browse the repository at this point in the history
  235. deps: update timezone to 2022f

    PR-URL: nodejs/node#45613
    Refs: nodejs/node#45289
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    richardlau authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    3cfa76d View commit details
    Browse the repository at this point in the history
  236. test_runner: support programmatically running --test

    PR-URL: nodejs/node#44241
    Backport-PR-URL: nodejs/node#44873
    Fixes: nodejs/node#44023
    Fixes: nodejs/node#43675
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a0df862 View commit details
    Browse the repository at this point in the history
  237. test_runner: fix duration_ms to be milliseconds

    PR-URL: nodejs/node#44450
    Backport-PR-URL: nodejs/node#44873
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b46081b View commit details
    Browse the repository at this point in the history
  238. test_runner: support using --inspect with --test

    PR-URL: nodejs/node#44520
    Backport-PR-URL: nodejs/node#44873
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    f77d7b7 View commit details
    Browse the repository at this point in the history
  239. test: fix test-runner-inspect

    PR-URL: nodejs/node#44620
    Backport-PR-URL: nodejs/node#44873
    Fixes: nodejs/node#44600
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2dcd0bf View commit details
    Browse the repository at this point in the history
  240. cluster: use inspector utils

    PR-URL: nodejs/node#44592
    Backport-PR-URL: nodejs/node#44873
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    2a9fa79 View commit details
    Browse the repository at this point in the history
  241. test: mark test-watch-mode* as flaky on all platforms

    This was confirmed flaky on those platforms:
    - Windows x64
    - Windows on Arm
    - Linux
    - Freebsd
    
    Tests randomly fail because of bad order in messages expected, which
    seems related to threads scheduling at execution.
    
    PR-URL: nodejs/node#45049
    Backport-PR-URL: nodejs/node#44873
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    pbo-linaro authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    7a6fc92 View commit details
    Browse the repository at this point in the history
  242. tools: update certdata.txt

    This is the certdata.txt[0] from NSS 3.85, released on 2022-11-10.
    
    This is the version of NSS that will ship in Firefox 108 on
    2022-12-13.
    
    [0] https://hg.mozilla.org/projects/nss/raw-file/NSS_3_85_RTM/lib/ckfw/builtins/certdata.txt
    
    PR-URL: nodejs/node#45490
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6c6fd91 View commit details
    Browse the repository at this point in the history
  243. crypto: update root certificates

    Update the list of root certificates in src/node_root_certs.h with
    tools/mk-ca-bundle.pl.
    
    Certificates added:
    - Autoridad de Certificacion Firmaprofesional CIF A62634068
    - Certainly Root E1
    - Certainly Root R1
    - D-TRUST BR Root CA 1 2020
    - D-TRUST EV Root CA 1 2020
    - DigiCert TLS ECC P384 Root G5
    - DigiCert TLS RSA4096 Root G5
    - E-Tugra Global Root CA ECC v3
    - E-Tugra Global Root CA RSA v3
    - HiPKI Root CA - G1
    - ISRG Root X2
    - Security Communication ECC RootCA1
    - Security Communication RootCA3
    - Telia Root CA v2
    - vTrus ECC Root CA
    - vTrus Root CA
    
    Certificates removed:
    - Cybertrust Global Root
    - DST Root CA X3
    - GlobalSign Root CA - R2
    - Hellenic Academic and Research Institutions RootCA 2011
    
    PR-URL: nodejs/node#45490
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Yagiz Nizipli <[email protected]>
    lpinca authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    dd2d8bf View commit details
    Browse the repository at this point in the history
  244. test: add test to validate changelogs for releases

    Add a new test to check that the changelog files have been correctly
    updated for releases.
    
    PR-URL: nodejs/node#45325
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    richardlau authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    b636f7d View commit details
    Browse the repository at this point in the history
  245. src: let http2 streams end after session close

    After the stream has been marked as closed by the nghttp2 stack, there
    might be still pending data to be sent: trailing headers is an example
    of this. In that case, avoid reentering the nghttp2 stack synchronously
    to allow the data to be written before actually closing the stream.
    
    Fixes: nodejs/node#42713
    PR-URL: nodejs/node#45153
    Backport-PR-URL: nodejs/node#45660
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    santigimeno authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    07bb1d8 View commit details
    Browse the repository at this point in the history
  246. src: disambiguate terms used to refer to builtins and addons

    The term "native module" dates back to some of the oldest code
    in the code base. Within the context of Node.js core it usually
    refers to modules that are native to Node.js (e.g. fs, http),
    but it can cause confusion for people who don't work on this
    part of the code base, as "native module" can also refer to
    native addons - which is even the case in some of the API
    docs and error messages.
    
    This patch tries to make the usage of these terms more consistent.
    Now within the context of Node.js core:
    
    - JavaScript scripts that are built-in to Node.js are now referred
      to as "built-in(s)". If they are available as modules,
      they can also be referred to as "built-in module(s)".
    - Dynamically-linked shared objects that are loaded into
      the Node.js processes are referred to as "addons".
    
    We will try to avoid using the term "native modules" because it could
    be ambiguous.
    
    Changes in this patch:
    
    File names:
    - node_native_module.h -> node_builtins.h,
    - node_native_module.cc -> node_builtins.cc
    
    C++ binding names:
    - `native_module` -> `builtins`
    
    `node::Environment`:
    - `native_modules_without_cache` -> `builtins_without_cache`
    - `native_modules_with_cache` -> `builtins_with_cache`
    - `native_modules_in_snapshot` -> `builtins_in_cache`
    - `native_module_require` -> `builtin_module_require`
    
    `node::EnvSerializeInfo`:
    - `native_modules` -> `builtins
    
    `node::native_module::NativeModuleLoader`:
    - `native_module` namespace -> `builtins` namespace
    - `NativeModuleLoader` -> `BuiltinLoader`
    - `NativeModuleRecordMap` -> `BuiltinSourceMap`
    - `NativeModuleCacheMap` -> `BuiltinCodeCacheMap`
    - `ModuleIds` -> `BuiltinIds`
    - `ModuleCategories` -> `BuiltinCategories`
    - `LoadBuiltinModuleSource` -> `LoadBuiltinSource`
    
    `loader.js`:
    - `NativeModule` -> `BuiltinModule` (the `NativeModule` name used in
      `process.moduleLoadList` is kept for compatibility)
    
    And other clarifications in the documentation and comments.
    
    PR-URL: nodejs/node#44135
    Backport-PR-URL: nodejs/node#45663
    Fixes: nodejs/node#44036
    Reviewed-By: Jacob Smith <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    joyeecheung authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    0f7e779 View commit details
    Browse the repository at this point in the history
  247. 2022-12-13, Version 16.19.0 'Gallium' (LTS)

    Notable changes:
    
    - OpenSSL 1.1.1s
    - Root certificates updated to NSS 3.85
    - Time zone update to 2022f
    - add dgram send queue info
    - upgrade npm to 8.19.3
    - add `--watch`
    - add default value option to parsearg
    
    PR-URL: nodejs/node#45791
    richardlau authored and guangwong committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    fe4ffed View commit details
    Browse the repository at this point in the history
  248. Configuration menu
    Copy the full SHA
    62352ee View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Configuration menu
    Copy the full SHA
    37626df View commit details
    Browse the repository at this point in the history
  2. src: update CPU affinity patch

    Shi Lei committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    f1ea7ac View commit details
    Browse the repository at this point in the history