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.9.0 release proposal #29210

Merged
merged 97 commits into from
Aug 20, 2019
Merged

v12.9.0 release proposal #29210

merged 97 commits into from
Aug 20, 2019

Commits on Aug 16, 2019

  1. deps: update V8 to 7.6.303.29

    PR-URL: #28955
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    cfe2484 View commit details
    Browse the repository at this point in the history
  2. build: reset embedder string to "-node.0"

    PR-URL: #28955
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    b04f9e1 View commit details
    Browse the repository at this point in the history
  3. deps: V8: fix filename manipulation for Windows

    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    040e7da View commit details
    Browse the repository at this point in the history
  4. deps: V8: un-cherry-pick bd019bd

    Original commit message:
    
        [testrunner] delete ancient junit compatible format support
    
        Testrunner has ancient support for JUnit compatible XML output.
    
        This CL removes this old feature.
    
        [email protected],[email protected],[email protected]
        CC=​[email protected]
    
        Bug: v8:8728
        Change-Id: I7e1beb011dbaec3aa1a27398a5c52abdd778eaf0
        Reviewed-on: https://chromium-review.googlesource.com/c/1430065
        Reviewed-by: Jakob Gruber <[email protected]>
        Reviewed-by: Michael Starzinger <[email protected]>
        Commit-Queue: Tamer Tas <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#59045}
    
    Refs: v8/v8@bd019bd
    
    Backport-PR-URL: #28955
    PR-URL: #26685
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    434c127 View commit details
    Browse the repository at this point in the history
  5. deps: V8: silence irrelevant warning

    Backport-PR-URL: #28955
    PR-URL: #26685
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    33f3e38 View commit details
    Browse the repository at this point in the history
  6. deps: V8: update postmortem metadata generation script

    Update postmortem metadata constants for V8 7.6 in Node.js.
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    cjihrig authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    eefbc07 View commit details
    Browse the repository at this point in the history
  7. deps: V8: patch register-arm64.h

    Fixes a compilation issue on some platforms
    
    Backport-PR-URL: #28955
    PR-URL: #27375
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ujjwal Sharma <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    ac0c075 View commit details
    Browse the repository at this point in the history
  8. deps: V8: forward declaration of Rtl*FunctionTable

    This should be semver-patch since actual invocation is version
    conditional.
    
    Backport-PR-URL: #28955
    PR-URL: #27375
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ujjwal Sharma <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    d940403 View commit details
    Browse the repository at this point in the history
  9. deps: V8: use ATOMIC_VAR_INIT instead of std::atomic_init

    `std::atomic_init<size_t>` is not implemented in all platforms.
    
    * pragma to ignore `-Wbraced-scalar-init`
    
    Backport-PR-URL: #28955
    PR-URL: #27375
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ujjwal Sharma <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    94c8d06 View commit details
    Browse the repository at this point in the history
  10. deps: V8: add workaround for MSVC optimizer bug

    Refs: https://developercommunity.visualstudio.com/content/problem/512352/compiler-doesnt-finish-142027508.html
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    f24caef View commit details
    Browse the repository at this point in the history
  11. deps: V8: fix BUILDING_V8_SHARED issues

    Backport-PR-URL: #28955
    PR-URL: #27375
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ujjwal Sharma <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    c9f8d28 View commit details
    Browse the repository at this point in the history
  12. deps: V8: fix linking issue for MSVS

    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    refack authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    533b2d4 View commit details
    Browse the repository at this point in the history
  13. deps: V8: cherry-pick 3b8c624

    Original commit message:
    
        GCC: explicitely instantiate JSObject::ApplyAttributesToDictionary for NumberDictionary
    
        elements.cc invokes ApplyAttributesToDictionary using NumberDictionary as its template
        parameter. But the declaration of the template method is in js-object.cc, so nobody
        can actually compile the version for number dictionary. This is fixed requesting
        explicit instantiation for NumberDictionary.
    
        This was breaking GCC build.
    
        Bug: chromium:819294
        Change-Id: I685ddc5b97e129d1a534dbdb04025c0932bc5ecd
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1649565
        Reviewed-by: Toon Verwaest <[email protected]>
        Commit-Queue: José Dapena Paz <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#62097}
    
    Refs: v8/v8@3b8c624
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    9b3c115 View commit details
    Browse the repository at this point in the history
  14. deps: cherry-pick 13a04aba from V8 upstream

    Original commit message:
      fix: move V8_EXPORT_PRIVATE marks to prevent unresolvable references
    
      This change fixes missing symbol errors in the Windows 10 on ARM build
      of Node.js.
    
      When a whole class is marked for export, all of its members are marked
      as well. This can be a problem when inline members call undefined yet
      inline members of other classes: the exported function will contain a
      reference to the undefined inline function that should be satisfied at
      link time, but because the other function is inline no symbol will be
      produced that will satisfy that reference.
    
      Clang gets around this by masking inlined class members from export
      using /Fc:dllexportInlines-. This is why b0a2a567 worked.
    
      Node.js' Windows builds use MSVC and so do not have access to this
      flag. This results in unresolved symbols at link time.
    
      Bug: v8:9465
      Change-Id: Ief9c7ab6ba35d22f995939eb62a64d6f1992ed85
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1696771
      Reviewed-by: Sigurd Schneider <[email protected]>
      Reviewed-by: Jakob Gruber <[email protected]>
      Commit-Queue: Sigurd Schneider <[email protected]>
      Cr-Commit-Position: refs/heads/master@{#62660}
    
    Refs: v8/v8@13a04ab
    Backport-PR-URL: #28955
    PR-URL: #28602
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    jkunkee authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    945955f View commit details
    Browse the repository at this point in the history
  15. deps: V8: cherry-pick d2ccc59

    Original commit message:
    
        [snapshot] print reference stack for JSFunctions in the isolate snapshot
    
        This helps debugging incorrect usage of the SnapshotCreator API in
        debug mode.
    
        Change-Id: Ibd9db76a5f460cdf7ea6d14e865592ebaf69aeef
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1648240
        Reviewed-by: Yang Guo <[email protected]>
        Commit-Queue: Yang Guo <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#62095}
    
    Refs: v8/v8@d2ccc59
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    492b7cb View commit details
    Browse the repository at this point in the history
  16. deps: V8: backport b33af60

    Original commit message:
    
        [api] Get ScriptOrModule from CompileFunctionInContext
    
        Adds a new out param which allows accessing the ScriptOrModule
        of a function, which allows an embedder such as Node.js to use
        the function's i::Script lifetime.
    
        Refs: nodejs/node-v8#111
        Change-Id: I34346d94d76e8f9b8377c97d948673f4b95eb9d5
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1699698
        Reviewed-by: Yang Guo <[email protected]>
        Commit-Queue: Yang Guo <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#62830}
    
    Refs: v8/v8@b33af60
    
    Backport-PR-URL: #28955
    Backport-PR-URL: #28779
    PR-URL: #28671
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    devsnek authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    7d411f4 View commit details
    Browse the repository at this point in the history
  17. tools: sync gypfiles with V8 7.6

    Co-authored-by: Refael Ackermann (רפאל פלחי) <[email protected]>
    Co-authored-by: Ujjwal Sharma <[email protected]>
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    4d7a795 View commit details
    Browse the repository at this point in the history
  18. test: update postmortem metadata test for V8 7.6

    The following metadata has changed:
    
    - v8dbg_class_FixedTypedArrayBase__base_pointer__Object
      - Field moved from FixedTypedArrayBase to JSTypedArray.
      - Postmortem tools should use v8dbg_class_JSTypedArray__base_pointer__Object.
      - Refs: v8/v8@70bd7cf
    
    - v8dbg_class_FixedTypedArrayBase__external_pointer__uintptr_t
      - Field moved from FixedTypedArrayBase to JSTypedArray.
      - Add new constant: v8dbg_class_JSTypedArray__external_pointer__uintptr_t
      - Refs: v8/v8@70bd7cf
    
    - v8dbg_class_Map__instance_descriptors_offset
      - Underlying constant was renamed to kInstanceDescriptorsOffset.
      - Postmortem tools should not need to update anything for this constant.
      - Refs: v8/v8@15a7e04
    
    Backport-PR-URL: #28955
    PR-URL: #28016
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    cjihrig authored and targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    f08f154 View commit details
    Browse the repository at this point in the history
  19. deps: patch V8 to be API/ABI compatible with 7.4 (from 7.5)

    Reverts v8/v8@1b51dca
    Reverts v8/v8@1ab717d
    Partially reverts v8/v8@b0077b3
    
    Backport-PR-URL: #28955
    PR-URL: #28005
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ujjwal Sharma <[email protected]>
    targos committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    7b8eb83 View commit details
    Browse the repository at this point in the history
  20. deps: patch V8 to be API/ABI compatible with 7.4 (from 7.6)

    Reverts v8/v8@4214933.
    Reverts v8/v8@c76f377.
    Reverts v8/v8@e0d7f81.
    
    Co-authored-by: Anna Henningsen <[email protected]>
    PR-URL: #28955
    targos and addaleax committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    53c7fac View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. module: add warning when import,export is detected in CJS context

    This will allow users to know how to change their project to support
    ES modules.
    
    PR-URL: #28950
    Reviewed-By: Bradley Farias <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    gntem authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    925e40c View commit details
    Browse the repository at this point in the history
  2. events: give subclass name in unhandled 'error' message

    For unhandled `'error'` events, include the constructor name for
    subclasses of EventEmitter, if possible. This makes tracing errors
    easier when both creation of the `Error` object and emitting it
    happen in code that does not refer back to the event emitter.
    
    PR-URL: #28952
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    b7696b4 View commit details
    Browse the repository at this point in the history
  3. stream: improve read() performance

    PR-URL: #28961
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    000999c View commit details
    Browse the repository at this point in the history
  4. crypto: extend RSA-OAEP support with oaepHash

    This adds an oaepHash option to asymmetric encryption which allows
    users to specify a hash function when using OAEP padding. This
    feature is required for interoperability with WebCrypto applications.
    
    PR-URL: #28335
    Fixes: #25756
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    tniessen authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    54197ea View commit details
    Browse the repository at this point in the history
  5. test: add test for OAEP hash mismatch

    PR-URL: #28335
    Fixes: #25756
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    tniessen authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    82edebf View commit details
    Browse the repository at this point in the history
  6. doc: make unshift doc compliant with push doc

    readable.unshift() also allows to pass null and end stream
    
    PR-URL: #28953
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    EduardoRFS authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    17d9495 View commit details
    Browse the repository at this point in the history
  7. fs: validate fds as int32s

    This commit updates the JS layer's validation of file
    descriptors to check for int32s >= 0 instead of uint32s.
    
    PR-URL: #28984
    Fixes: #28980
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    f194626 View commit details
    Browse the repository at this point in the history
  8. benchmark: allow easy passing of process flags

    PR-URL: #28986
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    5008b46 View commit details
    Browse the repository at this point in the history
  9. doc: documented default statusCode

    PR-URL: #28982
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    nfearnley authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    7b7b8f2 View commit details
    Browse the repository at this point in the history
  10. module: refine package name validation

    PR-URL: #28965
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    guybedford authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    491b46d View commit details
    Browse the repository at this point in the history
  11. test: refactor test-sync-io-option

    Refactor `test/parallel/test-sync-io-option.js` to be simpler and cover
    more cases (in particular, this adds a regression test for
    #28913).
    
    Refs: #28913
    
    PR-URL: #29020
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    43e444b View commit details
    Browse the repository at this point in the history
  12. doc: improve UV_THREADPOOL_SIZE description

    PR-URL: #29033
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    375d1ee View commit details
    Browse the repository at this point in the history
  13. test: assert: add failing deepEqual test for faked boxed primitives

    PR-URL: #29029
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ljharb authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    f9ed5f3 View commit details
    Browse the repository at this point in the history
  14. util: assert: fix deepEqual comparing fake-boxed to real boxed primitive

    PR-URL: #29029
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ljharb authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    8426077 View commit details
    Browse the repository at this point in the history
  15. util: isEqualBoxedPrimitive: ensure both values are actual boxed Symbols

    ... before trying to valueOf them
    
    PR-URL: #29029
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ljharb authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    112ec73 View commit details
    Browse the repository at this point in the history
  16. stream: encapsulate buffer-list

    PR-URL: #28974
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    647f3a8 View commit details
    Browse the repository at this point in the history
  17. doc: fix nits in child_process.md

    * Use `console.error()` for error or stderr output.
    * Unify comment style.
    * Unify link format.
    * Correct link URL.
    * Fix some typos.
    
    PR-URL: #29024
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    vsemozhetbyt authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    1b6d7c0 View commit details
    Browse the repository at this point in the history
  18. util: improve debuglog performance

    PR-URL: #28956
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    a4e2549 View commit details
    Browse the repository at this point in the history
  19. stream: improve read() performance more

    PR-URL: #28989
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    6bc4620 View commit details
    Browse the repository at this point in the history
  20. http: buffer writes even while no socket assigned

    PR-URL: #29019
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    c396b2a View commit details
    Browse the repository at this point in the history
  21. stream: inline and simplify onwritedrain

    Inline and simplify onwritedrain. Also remove comment that seems to be
    outdated/invalid.
    
    PR-URL: #29037
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    e543d35 View commit details
    Browse the repository at this point in the history
  22. http: add missing stream-like properties to OutgoingMessage

    PR-URL: #29018
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    16e0011 View commit details
    Browse the repository at this point in the history
  23. test: unskip tests that now pass on AIX

    One skipped test remains, it creates very large Buffer objects,
    triggering the AIX OOM to kill node and its parent processes.
    
    See: nodejs/build#1849 (comment)
    
    PR-URL: #29054
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    sam-github authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    e3b1243 View commit details
    Browse the repository at this point in the history
  24. dns: update lookupService() first arg name

    The first argument to lookupService() should be an IP address,
    and is named "address" in the documentation. This commit updates
    the code to match the documentation and provide less confusing
    errors.
    
    PR-URL: #29040
    Fixes: #29039
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    6f7b561 View commit details
    Browse the repository at this point in the history
  25. deps: upgrade to libuv 1.31.0

    Notable changes:
    
    - UV_FS_O_FILEMAP has been added for faster access to memory
      mapped files on Windows.
    - uv_fs_mkdir() now returns UV_EINVAL for invalid filenames
      on Windows. It previously returned UV_ENOENT.
    - The uv_fs_statfs() API has been added.
    - The uv_os_environ() and uv_os_free_environ() APIs have
      been added.
    
    Fixes: #28599
    Fixes: #28945
    Fixes: #29008
    PR-URL: #29070
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    2c91c65 View commit details
    Browse the repository at this point in the history
  26. report: list envvars using uv_os_environ()

    This commit simplifies the diagnostic report's code for listing
    environment variables by using uv_os_environ() instead of
    platform specific code.
    
    PR-URL: #28963
    Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    2528dee View commit details
    Browse the repository at this point in the history
  27. http: remove duplicate check

    `socketOnDrain()` performs the exact same check and doesn't return
    anything.
    
    PR-URL: #29022
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    13a4979 View commit details
    Browse the repository at this point in the history
  28. src: organize imports in inspector_profiler.cc

    In the other .cc files in the project, includes are in alphabetical
    order, with local files first, and libraries after. However,
    inspector_profiler.cc has a library declared in the middle of the import
    order, and v8 is the second to last being imported, instead of the last.
    So I reordered the imports and testing showed no side effects;
    everything passed.
    
    PR-URL: #29073
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    DTeachs authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    b2936cf View commit details
    Browse the repository at this point in the history
  29. module: pkg exports validations and fallbacks

    PR-URL: #28949
    Reviewed-By: Bradley Farias <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    guybedford authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    cb16229 View commit details
    Browse the repository at this point in the history
  30. tools: allow single JS file for --link-module

    The description for the --link-module configuration option is as
    follows:
    $ ./configure --help | grep -A 5 'link-module'
      --link-module=LINKED_MODULE
                          Path to a JS file to be bundled in the binary as a
                          builtin. This module will be referenced by path
                          without extension; e.g. /root/x/y.js will be
                          referenced via require('root/x/y'). Can be used
                          multiple times
    
    This lead me to think that it was possible to specify a file like this:
    $ ./configure --link-module=something.js
    $ NODE_DEBUG=mkcodecache make -j8
    
    This will lead to a compilation error as an entry in the source_ map in
    node_javascript.cc will end up having an empty string as its key:
    source_.emplace("", UnionBytes{_raw, 105});
    
    This will then be used by CodeCacheBuilder when it iterates over the
    module ids, which will lead to the following compilation errors:
    
    /node/out/Release/obj/gen/node_code_cache.cc:12:23: warning:
    ISO C++17 does not allow a decomposition group to be
    empty [-Wempty-decomposition]
    static const uint8_t [] = {
                          ^
    /node/out/Release/obj/gen/node_code_cache.cc:12:22: warning:
    decomposition declarations are a C++17 extension [-Wc++17-extensions]
    static const uint8_t [] = {
                         ^~
    /node/out/Release/obj/gen/node_code_cache.cc:12:1: error:
    decomposition declaration cannot be declared 'static'
    static const uint8_t [] = {
    ^~~~~~
    /node/out/Release/obj/gen/node_code_cache.cc:12:22: error:
    decomposition declaration cannot be declared with type 'const uint8_t'
    (aka 'const unsigned char'); declared type must be 'auto' or
    reference to 'auto'
    static const uint8_t [] = {
                         ^
    /node/out/Release/obj/gen/node_code_cache.cc:12:22: error:
    excess elements in scalar initializer
    static const uint8_t [] = {
                         ^
    /node/out/Release/obj/gen/node_code_cache.cc:660:7: error:
    expected expression
          ,
          ^
    /node/out/Release/obj/gen/node_code_cache.cc:661:24: error:
    no matching function for call to 'arraysize'
          static_cast<int>(arraysize()), policy
                           ^~~~~~~~~
    ../src/util.h:667:18: note: candidate function template not viable:
    requires 1 argument, but 0 were provided
    constexpr size_t arraysize(const T (&)[N]) {
                     ^
    2 warnings and 5 errors generated.
    
    This commit suggests that passing a single file be allowed by modifying
    tools/js2c.py.
    
    PR-URL: #28443
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    danbev authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    1011a17 View commit details
    Browse the repository at this point in the history
  31. http: remove redundant condition

    `conn.destroyed` is guaranteed to be `false` because a previous `if`
    statement already handles the case where `conn && conn.destroyed`
    evaluates to `true` returning `false` in that case.
    
    PR-URL: #29078
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lpinca authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    2e50088 View commit details
    Browse the repository at this point in the history
  32. doc: clarify async iterator leak

    Clarifies that creating multiple async iterators from the same stream
    can lead to event listener leak.
    
    PR-URL: #28997
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    5ea9237 View commit details
    Browse the repository at this point in the history
  33. doc, lib, src, test, tools: fix assorted typos

    PR-URL: #29075
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    XhmikosR authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    3bfca0b View commit details
    Browse the repository at this point in the history
  34. stream: improve read() performance further

    PR-URL: #29077
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    2a84459 View commit details
    Browse the repository at this point in the history
  35. inspector: use const for contextGroupId

    PR-URL: #29076
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    gengjiawen authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    66249bb View commit details
    Browse the repository at this point in the history
  36. buffer: improve ERR_BUFFER_OUT_OF_BOUNDS default

    This commit changes the default message used by
    ERR_BUFFER_OUT_OF_BOUNDS. Previously, the default
    message implied that the problematic was always a
    write, which is not accurate.
    
    PR-URL: #29098
    Fixes: #29097
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    c7a4525 View commit details
    Browse the repository at this point in the history
  37. test: skip test-fs-access if root

    Currently, if this test is run as the root user the following
    failure will occur:
    
    === release test-fs-access ===
    Path: parallel/test-fs-access
    (node:46733) internal/test/binding: These APIs are for internal testing
    only. Do not use them.
    Can't clean tmpdir: /root/node/test/.tmp.522
    Files blocking: [ 'read_only_file', 'read_write_file' ]
    
    /root/node/test/common/tmpdir.js:136
        throw e;
        ^
    
    Error: EACCES: permission denied, rmdir '/root/node/test/.tmp.522'
        at Object.rmdirSync (fs.js:693:3)
        at rmdirSync (/root/node/test/common/tmpdir.js:72:8)
        at rimrafSync (/root/node/test/common/tmpdir.js:41:7)
        at process.onexit (/root/node/test/common/tmpdir.js:121:5)
        at process.emit (events.js:214:15) {
      errno: -13,
      syscall: 'rmdir',
      code: 'EACCES',
      path: '/root/node/test/.tmp.522'
    }
    Command: ./node --expose-internals test/parallel/test-fs-access.js
    
    This commit adds a root user check and skips this test if running as the
    user root.
    
    PR-URL: #29092
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    danbev authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    0aa339e View commit details
    Browse the repository at this point in the history
  38. http: follow symbol naming convention

    PR-URL: #29091
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    6b9e372 View commit details
    Browse the repository at this point in the history
  39. doc: note that stream error can close stream

    PR-URL: #29082
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    9ead4ec View commit details
    Browse the repository at this point in the history
  40. buffer: improve copy() performance

    PR-URL: #29066
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mscdex authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    9057814 View commit details
    Browse the repository at this point in the history
  41. tools: make nodedownload.py Python 3 compatible

    PR-URL: #29104
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cclauss authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    31c50e5 View commit details
    Browse the repository at this point in the history
  42. console: minor timeLogImpl() refactor

    This commit does two things:
    
    - Reverses the boolean value returned by timeLogImpl(). The new
      values make more sense semantically (IMO anyway), and save a
      a single NOT operation.
    - Explicitly check for undefined when calling _times.get()
      instead of coercing the value.
    
    PR-URL: #29100
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    b085b94 View commit details
    Browse the repository at this point in the history
  43. build: support py3 for configure.py

    PR-URL: #29106
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cclauss authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    0a63e2d View commit details
    Browse the repository at this point in the history
  44. deps: V8: cherry-pick e3d7f8a

    Original commit message:
    
        [build] update gen-postmortem-metadata for Python 3
    
        This change makes the code compatible with both Python 2 and Python 3.
    
        Change-Id: I99d68af9c3163607c3a2fdbafac339a98b7471e4
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1751331
        Commit-Queue: Yang Guo <[email protected]>
        Reviewed-by: Yang Guo <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#63207}
    
    Refs: v8/v8@e3d7f8a
    
    PR-URL: #29105
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cclauss authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    a17d398 View commit details
    Browse the repository at this point in the history
  45. test: make exported method static

    The exported method can be static as it will never be called directly.
    
    PR-URL: #29102
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    rpoisel authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    18b7113 View commit details
    Browse the repository at this point in the history
  46. doc: fix introduced_in note in querystring.md

    The method descriptions mentioned the right version but for some reason
    the top-level description did not. Well, now it does.
    
    PR-URL: #29014
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    ebfe636 View commit details
    Browse the repository at this point in the history
  47. test: add required settings to test-benchmark-buffer

    A benchmark was added but the appropriate settings were not added to
    test-benchmark-buffer. These two additions make sure that the new
    benchmark file only runs a single benchmark during testing.
    
    PR-URL: #29163
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Trott authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    aff1ef9 View commit details
    Browse the repository at this point in the history
  48. doc: mention N-API as recommended approach

    We've had a few comments that from the doc it might not
    be clear that N-API is the recommended approach for Addons.
    As a start, mention N-API early in the non N-API section
    as the recommended approach unless lower level access
    is required.
    
    PR-URL: #28922
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    edbe38d View commit details
    Browse the repository at this point in the history
  49. src: simplify UnionBytes

    Before this commit it was using a tagged union to store the one-byte and
    two-byte pointers.
    
    From a `sizeof(UnionBytes)` perspective that makes no difference - there
    is a hole between the tag and the union - and it makes the code just a
    little harder to reason about, IMO.
    
    PR-URL: #29116
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bnoordhuis authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    62a0e91 View commit details
    Browse the repository at this point in the history
  50. fs: add default options for *stat()

    PR-URL: #29114
    Fixes: #29113
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    UziTech authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    178caa5 View commit details
    Browse the repository at this point in the history
  51. stream: use lazy registration for drain for fast destinations

    PR-URL: #29095
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    e2a2a3f View commit details
    Browse the repository at this point in the history
  52. build: add a testclean target

    This commit adds a target named testclean to allow for cleaning the
    temporary files generated during a test run without having to use the
    clean target.
    
    PR-URL: #29094
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    danbev authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    e51f924 View commit details
    Browse the repository at this point in the history
  53. readline: establish y in cursorTo as optional

    Parameter y in cursorTo() is optional and this is also verified by
    tests but docs don't state this. Besides that if the newly added
    parameter callback is used with no y, it's quite unhandy. This PR allows
    to simply omit y.
    
    PR-URL: #29128
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Flarna authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    e474c67 View commit details
    Browse the repository at this point in the history
  54. tls: allow client-side sockets to be half-opened

    Make `tls.connect()` support an `allowHalfOpen` option which specifies
    whether or not to allow the connection to be half-opened when the
    `socket` option is not specified.
    
    PR-URL: #27836
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ouyang Yadong <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    lpinca authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    5b892c4 View commit details
    Browse the repository at this point in the history
  55. fs: add fs.writev() which exposes syscall writev()

    fs with writev allow many buffers to be pushed to underlying OS
    APIs in one batch, so this should improve write speed to files.
    
    Refs: #2298
    
    PR-URL: #25925
    Fixes: #2298
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    AnasAboreeda authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    bb19d82 View commit details
    Browse the repository at this point in the history
  56. http,stream: add writableEnded

    This is work towards resolving the response.finished confusion and
    future deprecation.
    
    Note that implementation-wise, streams have both an ending and ended
    state. However, in this case (in order to avoid confusion in user space)
    writableEnded is equal to writable.ending. The ending vs ended situation
    is internal state required for internal stream logic.
    
    PR-URL: #28934
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    f9b61d2 View commit details
    Browse the repository at this point in the history
  57. http2: remove unused FlushData() function

    PR-URL: #29145
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    964dff8 View commit details
    Browse the repository at this point in the history
  58. readline: close dumb terminals on Control+C

    This commit adds support for closing a readline interface
    on Control+C when the terminal is dumb.
    
    PR-URL: #29149
    Fixes: #29111
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    3c346b8 View commit details
    Browse the repository at this point in the history
  59. readline: close dumb terminals on Control+D

    This commit adds support for closing a readline interface
    on Control+D when the terminal is dumb.
    
    PR-URL: #29149
    Fixes: #29111
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cjihrig authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    7f11c72 View commit details
    Browse the repository at this point in the history
  60. src: rename --security-reverts to ...-revert

    It was called --security-revert prior to 12.x, but changed in
    #22490.
    
    See:
    nodejs/nodejs.org#2412 (comment)
    
    PR-URL: #29153
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    a6b9299 View commit details
    Browse the repository at this point in the history
  61. build: remove unnecessary Python semicolon

    PR-URL: #29170
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    MattIPv4 authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    fbe25c7 View commit details
    Browse the repository at this point in the history
  62. doc: improve example single-test command

    Changes example command to refer to the full test directory:
    `./test/parallel/` instead of `./parallel/`
    
    PR-URL: #29171
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    davidguttman authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    ad28f55 View commit details
    Browse the repository at this point in the history
  63. build: remove unused option

    There is no longer a need to skip sequential/test-benchmark-napi because
    it no longer resides in sequential. Benchmark tests are now in their own
    directory.
    
    PR-URL: #29173
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Trott authored and targos committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    5c5ef4e View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. tools: make pty_helper.py python3-compatible

    Fixes: #29166
    
    PR-URL: #29167
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bnoordhuis authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    acdc21b View commit details
    Browse the repository at this point in the history
  2. fs: validate writev fds consistently

    This commit updates the recently added writev methods
    to validate file descriptors like the other fs methods do.
    
    PR-URL: #29185
    Refs: #25925
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    4356836 View commit details
    Browse the repository at this point in the history
  3. fs: add writev() promises version

    #25925 added fs.writev()
    and fs.writevSync(), but did not include a Promises based
    equivalent. This commit adds the missing method.
    
    Refs: #25925
    PR-URL: #29186
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    81f3eb5 View commit details
    Browse the repository at this point in the history
  4. fs: use consistent buffer array validation

    This commit updates fs.writev() and fs.writevSync() to use the
    same validation method as filehandle.writev().
    
    PR-URL: #29186
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    82eeadb View commit details
    Browse the repository at this point in the history
  5. test: deflake test-tls-passphrase

    Move `socket.end()` to client.
    
    Fixes: #28111
    Refs: #27569
    
    PR-URL: #29134
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lpinca authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    6bafd35 View commit details
    Browse the repository at this point in the history
  6. http: simplify drain()

    Simplify and slightly optimize draining outgoing http streams. Avoid
    extra event listener and inline with rest of the drain logic.
    
    PR-URL: #29081
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    c5edeb9 View commit details
    Browse the repository at this point in the history
  7. worker: fix crash when SharedArrayBuffer outlives creating thread

    Keep a reference to the `ArrayBuffer::Allocator` alive for at least
    as long as a `SharedArrayBuffer` allocated by it lives.
    
    Refs: #28788
    Fixes: #28777
    Fixes: #28773
    
    PR-URL: #29190
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    d4e397a View commit details
    Browse the repository at this point in the history
  8. tools: make code cache and snapshot deterministic

    Use a fixed random seed to ensure that the generated sources are
    identical across runs.
    
    The final node binary still reseeds itself on start-up so there should
    be no security implications caused by predictable random numbers (e.g.,
    `Math.random()`, ASLR, the hash seed, etc.)
    
    Fixes: #29108
    
    PR-URL: #29142
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bnoordhuis authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    c4f6077 View commit details
    Browse the repository at this point in the history
  9. fs: use fs.writev() internally

    Avoid using internal API in fs implementation.
    
    PR-URL: #29189
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    ronag authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    d79d142 View commit details
    Browse the repository at this point in the history
  10. net: use callback to properly propagate error

    The socket will be destroyed upstream through the proper error
    flow.
    
    PR-URL: #29178
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    ronag authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    17319e7 View commit details
    Browse the repository at this point in the history
  11. stream: simplify howMuchToRead()

    This slightly refactors read by moving side effects out of
    howMuchToRead().
    
    We don't actually have to set state.needReadable = true; in
    howMuchToRead() since read handles 0 return as needReadable.
    
    PR-URL: #29155
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    1e3e6da View commit details
    Browse the repository at this point in the history
  12. build: enable linux large pages LLVM lld linkage support

    The custom linker script is compatible with GNU ld only.
    As such, providin a new expliciting option to redirect to
    a different one. lld seems unable to migrate this
    large section w/o segfaulting so providing only the
    base address anchor for now.
    
    PR-URL: #28938
    Reviewed-By: Ben Noordhuis <[email protected]>
    devnexen authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    f42eb01 View commit details
    Browse the repository at this point in the history
  13. stream: add readableEnded

    Adds a readableEnded property and improved finished compat with possible
    stream-like objects.
    
    PR-URL: #28814
    Refs: #28813
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    a9f8b62 View commit details
    Browse the repository at this point in the history
  14. 2019-08-20, Version 12.9.0 (Current)

    Notable changes:
    
    * crypto:
      * Added an oaepHash option to asymmetric encryption which allows
        users to specify a hash function when using OAEP padding.
        #28335
    * deps:
      * Updated V8 to 7.6.303.29. #28955
        * Improves the performance of various APIs such as `JSON.parse` and
          methods called on frozen arrays.
        * Adds the Promise.allSettled method.
        * Improves support of `BigInt` in `Intl` methods.
        * For more information: https://v8.dev/blog/v8-release-76
      * Updated libuv to 1.31.0. #29070
        * `UV_FS_O_FILEMAP` has been added for faster access to memory
          mapped files on Windows.
        * `uv_fs_mkdir()` now returns `UV_EINVAL` for invalid filenames on
          Windows. It previously returned `UV_ENOENT`.
        * The `uv_fs_statfs()` API has been added.
        * The `uv_os_environ()` and `uv_os_free_environ()` APIs have been
          added.
    * fs:
      * Added `fs.writev`, `fs.writevSync` and `filehandle.writev` (promise
        version) methods. They allow to write an array of `ArrayBufferView`s
        to a file descriptor. #25925
        #29186
    * http:
      * Added three properties to `OutgoingMessage.prototype`:
        `writableObjectMode`, `writableLength` and `writableHighWaterMark`
        #29018
    * stream:
      * Added an new property `readableEnded` to readable streams. Its value
        is set to `true` when the `'end'` event is emitted.
        #28814
      * Added an new property `writableEnded` to writable streams. Its value
        is set to `true` after `writable.end()` has been called.
        #28934
    
    PR-URL: #29210
    targos committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    e6872f5 View commit details
    Browse the repository at this point in the history