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

v14.3.0 proposal #33452

Merged
merged 104 commits into from May 19, 2020
Merged

v14.3.0 proposal #33452

merged 104 commits into from May 19, 2020

Commits on May 7, 2020

  1. 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 May 7, 2020
    Copy the full SHA
    676ef95 View commit details
    Browse the repository at this point in the history
  2. 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 May 7, 2020
    Copy the full SHA
    c5a38fe View commit details
    Browse the repository at this point in the history
  3. http: fixes memory retention issue with FreeList and HTTPParser

    Fixes: #29394
    Refs: #33167 (comment)
    
    PR-URL: #33190
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    leidegre authored and codebytere committed May 7, 2020
    Copy the full SHA
    cc02c73 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 May 7, 2020
    Copy the full SHA
    07372e9 View commit details
    Browse the repository at this point in the history
  5. src: retrieve binding data from the context

    Instead of passing them through the data bound to function
    templates, store references to them in a list embedded inside
    the context.
    This makes the function templates more context-independent,
    and makes it possible to embed binding data in non-main contexts.
    
    Co-authored-by: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #33139
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    joyeecheung authored and codebytere committed May 7, 2020
    Copy the full SHA
    a292630 View commit details
    Browse the repository at this point in the history
  6. 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 May 7, 2020
    Copy the full SHA
    a56b600 View commit details
    Browse the repository at this point in the history
  7. 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 May 7, 2020
    Copy the full SHA
    5ff3192 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    cf47698 View commit details
    Browse the repository at this point in the history
  9. 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 May 7, 2020
    Copy the full SHA
    25443fa View commit details
    Browse the repository at this point in the history
  10. 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 May 7, 2020
    Copy the full SHA
    cf88ed8 View commit details
    Browse the repository at this point in the history
  11. 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 May 7, 2020
    Copy the full SHA
    b2fb01a View commit details
    Browse the repository at this point in the history
  12. 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 May 7, 2020
    Copy the full SHA
    4ae6130 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2020

  1. 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 May 11, 2020
    Copy the full SHA
    0572943 View commit details
    Browse the repository at this point in the history
  2. 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 May 11, 2020
    Copy the full SHA
    dab5c38 View commit details
    Browse the repository at this point in the history
  3. 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 May 11, 2020
    Copy the full SHA
    6ffec50 View commit details
    Browse the repository at this point in the history
  4. 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 May 11, 2020
    Copy the full SHA
    4465d23 View commit details
    Browse the repository at this point in the history
  5. 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 May 11, 2020
    Copy the full SHA
    2c49dd3 View commit details
    Browse the repository at this point in the history
  6. doc: fix md issue in src/README.md

    PR-URL: #33224
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    juanarbol authored and codebytere committed May 11, 2020
    Copy the full SHA
    c6a8cd0 View commit details
    Browse the repository at this point in the history
  7. 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 May 11, 2020
    Copy the full SHA
    5b42d81 View commit details
    Browse the repository at this point in the history
  8. module: lazy load 'getOptionValue' in initializeLoader

    This enables loading this module during early bootstrapping.
    
    PR-URL: #33212
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    himself65 authored and codebytere committed May 11, 2020
    Copy the full SHA
    27b814c View commit details
    Browse the repository at this point in the history
  9. 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 May 11, 2020
    Copy the full SHA
    e20fe53 View commit details
    Browse the repository at this point in the history
  10. 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 May 11, 2020
    Copy the full SHA
    b5dcfbf View commit details
    Browse the repository at this point in the history
  11. 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 May 11, 2020
    Copy the full SHA
    84974d3 View commit details
    Browse the repository at this point in the history
  12. 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 May 11, 2020
    Copy the full SHA
    6bca487 View commit details
    Browse the repository at this point in the history
  13. 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 May 11, 2020
    Copy the full SHA
    302408e View commit details
    Browse the repository at this point in the history
  14. test: rename test-lookupService-promises

    PR-URL: #33100
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    rickyes authored and codebytere committed May 11, 2020
    Copy the full SHA
    6f54c2b View commit details
    Browse the repository at this point in the history
  15. 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 May 11, 2020
    Copy the full SHA
    a9e4fdb View commit details
    Browse the repository at this point in the history
  16. 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 May 11, 2020
    Copy the full SHA
    ed41494 View commit details
    Browse the repository at this point in the history
  17. 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 May 11, 2020
    Copy the full SHA
    6a26eee View commit details
    Browse the repository at this point in the history
  18. 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 May 11, 2020
    Copy the full SHA
    0cbee57 View commit details
    Browse the repository at this point in the history
  19. 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 May 11, 2020
    Copy the full SHA
    ad86807 View commit details
    Browse the repository at this point in the history
  20. 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 May 11, 2020
    Copy the full SHA
    548cedd View commit details
    Browse the repository at this point in the history
  21. 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 May 11, 2020
    Copy the full SHA
    94d0a08 View commit details
    Browse the repository at this point in the history
  22. 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 May 11, 2020
    Copy the full SHA
    0a78925 View commit details
    Browse the repository at this point in the history
  23. 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 May 11, 2020
    Copy the full SHA
    ef25033 View commit details
    Browse the repository at this point in the history
  24. 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 May 11, 2020
    Copy the full SHA
    736ca65 View commit details
    Browse the repository at this point in the history
  25. http: set IncomingMessage.destroyed

    IncomingMessage is a Readable stream and should properly
    set the destroyed property.
    
    PR-URL: #33131
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    ronag authored and codebytere committed May 11, 2020
    Copy the full SHA
    b634d4b View commit details
    Browse the repository at this point in the history
  26. 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 May 11, 2020
    Copy the full SHA
    41c5524 View commit details
    Browse the repository at this point in the history
  27. tls: reset secureConnecting on client socket

    secureConnecting is never set to false on client TLS sockets.
    So if Http2Session constructor (in lib/internal/http2/core.js) is
    called after secureConnect is emitted, then it will wrongly wait
    for a secureConnect event.
    
    This fix sets secureConnecting to false when a client TLS socket
    has connected.
    
    PR-URL: #33209
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    davedoesdev authored and codebytere committed May 11, 2020
    Copy the full SHA
    eedc131 View commit details
    Browse the repository at this point in the history
  28. 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 May 11, 2020
    Copy the full SHA
    cae2051 View commit details
    Browse the repository at this point in the history
  29. 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 May 11, 2020
    Copy the full SHA
    ba66b21 View commit details
    Browse the repository at this point in the history
  30. 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 May 11, 2020
    Copy the full SHA
    398bdf4 View commit details
    Browse the repository at this point in the history
  31. 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 May 11, 2020
    Copy the full SHA
    1d2c81f View commit details
    Browse the repository at this point in the history
  32. 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 May 11, 2020
    Copy the full SHA
    804982c View commit details
    Browse the repository at this point in the history
  33. 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 May 11, 2020
    Copy the full SHA
    cf03fe5 View commit details
    Browse the repository at this point in the history
  34. 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 May 11, 2020
    Copy the full SHA
    3de9dd9 View commit details
    Browse the repository at this point in the history
  35. 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 May 11, 2020
    Copy the full SHA
    a133a88 View commit details
    Browse the repository at this point in the history
  36. 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 May 11, 2020
    Copy the full SHA
    e1e57a4 View commit details
    Browse the repository at this point in the history
  37. http: don't destroy completed request

    Calling destroy() on a completed ClientRequest, i.e.
    once 'close' will be emitted should be a noop. Also
    before emitting 'close' destroyed === true.
    
    Fixes: #32851
    
    PR-URL: #33120
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    ronag authored and codebytere committed May 11, 2020
    Copy the full SHA
    cc5c8e0 View commit details
    Browse the repository at this point in the history
  38. async_hooks: move PromiseHook handler to JS

    This avoids the need to wrap every promise in an AsyncWrap and also
    makes it easier to skip the machinery to track destroy events when
    there's no destroy listener.
    
    Co-authored-by: Andrey Pechkurov <apechkurov@gmail.com>
    
    PR-URL: #32891
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Qard authored and codebytere committed May 11, 2020
    Copy the full SHA
    b061655 View commit details
    Browse the repository at this point in the history
  39. http: expose http.validate-header-name/value

    The use-case is for any framework that provides user mw a response
    replacement, that collects the desired response state, and applies them
    only on conclusion. As such a framework, I'd want to validate the
    header names and values as soon as the user-code provides them.
    This - to eliminate errors on response-send time, and provide developer
    stack trace that contains the line that submits the offending values.
    
    PR-URL: #33119
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    osher authored and codebytere committed May 11, 2020
    Copy the full SHA
    f33e866 View commit details
    Browse the repository at this point in the history
  40. fs: add .ref() and .unref() methods to watcher classes

    PR-URL: #33134
    Fixes: #33096
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    rickyes authored and codebytere committed May 11, 2020
    Copy the full SHA
    1dcf66c View commit details
    Browse the repository at this point in the history
  41. src: fix compiler warning in async_wrap.cc

        ../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’:
        ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type]
         }
    
    Refs: #32891
    
    PR-URL: #33322
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    addaleax authored and codebytere committed May 11, 2020
    Copy the full SHA
    fd9c7c2 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2020

  1. src: add support for TLA

    PR-URL: #30370
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    devsnek authored and MylesBorins committed May 14, 2020
    Copy the full SHA
    0d77eec View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. 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 May 15, 2020
    Copy the full SHA
    5b2cd44 View commit details
    Browse the repository at this point in the history
  2. 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 May 15, 2020
    Copy the full SHA
    f3129b2 View commit details
    Browse the repository at this point in the history
  3. 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 May 15, 2020
    Copy the full SHA
    4f0cd64 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. 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 May 16, 2020
    Copy the full SHA
    b41affb View commit details
    Browse the repository at this point in the history
  2. 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 May 16, 2020
    Copy the full SHA
    066ca98 View commit details
    Browse the repository at this point in the history
  3. 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 May 16, 2020
    Copy the full SHA
    c9c16c0 View commit details
    Browse the repository at this point in the history
  4. 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 May 16, 2020
    Copy the full SHA
    1999607 View commit details
    Browse the repository at this point in the history
  5. 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 May 16, 2020
    Copy the full SHA
    d292633 View commit details
    Browse the repository at this point in the history
  6. deps: update to ICU 67.1

    Refs: https://github.com/unicode-org/icu/releases/tag/release-67-1
    
    PR-URL: #33324
    Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
    Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
    targos authored and codebytere committed May 16, 2020
    Copy the full SHA
    331f0b3 View commit details
    Browse the repository at this point in the history
  7. 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 May 16, 2020
    Copy the full SHA
    85cffb8 View commit details
    Browse the repository at this point in the history
  8. 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 May 16, 2020
    Copy the full SHA
    f31b262 View commit details
    Browse the repository at this point in the history
  9. build: fix --error-on-warn for macOS

    XCode builds on macOS do not appear to inherit the `cflags` setting.
    
    Signed-off-by: Richard Lau <riclau@uk.ibm.com>
    
    PR-URL: #33357
    Refs: #32685
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    richardlau authored and codebytere committed May 16, 2020
    Copy the full SHA
    7d4db35 View commit details
    Browse the repository at this point in the history
  10. build: enable --error-on-warn for POSIX workflows

    Treat warnings as errors for non-deps code on Linux and macOS workflows.
    
    Signed-off-by: Richard Lau <riclau@uk.ibm.com>
    
    PR-URL: #33357
    Refs: #32685
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    richardlau authored and codebytere committed May 16, 2020
    Copy the full SHA
    34e7400 View commit details
    Browse the repository at this point in the history
  11. src: refactor Reallocate since it introduced in upstream v8

    PR-URL: #33402
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    gengjiawen authored and codebytere committed May 16, 2020
    Copy the full SHA
    fd89ef1 View commit details
    Browse the repository at this point in the history
  12. 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 May 16, 2020
    Copy the full SHA
    6d2aaaf View commit details
    Browse the repository at this point in the history
  13. src: small modification to NgHeader

    This is separated out of the QUIC PR. It is not specific to QUIC but
    provides a new base class that is used there as an abstraction of
    the actual implementation. This is a purely internal implementation
    detail that has no outward functional changes (so no need for tests)
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #33289
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    jasnell authored and codebytere committed May 16, 2020
    Copy the full SHA
    354ff4f View commit details
    Browse the repository at this point in the history
  14. 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 May 16, 2020
    Copy the full SHA
    0ffa040 View commit details
    Browse the repository at this point in the history
  15. src: remove deprecated FinalizationRegistry hooks

    PR-URL: #33373
    Fixes: #33389
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    devsnek authored and codebytere committed May 16, 2020
    Copy the full SHA
    0257386 View commit details
    Browse the repository at this point in the history
  16. repl: improve repl preview

    This aligns the REPL preview with the one used in the Chrome
    DevTools console. It will now preview the output for the input
    including the completion suffix as input. When pressing enter while
    previewing such data, it will automatically insert the suffix
    before evaluating the input. When pressing escape, that behavior
    is deactivated until the input is changed.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33282
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    1a9771a View commit details
    Browse the repository at this point in the history
  17. repl: show reference errors during preview

    This aligns the behavior with the one in the Firefox console.
    It will visualize ReferenceErrors in case the input has no possible
    completion and no buffered input. That way typos can already be
    highlighted before being evaluated.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33282
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    d33dcf1 View commit details
    Browse the repository at this point in the history
  18. repl: replace hard coded core module list with actual list

    This replaces the internally used hard coded Node.js core module
    list with the actual internal existent modules. That way all modules
    are automatically picked up instead of having to update the list
    manually.
    
    This currently only applies to the REPL and to the Node.js `eval`
    functionality (User passed `-e` or `--eval` arguments to Node without
    `-i` or `--interactive`).
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33282
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    69061dc View commit details
    Browse the repository at this point in the history
  19. test: refactor test/parallel/test-bootstrap-modules.js

    This simplifies the test a bit by removing duplicated code and by
    focusing the reader on the passed through module.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33282
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    95842db View commit details
    Browse the repository at this point in the history
  20. repl: improve repl autocompletion for require calls

    This improves the autocompletion for require calls. It had multiple
    small issues so far. Most important: it won't suggest completions for
    require statements that are fully written out. Second, it'll detect
    require calls that have whitespace behind the opening bracket. Third,
    it makes sure node modules are detected as such instead of only
    suggesting them as folders. Last, it adds suggestions for input that
    starts with backticks.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33282
    Fixes: #33238
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    6257cf2 View commit details
    Browse the repository at this point in the history
  21. module: do not check circular dependencies for exported proxies

    In case the exported module is a proxy that has the `getPrototypeOf`
    or `setPrototypeOf` trap, skip the circular dependencies check.
    It would otherwise be triggered by the check itself.
    
    Fixes: #33334
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33338
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    c2d2dfc View commit details
    Browse the repository at this point in the history
  22. Revert "vm: add importModuleDynamically option to compileFunction"

    This reverts commit 74c393d.
    
    Fixes: #33166
    
    PR-URL: #33364
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    mcollina authored and codebytere committed May 16, 2020
    Copy the full SHA
    c2cf978 View commit details
    Browse the repository at this point in the history
  23. 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 May 16, 2020
    Copy the full SHA
    d3e2fc8 View commit details
    Browse the repository at this point in the history
  24. 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 May 16, 2020
    Copy the full SHA
    182aaf5 View commit details
    Browse the repository at this point in the history
  25. 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 May 16, 2020
    Copy the full SHA
    12391c7 View commit details
    Browse the repository at this point in the history
  26. 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 May 16, 2020
    Copy the full SHA
    c7c420e View commit details
    Browse the repository at this point in the history
  27. cli: add --trace-atomics-wait flag

    Adds a flag that helps with debugging deadlocks due to incorrectly
    implemented `Atomics.wait()` calls.
    
    PR-URL: #33292
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and codebytere committed May 16, 2020
    Copy the full SHA
    2dc5db8 View commit details
    Browse the repository at this point in the history
  28. 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 May 16, 2020
    Copy the full SHA
    b1a7fda View commit details
    Browse the repository at this point in the history
  29. 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 May 16, 2020
    Copy the full SHA
    dd4789b View commit details
    Browse the repository at this point in the history
  30. 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 May 16, 2020
    Copy the full SHA
    b93a723 View commit details
    Browse the repository at this point in the history
  31. 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 May 16, 2020
    Copy the full SHA
    8ada953 View commit details
    Browse the repository at this point in the history
  32. doc: fix stream example

    - Un-break the code for multibyte characters
    - Get `fs.createReadStream` from the right module
    
    PR-URL: #33426
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and codebytere committed May 16, 2020
    Copy the full SHA
    8f91338 View commit details
    Browse the repository at this point in the history
  33. module: add specific error for dir import

    PR-URL: #33220
    Fixes: #33219
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    aduh95 authored and codebytere committed May 16, 2020
    Copy the full SHA
    35aae31 View commit details
    Browse the repository at this point in the history
  34. 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 May 16, 2020
    Copy the full SHA
    e53de96 View commit details
    Browse the repository at this point in the history
  35. tools: enable no-else-return lint rule

    Refs: #32644
    Refs: #32662
    
    PR-URL: #32667
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    lpinca authored and codebytere committed May 16, 2020
    Copy the full SHA
    9119344 View commit details
    Browse the repository at this point in the history
  36. repl: deprecate repl.inputStream and repl.outputStream

    The stream is exposed twice. As such it's best to rely upon the
    .input and .output properties set by readline.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33294
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    db7bb94 View commit details
    Browse the repository at this point in the history
  37. repl: remove obsolete completer variable

    It is also assigned in readline. There is not need to assign the
    variable twice.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33294
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    ed83202 View commit details
    Browse the repository at this point in the history
  38. repl: deprecate repl._builtinLibs

    This is a manually edited and outdated list of builtin modules.
    Instead, it is better to rely upon the officially documented way
    to get a list of builtin modules.
    
    As a side by fix this makes sure all exports are in one place. Thus,
    it is easier to see what parts are actually exported and which are
    not.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33294
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and codebytere committed May 16, 2020
    Copy the full SHA
    7aa581f View commit details
    Browse the repository at this point in the history
  39. 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 May 16, 2020
    Copy the full SHA
    5e5aa0b View commit details
    Browse the repository at this point in the history
  40. 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 May 16, 2020
    Copy the full SHA
    9d1e577 View commit details
    Browse the repository at this point in the history
  41. 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 May 16, 2020
    Copy the full SHA
    099f18e View commit details
    Browse the repository at this point in the history
  42. buffer,n-api: release external buffers from BackingStore callback

    Release `Buffer` and `ArrayBuffer` instances that were created through
    our addon APIs and have finalizers attached to them only after V8 has
    called the deleter callback passed to the `BackingStore`, instead of
    relying on our own GC callback(s).
    
    This fixes the following race condition:
    
    1. Addon code allocates pointer P via `malloc`.
    2. P is passed into `napi_create_external_buffer` with a finalization
       callback which calls `free(P)`. P is inserted into V8’s global array
       buffer table for tracking.
    3. The finalization callback is executed on GC. P is freed and returned
       to the allocator. P is not yet removed from V8’s global array
       buffer table. (!)
    4. Addon code attempts to allocate memory once again. The allocator
       returns P, as it is now available.
    5. P is passed into `napi_create_external_buffer`. P still has not been
       removed from the v8 global array buffer table.
    6. The world ends with `Check failed: result.second`.
    
    Since our API contract is to call the finalizer on the JS thread on
    which the `ArrayBuffer` was created, but V8 may call the `BackingStore`
    deleter callback on another thread, fixing this requires posting
    a task back to the JS thread.
    
    Refs: #32463 (comment)
    Fixes: #32463
    
    PR-URL: #33321
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and codebytere committed May 16, 2020
    Copy the full SHA
    24faa37 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2020

  1. 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 May 17, 2020
    Copy the full SHA
    7f9ccd6 View commit details
    Browse the repository at this point in the history
  2. doc: prepare 14.x changelog for remark update

    Add a comment to disable a rule in the 14.x changelog that will be
    needed once we update remark lint dependencies. This comment appears in
    the other changelogs.
    
    Refs: nodejs/remark-preset-lint-node#89 (comment)
    
    PR-URL: #33412
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Trott authored and codebytere committed May 17, 2020
    Copy the full SHA
    cc27949 View commit details
    Browse the repository at this point in the history
  3. 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 May 17, 2020
    Copy the full SHA
    453affe View commit details
    Browse the repository at this point in the history

