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

v12.18.1 proposal #33811

Merged
merged 88 commits into from Jun 17, 2020
Merged

v12.18.1 proposal #33811

merged 88 commits into from Jun 17, 2020

Commits on Jun 6, 2020

  1. stream: make all streams error in a pipeline

    This changes makes all stream in a pipeline emit 'error' in
    case of an abnormal termination of the pipeline. If the last stream
    is currently being async iterated, this change will make the iteration
    reject accordingly.
    
    See: #30861
    Fixes: #28194
    
    PR-URL: #30869
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mcollina authored and codebytere committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    194789f View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2020

  1. src: use basename(argv0) for --trace-uncaught suggestion

    Refs: #32797 (comment)
    
    PR-URL: #32798
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    edf75e4 View commit details
    Browse the repository at this point in the history
  2. test: add tests for options.fs in fs streams

    PR-URL: #33185
    Reviewed-By: Adrian Estrada <edsadr@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    julianduque authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    1766514 View commit details
    Browse the repository at this point in the history
  3. doc: fix style and grammer in buffer.md

    PR-URL: #33194
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    seishun authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    e572cf9 View commit details
    Browse the repository at this point in the history
  4. doc: explicitly doc package.exports is breaking

    If package authors don't explicitly include all previously supported
    entry points introducing package.exports will be a Semver-Major change.
    
    Add a warning about this behavior and offer two potential solutions
    for module authors.
    
    Refs: then/is-promise#20
    
    PR-URL: #33074
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    MylesBorins authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    c6cf048 View commit details
    Browse the repository at this point in the history
  5. Revert "src: add aliased-buffer-overflow abort test"

    This reverts commit babeb58.
    
    PR-URL: #33196
    Refs: #31740
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    richardlau authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    b43fc64 View commit details
    Browse the repository at this point in the history
  6. Revert "src: add test/abort build tasks"

    This reverts commit e08ac09.
    
    PR-URL: #33196
    Refs: #31740
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    richardlau authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    c054834 View commit details
    Browse the repository at this point in the history
  7. doc: doc and test URLSearchParams discrepancy

    The WHATWG URL spec is not going to change this behavior so
    let's document it
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    Fixes: #33037
    
    PR-URL: #33236
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    jasnell authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    ea3a68f View commit details
    Browse the repository at this point in the history
  8. doc: update napi_async_init documentation

    Fixes: #33153
    
    Change documentation to make async_resource required
    as opposed to optional in napi-async_init.
    
    Changes over time mean this parameter is required for
    proper operation of async hooks (which are still experimental).
    This changes the documentation to document what
    callers should do. We are doing this only in the doc
    in order to avoid a breaking change in N-API. We could
    create a new version of the method for which the
    parametrer is enforced as mandatory but we should only
    do that once async hooks is no longer experimental. In
    that case we could deprecate (but not remove this version
    of the method).
    
    Signed-off-by: Michael Dawson <michael_dawson@ca.ibm.com>
    
    PR-URL: #33181
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    mhdawson authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    033bc96 View commit details
    Browse the repository at this point in the history
  9. stream: make from read one at a time

    Currently from will eagerly buffer up items
    which means that errors are also eagerly
    encountered and items which are buffer when
    an error occurs will be discarded, which is
    inconsistent with how generators work.
    
    Fixes: #29428
    
    PR-URL: #33201
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ronag authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    4294d92 View commit details
    Browse the repository at this point in the history
  10. n-api: add uint32 test for -1

    Adds a test to ensure that napi_get_value_uint32 returns 0xffffffff for
    -1.
    
    Re: #33117
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Gabriel Schulhof authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    82da74b View commit details
    Browse the repository at this point in the history
  11. doc: add warnings about transferring Buffers and ArrayBuffer

    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #33252
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Mathias Buus <mathiasbuus@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    jasnell authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    ac5cdd6 View commit details
    Browse the repository at this point in the history
  12. doc: remove AsyncWrap mentions from async_hooks.md

    AsyncWrap is a private API and should not be mentioned
    in the documentation.
    
    PR-URL: #33249
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    puzpuzpuz authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    2262962 View commit details
    Browse the repository at this point in the history
  13. doc: add troubleshooting guide for AsyncLocalStorage

    PR-URL: #33248
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    puzpuzpuz authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    ad7a890 View commit details
    Browse the repository at this point in the history
  14. wasi: prevent syscalls before start

    PR-URL: #33235
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    tniessen authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    33aacbe View commit details
    Browse the repository at this point in the history
  15. doc: specify unit of time passed to fs.utimes

    PR-URL: #33230
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    SimenB authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    4a58420 View commit details
    Browse the repository at this point in the history
  16. doc: add Uint8Array to end and write

    PR-URL: #33217
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    rexagod authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    8b44be9 View commit details
    Browse the repository at this point in the history
  17. doc: update Buffer(size) documentation

    It returns zero-filled memory since v8.0.0.
    
    PR-URL: #33198
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    seishun authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    9038620 View commit details
    Browse the repository at this point in the history
  18. doc: removed unnecessary util imports from vm examples

    PR-URL: #33179
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    WalasPrime authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    0cee4c3 View commit details
    Browse the repository at this point in the history
  19. doc: mention python3-distutils dependency in BUILDING.md

    Ran into #30189, solved by this comment:
    #30189 (comment)
    
    Refs: #30189
    PR-URL: #33174
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Christian Clauss <cclauss@me.com>
    osher authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    59619b0 View commit details
    Browse the repository at this point in the history
  20. lib: fix grammar in internal/bootstrap/loaders.js

    PR-URL: #33211
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    szTheory authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    9017bce View commit details
    Browse the repository at this point in the history
  21. test: skip some console tests on dumb terminal

    Add capabilities to common test module to detect and skip tests
    on dumb terminals.
    
    In some of our build environments, like s390x, the terminal
    is a dumb terminal meaning it has very rudimentary capabilities.
    These in turn prevent some of the tests from completing with errors
    as below.
    
        not ok 1777 parallel/test-readline-tab-complete
          ---
          duration_ms: 0.365
          severity: fail
          exitcode: 1
          stack: |-
            assert.js:103
              throw new AssertionError(obj);
              ^
    
            AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
    
            '\t' !== ''
    
                at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:63:14
                at Array.forEach (<anonymous>)
                at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:18:17
                at Array.forEach (<anonymous>)
                at Object.<anonymous> (/home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:17:3)
                at Module._compile (internal/modules/cjs/loader.js:1176:30)
                at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
                at Module.load (internal/modules/cjs/loader.js:1040:32)
                at Function.Module._load (internal/modules/cjs/loader.js:929:14)
                at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
              generatedMessage: true,
              code: 'ERR_ASSERTION',
              actual: '\t',
              expected: '',
              operator: 'strictEqual'
            }
          ...
    
    PR-URL: #33165
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    AdamMajer authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    139eb6b View commit details
    Browse the repository at this point in the history
  22. test: rename test-lookupService-promises

    PR-URL: #33100
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    rickyes authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    0177cbf View commit details
    Browse the repository at this point in the history
  23. doc: correct description of decipher.setAuthTag in crypto.md

    Calling `decipher.setAuthTag` after `decipher.update` will result in
    an error like `Unsupported state or unable to authenticate data`.
    The example code in
    [CCM mode](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_ccm_mode)
    is correct, but to demonstrate the mistake in the documentation you
    can take the same example and move the `setAuthTag` call to in between
    `update` and `final` you will see the error.
    jbuhacoff authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    0c7cf24 View commit details
    Browse the repository at this point in the history
  24. src: clean up large pages code

    * Initialize structure members.
    * Factor out common `Debug()` prefix.
    * Remove unused `text_region` field.
    
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    PR-URL: #33255
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Gabriel Schulhof authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    ed62d43 View commit details
    Browse the repository at this point in the history
  25. wasi: fix poll_oneoff memory interface

    The WASM memory interfacing logic was wrong (particularly around
    the size of __wasi_subscription_t). This commit fixes the logic.
    
    PR-URL: #33250
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    cjihrig authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    22f2c2c View commit details
    Browse the repository at this point in the history
  26. doc: add warning for socket.connect reuse

    PR-URL: #33204
    Refs: #25969
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    ronag authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    9dde1db View commit details
    Browse the repository at this point in the history
  27. module: better error for named exports from cjs

    We do not support importing named exports from a CJS module.
    This change decorates the error message for missing named exports in
    the case where the module being imported is expected to be CJS by the
    ESM loader.
    
    Signed-off-by: Myles Borins <myles.borins@gmail.com>
    
    PR-URL: #33256
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    MylesBorins authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    77caf92 View commit details
    Browse the repository at this point in the history
  28. src: split out callback queue implementation from Environment

    This isn’t conceptually tied to anything Node.js-specific at all.
    
    PR-URL: #33272
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    a5e8c5c View commit details
    Browse the repository at this point in the history
  29. lib: refactored scheduling policy assignment

    In previous implementation it was clubbed into declaration of scheduling
    policies and fetching the schedulingPolicy. Now they are separate
    variables, so that in future if one want to add new scheduling policy.
    It is much simpler and not obsfucated.
    
    PR-URL: #32663
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    yashLadha authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    6881410 View commit details
    Browse the repository at this point in the history
  30. meta: add issue template for API reference docs

    Prior to this commit, there was no GitHub issue template guiding
    users to open issues about gaps in the API reference docs.
    
    Refs: #31123
    PR-URL: #32944
    Fixes: nodejs/nodejs.org#2866
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Derek Lewis authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    d64dbfa View commit details
    Browse the repository at this point in the history
  31. src: fix invalid windowBits=8 gzip segfault

    `{ windowBits: 8 }` is legal for deflate streams but not gzip streams.
    Fix a nullptr dereference when formatting the error message.
    
    Bug introduced in commit c34eae5 ("zlib: refactor zlib internals")
    from September 2018.
    
    PR-URL: #33045
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    bnoordhuis authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    642f813 View commit details
    Browse the repository at this point in the history
  32. zlib: reject windowBits=8 when mode=GZIP

    It's also handled in C++ land now, per the previous commit, but
    intercepting it in JS land makes for prettier error messages.
    
    PR-URL: #33045
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    bnoordhuis authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    631e433 View commit details
    Browse the repository at this point in the history
  33. http2: add bytesWritten test for Http2Stream

    note that this is for the `Http2Server` class. I'll soon be
    adding one for `Http2SecureServer` as well.
    
    Refs: #29829
    
    PR-URL: #33162
    Reviewed-By: James M Snell <jasnell@gmail.com>
    rexagod authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    66dbaff View commit details
    Browse the repository at this point in the history
  34. buffer: improve copy() performance

    There is no need to create a slice when sourceEnd is out of bounds.
    
    PR-URL: #33214
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    seishun authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    964adfa View commit details
    Browse the repository at this point in the history
  35. deps: upgrade npm to 6.14.5

    PR-URL: #33239
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    ruyadorno authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    4d6f56a View commit details
    Browse the repository at this point in the history
  36. perf_hooks: fix error message for invalid entryTypes

    Will now print a more meaningful value instead of always [object Object]
    
    PR-URL: #33285
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    targos authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    68551d2 View commit details
    Browse the repository at this point in the history
  37. test: add hr-time Web platform tests

    Refs: #32790
    
    PR-URL: #33287
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    targos authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    cd92052 View commit details
    Browse the repository at this point in the history
  38. tools: add eslint rule to only pass through 'test' to debuglog

    This makes sure all usages of `util.debuglog()` must contain the
    string 'test' as argument.
    
    PR-URL: #32161
    Refs: #32078
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    5d5e66c View commit details
    Browse the repository at this point in the history
  39. tools: remove obsolete no-restricted-syntax eslint rules

    These rules only apply for the test folder and will already be
    checked for.
    
    PR-URL: #32161
    Refs: #32078
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    cdd7d3a View commit details
    Browse the repository at this point in the history
  40. src: remove unnecessary Isolate::GetCurrent() calls

    These calls are unnecessary in Release mode but would still have
    been included, so move them to the `DebugSealHandleScope` constructor.
    
    PR-URL: #33298
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    b630079 View commit details
    Browse the repository at this point in the history
  41. lib: fix typo in timers insert function comment

    PR-URL: #33301
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    59769c4 View commit details
    Browse the repository at this point in the history
  42. tools: update ESLint to 7.0.0

    Update ESLint to 7.0.0
    
    PR-URL: #33316
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    2645b1c View commit details
    Browse the repository at this point in the history
  43. test: fix test-net-throttle

    Repeat writes until data is queued in memory, rather than assuming that
    it will happen by a certain point.
    
    Fixes: #33135
    
    PR-URL: #33329
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Trott authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    c459832 View commit details
    Browse the repository at this point in the history
  44. src: fix typo in comment in async_wrap.cc

    PR-URL: #33350
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    f27ae6e View commit details
    Browse the repository at this point in the history
  45. doc: fix typo in n-api.md

    This commit fixes what I think is a typo, even though the section in
    question does talk about a environment (env).
    
    PR-URL: #33319
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    30c9cb5 View commit details
    Browse the repository at this point in the history
  46. doc: add note about clientError writable handling

    PR-URL: #33308
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ShogunPanda authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    318fcf8 View commit details
    Browse the repository at this point in the history
  47. src: use MaybeLocal.ToLocal instead of IsEmpty

    This commit suggest using MaybeLocal.ToLocal and passing in the
    Local<Function> fn.
    
    The motivation for doing this is that the following
    MaybeLocal.ToLocalChecked call can then be avoided.
    
    PR-URL: #33312
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    548672d View commit details
    Browse the repository at this point in the history
  48. src: delete unused variables to resolve compile time print warning

    PR-URL: #33358
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    rickyes authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    82c43d1 View commit details
    Browse the repository at this point in the history
  49. src: remove unused using declarations in node.cc

    PR-URL: #33261
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    fe780a5 View commit details
    Browse the repository at this point in the history
  50. src: add primordials to arguments comment

    This commit adds the primordials argument to the comment of arguments
    passed to bootstrap/node.js.
    
    PR-URL: #33318
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    danbev authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    1f159e4 View commit details
    Browse the repository at this point in the history
  51. test: update WPT interfaces and hr-time

    This commit updates the interfaces to
    https://github.com/web-platform-tests/wpt/tree/8ada332aea/interfaces
    and updates the hr-time test status:
    
    - `window-worker-timeOrigin.window.js` should be skipped because we
      don't implement `Blob`
    - `idlharness.any.js` should be skipped since the IDL parser needs
      to be updated, but the parser update would also result in
      an update of the test harness which in turn requires updates of
      other tests. We need to fix the URL implementation first,
      and then update the harness and all the tests.
    
    PR-URL: #33297
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    joyeecheung authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    fa16313 View commit details
    Browse the repository at this point in the history
  52. test: refactor WPTRunner

    - Print test results as soon as they are available, instead of
      until after all the tests are complete. This helps us printing
      tests whose completion callback is not called because of
      failures.
    - Run the scripts specified by `// META: script=` one by one
      instead of concatenating them first for better error stack
      traces.
    - Print a status summary when the test process is about to exit.
      This can be used as reference for updating the status file.
    
    For example the stderr output of
    `out/Release/node test/wpt/test-console.js` would be:
    
    ```
    {
      'idlharness.any.js': {
        fail: {
          expected: [
            'assert_equals: operation has wrong .length expected 1 but got 0'
          ]
        }
      }
    }
    Ran 4/4 tests, 0 skipped, 3 passed, 1 expected failures, 0 unexpected failures
    ```
    
    PR-URL: #33297
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    joyeecheung authored and codebytere committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    33a7878 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2020

  1. tls: fix --tls-keylog option

    There's a typo that causes only the first socket to be logged
    (i.e. when the warning is emitted).
    
    In addition, server sockets aren't logged because `keylog` events
    are not emitted on tls.Server, not the socket. This behaviour is
    counterintuitive and has caused more bugs in the past, so make all
    sockets (server or client) emit 'keylog'. tls.Server will just
    re-emit these events.
    
    Refs: #30055
    PR-URL: #33366
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    mildsunrise authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    7315c22 View commit details
    Browse the repository at this point in the history
  2. doc: add examples for implementing ESM

    Fixes: #28060
    
    PR-URL: #33168
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    rosaxxny authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    3d8ba29 View commit details
    Browse the repository at this point in the history
  3. test: fix test-dns-idna2008

    The DNS server will sometimes return an IPv6 address (as seen in nightly
    CI from time to time). Use `family` option to force IPv4.
    
    PR-URL: #33367
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    9f594be View commit details
    Browse the repository at this point in the history
  4. doc: enhance guides by fixing and making grammar more consistent

    PR-URL: #33152
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    ChrisAHolland authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    d2897a2 View commit details
    Browse the repository at this point in the history
  5. fs: clean up Dir.read() uv_fs_t data before calling into JS

    A call into JS can schedule another operation on the same `uv_dir_t`.
    In particular, when the handle is closed from the callback for a
    directory read operation, there previously was a race condition window:
    
    1. A `dir.read()` operation is submitted to libuv
    2. The read operation is finished by libuv, calling `AfterDirRead()`
    3. We call into JS
    4. JS calls dir.close()
    5. libuv posts the close request to a thread in the pool
    6. The close request runs, destroying the directory handle
    7. `AfterDirRead()` is being exited.
    
    Exiting the `FSReqAfterScope` in step 7 attempts to destroy the original
    uv_fs_t` from step 1, which now points to an `uv_dir_t` that has
    already been destroyed in step 5.
    
    By forcing the `FSReqAfterScope` to clean up before we call into JS,
    we can be sure that no other operations on the same `uv_dir_t` are
    submitted concurrently.
    
    This addresses issues observed when running with ASAN/valgrind.
    
    PR-URL: #33274
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    aa4611c View commit details
    Browse the repository at this point in the history
  6. fs: forbid concurrent operations on Dir handle

    libuv does not expect concurrent operations on `uv_dir_t` instances,
    and will gladly create memory leaks, corrupt data, or crash the
    process.
    
    This patch forbids that, and:
    
    - Makes sure that concurrent async operations are run sequentially
    - Throws an exception if sync operations are attempted during an
      async operation
    
    The assumption here is that a thrown exception is preferable to
    a potential hard crash.
    
    This fully fixes flakiness from `parallel/test-fs-opendir` when
    run under ASAN.
    
    PR-URL: #33274
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    c129e88 View commit details
    Browse the repository at this point in the history
  7. worker: call CancelTerminateExecution() before exiting Locker

    As the comment indicates, this fixes a DCHECK failure, although I don’t
    quite understand why it is happening in the first place.
    
    PR-URL: #33347
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    8a92698 View commit details
    Browse the repository at this point in the history
  8. async_hooks: clear async_id_stack for terminations in more places

    Termination exceptions are similar to uncaught exceptions in that they
    should clear the async id stack, because no ongoing async callbacks
    will be brought to completion when execution terminates.
    
    Previously, there was a check that made sure that that happened when
    the termination occurred during the callback itself, but no such check
    was in place for the case that the termination occurred during
    microtasks started by them. This commit adds such a check, both for
    microtasks and the `nextTick` queue. The latter addition doesn’t fix
    a crash, but still makes sense conceptually.
    
    The condition here is also flipped from applying only on Worker threads
    to also applying on the main thread, and setting the `failed_` flag
    rather than reading it. The former makes sense because the public C++
    `Stop(env)` API can have the same effect as worker thread termination,
    but on the main thread rather than a Worker thread.
    
    PR-URL: #33347
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    ba93c8d View commit details
    Browse the repository at this point in the history
  9. test: regression tests for async_hooks + Promise + Worker interaction

    Add regression tests for the case in which an async_hook is enabled
    inside a Worker thread and `process.exit()` is called during the
    async part of an async function.
    
    This commit includes multiple tests that seem like they should all
    crash in a similar way, but interestingly don’t. In particular, it’s
    surprising that the presence of a statement after `process.exit()`
    in a function has an effect on the kind of crash that’s being
    exhibited (V8 DCHECK vs. assertion in our own code) and the
    circumstances under which it crashes (e.g. the -1 and -2 tests
    can be “fixed” by reverting 13c5a16, although they
    should have the same behavior as the -3 and -4 tests).
    
    PR-URL: #33347
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    5da7d52 View commit details
    Browse the repository at this point in the history
  10. src: replace to CHECK_NOT_NULL in node_crypto

    PR-URL: #33383
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    himself65 authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    a0bc2e3 View commit details
    Browse the repository at this point in the history
  11. module: add specific error for dir import

    PR-URL: #33220
    Fixes: #33219
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    aduh95 authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    4f6e4ae View commit details
    Browse the repository at this point in the history
  12. esm: improve commonjs hint on module not found

    Adds hint when module specifier is a file URL.
    
    PR-URL: #33220
    Fixes: #33219
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    aduh95 authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    a029dca View commit details
    Browse the repository at this point in the history
  13. src: add #include <string> in json_utils.h

    When precompile headers are disabled this file would cause compilation
    errors due to #include <string> not included.
    
    PR-URL: #33332
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    zcbenz authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    29d24db View commit details
    Browse the repository at this point in the history
  14. worker: fix crash when .unref() is called during exit

    To be more precise, fix a crash when `worker.unref()` is called
    from a message on the Worker that is not emitted before the Worker
    thread has stopped.
    
    PR-URL: #33394
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    b4d9034 View commit details
    Browse the repository at this point in the history
  15. src: distinguish refed/unrefed threadsafe Immediates

    In some situations, it can be useful to use threadsafe callbacks
    on an `Environment` to perform cleanup operations that should run
    even when the process would otherwise be ending.
    
    PR-URL: #33320
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    b924910 View commit details
    Browse the repository at this point in the history
  16. doc: fix extension in esm example

    PR-URL: #33408
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    devsnek authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    a9ed287 View commit details
    Browse the repository at this point in the history
  17. tools: update dependencies for markdown linting

    PR-URL: #33412
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Trott authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    e240d56 View commit details
    Browse the repository at this point in the history
  18. errors: skip fatal error highlighting on windows

    Some consoles do not convert ANSI escape sequences to colors,
    rather display them directly to the stdout. On those consoles,
    libuv emulates colors by intercepting stdout stream and calling
    corresponding Windows API functions for setting console colors.
    However, fatal error are handled differently and we cannot easily
    highlight them.
    
    PR-URL: #33132
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Hakerh400 authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    5d80576 View commit details
    Browse the repository at this point in the history
  19. src: add promise_resolve to SetupHooks comment

    This commit adds promise_resolve to the list of callbacks mentioned in
    the comment. It also fixes a minor typo, every -> ever.
    
    PR-URL: #33365
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    9883ba6 View commit details
    Browse the repository at this point in the history
  20. src: remove unused misc variable

    This commit removes the unused 'misc' variable from one of the
    NodeMainInstance constructors.
    
    Another option could be to add a default argument to
    SetIsolateMiscHandlers but I'd like to hear what others think about that
    first.
    
    PR-URL: #33417
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    e668376 View commit details
    Browse the repository at this point in the history
  21. src: remove unused IsolateSettings variable

    PR-URL: #33417
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    548db2e View commit details
    Browse the repository at this point in the history
  22. doc: clarify about the Node.js-only extensions in perf_hooks

    - Add clarifications for Node.js-only extensions
    - Explain the Web Performance APIs implemented in Node.js and
      clarify that perf_hooks also include other non-Web APIs.
    - Prefix exposed interfaces with `perf_hooks.` to distinguish
      them from internal classes.
    
    PR-URL: #33199
    Refs: #28635
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    joyeecheung authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    a48aeb3 View commit details
    Browse the repository at this point in the history
  23. deps: upgrade to libuv 1.38.0

    Notable changes:
    
    - `uv_library_shutdown()` has been added.
    - `uv_udp_init_ex()` now accepts `UV_UDP_RECVMMSG`, although it
      is a no-op.
    - Obsolete `MAX_PATH` restrictions have been removed on Windows,
      and Windows is now long path aware.
    - Windows environment variables longer than 32,767 characters are
      now supported.
    - Linux `cpu_times` are now reported as milliseconds to match
      other platforms.
    - A memory leak resulting from `uv_loop_init()` failures has
      been fixed.
    
    PR-URL: #33446
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    402aa1b View commit details
    Browse the repository at this point in the history
  24. doc: add comment about highWaterMark limit

    Add a comment regarding memory limits and setting highWaterMark
    
    PR-URL: #33432
    Reviewd-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    benjamingr authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    4749156 View commit details
    Browse the repository at this point in the history
  25. doc: update function description for decipher.setAAD

    According to the
    [NodeJS CCM example](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_ccm_mode],
    when decrypting the `plaintextLength` parameter actually refers to the
    ciphertext length, not the plaintext length:
    
    ```
    decipher.setAAD(aad, {
      plaintextLength: ciphertext.length
    });
    ```
    
    The same can be seen in the
    [OpenSSL docs](https://wiki.openssl.org/index.php/EVP_Authenticated_Encryption_and_Decryption)
    where a call to `EVP_DecryptUpdate` passes the ciphertext length:
    
    ```
    /* Provide the total ciphertext length */
        if(1 != EVP_DecryptUpdate(ctx, NULL, &len, NULL, ciphertext_len))
            handleErrors();
    ```
    
    This parameter probably should have been called `inputLength` or
    `bufferLength` instead of `plaintextLength`, so that it makes sense
    both when encrypting and decrypting, but at least we can correct the
    sentence in the documentation for now to refer to the correct value.
    
    PR-URL: #33095
    Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    jbuhacoff authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    0c9b826 View commit details
    Browse the repository at this point in the history
  26. src: reduce duplication in RegisterHandleCleanups

    This commit suggest using a lambda for the RegisterHandlerCleanup calls
    in RegisterHandleCleanups.
    
    The motivation is to reduce some duplication and to make it a little
    easier to read as all of the calls pass in the same arguments, apart
    from casting the uv handle.
    
    PR-URL: #33421
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    danbev authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    c797c7c View commit details
    Browse the repository at this point in the history
  27. worker: fix race condition in node_messaging.cc

    `AddToIncomingQueue()` relies on `owner_` only being modified with
    `mutex_` being locked, but in these two places, that didn’t happen.
    
    Modify them to use `Detach()` instead, which has the same effect
    as setting `owner_ = nullptr` here, but does it with proper locking.
    
    This race condition probably only shows up in practice when Node.js
    is compiled in debug mode, because the compiler eliminates the
    duplicate load in `AddToIncomingQueue()` when compiling with
    optimizations enabled.
    
    PR-URL: #33429
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    5eed20b View commit details
    Browse the repository at this point in the history
  28. http2: comment on usage of Object.create(null)

    Refs: #29829
    
    PR-URL: #33183
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    rexagod authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    fa4a37c View commit details
    Browse the repository at this point in the history
  29. doc: fix typos in handle scope descriptions

    PR-URL: #33267
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    tniessen authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    7d8a226 View commit details
    Browse the repository at this point in the history
  30. doc: add fs.open() multiple constants example

    PR-URL: #33281
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Ethan-Arrowood authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    9572701 View commit details
    Browse the repository at this point in the history
  31. doc: document module.path

    Refs: #26970
    Fixes: #33270
    
    PR-URL: #33323
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    aduh95 authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    98a7026 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    e67df04 View commit details
    Browse the repository at this point in the history
  33. deps: update to uvwasi 0.0.9

    Notable changes:
    
    - A `DEBUG()` macro and `UVWASI_DEBUG_LOG` build option have been
      added to improve debugging.
    - Path length restrictions have been removed across the codebase.
    - Initial support for `poll_oneoff()` has been added on all
      platforms. The implementation is based on `uv_poll_t`'s.
    - A new `uvwasi_size_t` has been introduced across the WASI system
      call API. This provides consistent 32-bit `size_t`'s.
    - The cmake test targets are now only generated if uvwasi is the
      root project to avoid conflicts with targets from embedders.
    - `uv.h` has been removed from the public headers.
    - A serialization/deserialization API has been added to simplify
      the process of working with WASM memory. This also hides many
      WASI <--> WASM interfacing implementation details from
      embedders.
    - A memory corruption bug on Windows related to path resolution
      has been fixed.
    
    PR-URL: #33445
    Fixes: #33403
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    cjihrig authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    5c7176b View commit details
    Browse the repository at this point in the history
  34. deps: V8: cherry-pick 548f6c81d424

    Original commit message:
    
        [runtime] Don't track transitions for certainly detached maps
    
        Previously such maps were marked as prototype, but that has bad
        performance / memory characteristics if objects are used as
        dictionaries.
    
        Bug: b:148346655, v8:10339
        Change-Id: I287c5664c8b7799a084669aaaffe3affcf73e95f
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2179322
        Reviewed-by: Igor Sheludko <ishell@chromium.org>
        Commit-Queue: Toon Verwaest <verwaest@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#67537}
    
    Refs: v8/v8@548f6c8
    
    PR-URL: #33484
    Backport-PR-URL: #33553
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    dominykas authored and codebytere committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    af95bd7 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2020

  1. 2020-06-17, Version 12.18.1 'Erbium' (LTS)

    Notable changes:
    
    deps:
      * V8: cherry-pick 548f6c81d424 (Dominykas Blyžė) [#33484](#33484)
      * update to uvwasi 0.0.9 (Colin Ihrig) [#33445](#33445)
      * upgrade to libuv 1.38.0 (Colin Ihrig) [#33446](#33446)
      * upgrade npm to 6.14.5 (Ruy Adorno) [#33239](#33239)
    
    PR-URL: #33811
    codebytere committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    6665f73 View commit details
    Browse the repository at this point in the history