Commits on May 19, 2020

  1. src: add default: case to silence compiler warning

    This fails compilation on at least one platform because there is no
    `default:` case, despite all currently possible enum values being
    listed.
    
    Fix that by adding a default message that won’t be used unless V8
    introduces new enum values.
    
    Refs: c7eeef5#commitcomment-39228519
    
    PR-URL: #33451
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax authored and codebytere committed May 19, 2020
    Copy the full SHA
    e4ad464 View commit details
    Browse the repository at this point in the history
  2. 2020-05-19, Version 14.3.0 (Current)

    Notable changes:
    
    async_hooks:
      * (SEMVER-MINOR) move PromiseHook handler to JS (Stephen Belanger) #32891
    cli:
      * (SEMVER-MINOR) add `--trace-atomics-wait` flag (Anna Henningsen) #33292
    fs:
      * (SEMVER-MINOR) add .ref() and .unref() methods to watcher classes (rickyes) #33134
    http:
      * (SEMVER-MINOR) expose http.validate-header-name/value (osher) #33119
    repl:
      * (SEMVER-MINOR) deprecate repl._builtinLibs (Ruben Bridgewater) #33294
      * (SEMVER-MINOR) deprecate repl.inputStream and repl.outputStream (Ruben Bridgewater) #33294
      * (SEMVER-MINOR) show reference errors during preview (Ruben Bridgewater) #33282
      * (SEMVER-MINOR) improve repl preview (Ruben Bridgewater) #33282
    src:
      * add support for TLA (Gus Caplan) #30370
    
    PR-URL: TODO
    codebytere committed May 19, 2020
    Copy the full SHA
    5d81e4d View commit details
    Browse the repository at this point in the history