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

Please ignore this msg #1

Merged
merged 1,453 commits into from
Aug 13, 2019
Merged

Please ignore this msg #1

merged 1,453 commits into from
Aug 13, 2019
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 12, 2019

  1. report: modify getReport() to return an Object

    It's likely that anyone using `process.report.getReport()` will be
    processing the return value thereafter (e.g., filtering fields or
    redacting secrets). This change eliminates boilerplate by calling
    `JSON.parse()` on the return value.
    
    Also modified the `validateContent()` and `validate()` test helpers in
    `test/common/report.js` to be somewhat more obvious and helpful. Of
    note, a report failing validation will now be easier (though still not
    _easy_) to read when prepended to the stack trace.
    
    - Refs: nodejs/diagnostics#315
    
    PR-URL: #28630
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    boneskull committed Jul 12, 2019
    Configuration menu
    Copy the full SHA
    bff7a46 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2019

  1. src: replace already elevated Object, Local v8 namespace

    PR-URL: #28611
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    juanarbol authored and Trott committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    9c4bdfe View commit details
    Browse the repository at this point in the history
  2. src, tools: replace raw ptr with smart ptr

    NodeMainInstance::Create will now returrn
    an instance of NodeMainInstance in a
    unique_ptr.
    
    PR-URL: #28577
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    GauthamBanasandra authored and Trott committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    cf929c0 View commit details
    Browse the repository at this point in the history
  3. doc: add example on how to create __filename, __dirname for esm

    PR-URL: #28282
    Fixes: #28114
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    GrosSacASac authored and lpinca committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    84ad92d View commit details
    Browse the repository at this point in the history
  4. src: simplify --debug flags

    Any use of --debug, --debug=, --debug-brk, or --debug-brk=
    now triggers an error. That means we can eliminate their
    aliases with --inspect counterparts and simplify the code.
    
    PR-URL: #28615
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    2c5716b View commit details
    Browse the repository at this point in the history
  5. doc: drop 'for more details' in deprecations

    The deprecations documentation links to the GitHub issue
    tracker in several places. This commit makes the text
    around those links consistent.
    
    PR-URL: #28617
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    ec55180 View commit details
    Browse the repository at this point in the history
  6. readline: use named constant for surrogate checks

    This commit defines a named constant instead of using a mix of
    2 ** 16 and 0x10000 throughout the code.
    
    PR-URL: #28638
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    5af9f15 View commit details
    Browse the repository at this point in the history
  7. readline: remove IIFE in SIGCONT handler

    This commit removes an IIFE in the readline SIGCONT handler
    that was previously being used to bind `this`.
    
    PR-URL: #28639
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    223ba43 View commit details
    Browse the repository at this point in the history
  8. readline: simplify isFullWidthCodePoint()

    The non-ICU-based isFullWidthCodePoint() can be simplified to
    a single `return` statement. This commit removes the extra
    branching logic.
    
    PR-URL: #28640
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    a130545 View commit details
    Browse the repository at this point in the history
  9. doc: remove superfluous MDN link in assert.md

    PR-URL: #28246
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Trott committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    a013aa0 View commit details
    Browse the repository at this point in the history
  10. readline: expose stream API in clearScreenDown()

    This commit adds an optional callback to clearScreenDown(),
    which is passed to the stream's write() method. It also
    exposes the return value of write().
    
    PR-URL: #28641
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cjihrig committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    c31f7e5 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2019

  1. path: using .relative() should not return a trailing slash

    Resolving a path against root with `path.relative()` should not
    include a trailing slash.
    
    Fixes: #28549
    
    PR-URL: #28556
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    BridgeAR authored and zhangyongsheng committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    5a6aa66 View commit details
    Browse the repository at this point in the history
  2. path: move branch to the correct location

    This code branch only makes sense when i === length. Otherwise it'll
    already be handled.
    
    PR-URL: #28556
    Fixes: #28549
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    BridgeAR authored and zhangyongsheng committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    e12f48e View commit details
    Browse the repository at this point in the history
  3. doc: mark process.report as experimental

    Everything under process.report is experimental. This commit
    adds the missing stability index entries.
    
    PR-URL: #28653
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    cjihrig committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    febdf39 View commit details
    Browse the repository at this point in the history
  4. doc: mark N-API thread-safe function stable

    The various TSFN APIs are marked as stable, but the TSFN heading itself
    is still marked as experimental.
    
    PR-URL: #28643
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Gabriel Schulhof committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    efc3946 View commit details
    Browse the repository at this point in the history
  5. zlib: do not coalesce multiple .flush() calls

    This is an approach to address the issue linked below. Previously,
    when `.write()` and `.flush()` calls to a zlib stream were interleaved
    synchronously (i.e. without waiting for these operations to finish),
    multiple flush calls would have been coalesced into a single flushing
    operation.
    
    This patch changes behaviour so that each `.flush()` all corresponds
    to one flushing operation on the underlying zlib resource, and the
    order of operations is as if the `.flush()` call were a `.write()`
    call.
    
    One test had to be removed because it specifically tested the previous
    behaviour.
    
    As a drive-by fix, this also makes sure that all flush callbacks are
    called. Previously, that was not the case.
    
    Fixes: #28478
    
    PR-URL: #28520
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    518ffc1 View commit details
    Browse the repository at this point in the history
  6. src: add cleanup hook for ContextifyContext

    Otherwise there’s a memory leak left by the context when the Isolate
    tears down without having run the weak callback.
    
    PR-URL: #28631
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    00464b5 View commit details
    Browse the repository at this point in the history
  7. deps: update acorn to 6.2.0

    Includes support for bigint syntax so we can remove the acorn-bigint
    plugin.
    
    PR-URL: #28649
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    targos authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    60a207f View commit details
    Browse the repository at this point in the history
  8. http2: report memory allocated by nghttp2 to V8

    This helps the JS engine have a better understanding of the memory
    situation in HTTP/2-heavy applications, and avoids situations that
    behave like memory leaks due to previous underestimation of memory
    usage which is tied to JS objects.
    
    Refs: #28088 (comment)
    
    PR-URL: #28645
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    57c7083 View commit details
    Browse the repository at this point in the history
  9. tools: add coverage to ignored files

    This adds the coverage directory to the .gitignore file.
    
    PR-URL: #28626
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lholmquist authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    ebe9261 View commit details
    Browse the repository at this point in the history
  10. build,v8: support IBM i

    Some libraries do not exist on IBM i (OS400).
    Commit 417c18e introduces these missing libraries.
    Need to differentiate `AIX` and `OS400`(IBM i).
    
    PR-URL: #28607
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    dmabupt authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    d0b0230 View commit details
    Browse the repository at this point in the history
  11. test: fix pty test hangs on aix

    Some pty tests persistently hung on the AIX CI buildbots. Fix that by
    adding a helper script that properly sets up the pty before spawning
    the script under test.
    
    On investigation I discovered that the test runner hung when it tried
    to close the slave pty's file descriptor, probably due to a bug in
    AIX's pty implementation. I could reproduce it with a short C program.
    The test runner also leaked file descriptors to the child process.
    
    I couldn't convince python's `subprocess.Popen()` to do what I wanted
    it to do so I opted to move the logic to a helper script that can do
    fork/setsid/etc. without having to worry about stomping on state in
    tools/test.py.
    
    In the process I also uncovered some bugs in the pty module of the
    python distro that ships with macOS 10.14, leading me to reimplement
    a sizable chunk of the functionality of that module.
    
    And last but not least, of course there are differences between ptys
    on different platforms and the helper script has to paper over that.
    Of course.
    
    Really, this commit took me longer to put together than I care to admit.
    
    Caveat emptor: this commit takes the hacky ^D feeding to the slave out
    of tools/test.py and puts it in the *.in input files. You can also feed
    other control characters to tests, like ^C or ^Z, simply by inserting
    them into the corresponding input file. I think that's nice.
    
    Fixes: nodejs/build#1820
    Fixes: #28489
    
    PR-URL: #28600
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bnoordhuis authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    5bed327 View commit details
    Browse the repository at this point in the history
  12. stream: simplify .pipe() and .unpipe() in Readable

    Now we are using `pipes` and `pipesCount` in Readable state and the
    `pipes` value can be a stream or an array of streams. This change
    reducing them into one `pipes` value, which is an array of streams.
    
    PR-URL: #28583
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    starkwang authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    824dc57 View commit details
    Browse the repository at this point in the history
  13. src: lint #defines in src/node.h

    A few #defines in src/node.h had inconsistent spacing
    and tabbing. This commit changes the spacing to be
    the same style as the rest of the project.
    
    PR-URL: #28547
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    srcmake authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    d0e3801 View commit details
    Browse the repository at this point in the history
  14. build: remove broken intel vtune support

    Support for VTune profiling was added in commit a881b53 from November
    2015 but has since bitrotted. Remove it.
    
    Fixes: #28310
    Refs: #3785
    
    PR-URL: #28522
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    bnoordhuis authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    88bac02 View commit details
    Browse the repository at this point in the history
  15. src: add missing option parser template for the DebugOptionsParser

    This allows embedders to run `node::options_parser::Parse` for a
    `node::DebugOptions`.
    
    PR-URL: #28543
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    MarshallOfSound authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    056b0bd View commit details
    Browse the repository at this point in the history
  16. test: increase limit for network space overhead test

    This test imposes a limit on the average bytes of space per chunk
    for network traffic. However this number depends on VM
    implementation details, and upcoming changes to V8's
    array buffer management require a small bump to this
    limit in this test.
    
    PR-URL: #28492
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Ben L. Titzer authored and addaleax committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    2550ddb View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2019

  1. http: fix test where aborted should not be emitted

    PR-URL: #20077
    Fixes: #20107
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and Trott committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    461bf36 View commit details
    Browse the repository at this point in the history
  2. stream: use readableEncoding public api for child_process

    PR-URL: #28548
    Refs: #445
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ZYSzys authored and Trott committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    6c430b4 View commit details
    Browse the repository at this point in the history
  3. doc: add documentation for createDiffieHellmanGroup

    PR-URL: #28585
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Ojasvi Monga authored and Trott committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    11c52d9 View commit details
    Browse the repository at this point in the history
  4. 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
    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 joaocgreis committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    e984917 View commit details
    Browse the repository at this point in the history
  5. deps: cherry-pick 721dc7d from node-gyp upstream

    This change cherry-picks a small set of node-gyp v5.0.0 changes needed
    to enable Node.js ARM64 Windows builds.
    
    Original commit message:
      Add ARM64 to MSBuild /Platform logic
    
      PR-URL: nodejs/node-gyp#1655
      Reviewed-By: Ben Noordhuis <[email protected]>
      Reviewed-By: João Reis <[email protected]>
    
    Refs: nodejs/node-gyp@721dc7d
    PR-URL: #28604
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    jkunkee authored and joaocgreis committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    d53144e View commit details
    Browse the repository at this point in the history
  6. deps: cherry-pick 91744bf from node-gyp upstream

    This change cherry-picks a small set of node-gyp v5.0.0 changes needed
    to enable Node.js ARM64 Windows builds.
    
    Original commit message:
      gyp: add support for Windows on Arm
    
      Cherry-pick of refack/GYP3#33, supersedes
      nodejs/node-gyp#1678 until GYP3 is merged.
    
      `npm test` passes
    
      Change-Id: I2b1e1e03e378b4812d34afa527087793864d1576
    
      PR-URL: nodejs/node-gyp#1739
      Reviewed-By: Refael Ackermann <[email protected]>
      Reviewed-By: João Reis <[email protected]>
    
    Refs: nodejs/node-gyp@91744bf
    PR-URL: #28604
    Reviewed-By: Christian Clauss <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    jkunkee authored and joaocgreis committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    c3caf21 View commit details
    Browse the repository at this point in the history
  7. Revert "http: fix test where aborted should not be emitted"

    This reverts commit 461bf36.
    
    PR-URL: #28699
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Trott committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    0796f0e View commit details
    Browse the repository at this point in the history
  8. doc: small grammar correction

    This commit improves the grammar of one sentence in the ESM
    documentation.
    
    PR-URL: #28669
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    440a344 View commit details
    Browse the repository at this point in the history
  9. inspector: do not change async call stack depth if the worker is done

    Fixes: #28528
    PR-URL: #28613
    Reviewed-By: Aleksei Koziatinskii <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    eugeneo committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    7e543bb View commit details
    Browse the repository at this point in the history
  10. doc: add missing version metadata for Readable.from

    Fixes: #28693
    
    PR-URL: #28695
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    addaleax committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    ef57911 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2019

  1. doc: update js-native-api example

    Update example that shows how to separate N-API code which is not
    Node.js-specific from code which defines a Node.js N-API addon. In its
    existing state the example uses the pattern
    
    ```C
    assert(napi_*() == napi_ok);
    ```
    
    However, this would result in no N-API calls when building with
    `-DNDEBUG`.
    
    This change moves away from assert and uses a macro `NAPI_CALL()` which
    throws the string corresponding to the non-`napi_ok` status as a JS
    exception and short-circuits the binding by returning `NULL`.
    
    PR-URL: #28657
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Gabriel Schulhof authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    8cb4ba9 View commit details
    Browse the repository at this point in the history
  2. doc: fix minor typo

    PR-URL: #28148
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    shajanjp authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    87d0d8c View commit details
    Browse the repository at this point in the history
  3. deps: V8: backport 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
    
    PR-URL: #28648
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    2a15037 View commit details
    Browse the repository at this point in the history
  4. src: large pages option: FreeBSD support proposal

    Enabling on amd64 and as Linux, are 2MB large.
    The ELF section linkage script is compatible only with GNU ld.
    
    PR-URL: #28331
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    devnexen authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    a1cb14a View commit details
    Browse the repository at this point in the history
  5. module: increase code coverage of cjs loader

    Add test cases to cover uncovered wrap and wrapper getters.
    
    Refs: https://coverage.nodejs.org/coverage-99268b1e996d13a0/lib/internal/modules/cjs/loader.js.html#L153
    
    PR-URL: #27898
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    melikhov-dev authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    6ef4d9e View commit details
    Browse the repository at this point in the history
  6. test: use openssl_is_fips instead of hasFipsCrypto

    Currently, when dynamically linking against a FIPS enabled OpenSSL
    library test-process-env-allowed-flags-are-documented will fail with
    the following error:
    assert.js:89
    throw new AssertionError(obj);
    ^
    
    AssertionError [ERR_ASSERTION]:
    The following options are not documented as allowed in NODE_OPTIONS in
    /root/node/doc/api/cli.md: --enable-fips --force-fips
    at Object.<anonymous>
    (/test/parallel/test-process-env-allowed-flags-are-documented.js:82:8)
    at Module._compile (internal/modules/cjs/loader.js:779:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:790:10)
    at Module.load (internal/modules/cjs/loader.js:642:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:842:10)
    at internal/main/run_main_module.js:17:11 {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: 2,
    expected: 0,
    operator: 'strictEqual'
    }
    
    This commit updates the test to use
    process.config.variables.openssl_is_fips instead of common.hasFipsCrypto
    as hasFipsCrypto only returns true if the OpenSSL library that is
    shipped with node was configured with FIPS enabled.
    
    PR-URL: #28507
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    danbev authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    458eee4 View commit details
    Browse the repository at this point in the history
  7. test: update hasFipsCrypto in test/common/README

    PR-URL: #28507
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    danbev authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    2111207 View commit details
    Browse the repository at this point in the history
  8. http: expose headers on an http.ClientRequest "information" event

    1xx intermediate status responses are allowed to have headers; so
    expose the "httpVersion", "httpVersionMajor", "httpVersionMinor",
    "headers", "rawHeaders", and "statusMessage" properties on this
    event.
    
    PR-URL: #28459
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    awwright authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    d5737a8 View commit details
    Browse the repository at this point in the history
  9. readline: expose stream API in clearLine()

    This commit adds an optional callback to clearLine(), which
    is passed to the stream's write() method. It also exposes the
    return value of write().
    
    PR-URL: #28674
    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]>
    cjihrig committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    79cc8bb View commit details
    Browse the repository at this point in the history
  10. readline: expose stream API in moveCursor()

    This commit adds an optional callback to moveCursor(), which is
    passed to the stream's write() method. It also exposes the
    return value of write().
    
    PR-URL: #28674
    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]>
    cjihrig committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    795c748 View commit details
    Browse the repository at this point in the history
  11. readline: expose stream API in cursorTo()

    This commit adds an optional callback to cursorTo(), which is
    passed to the stream's write() method. It also exposes the
    return value of write().
    
    PR-URL: #28674
    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]>
    cjihrig committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    462f438 View commit details
    Browse the repository at this point in the history
  12. http: add response.writableFinished

    response.writableFinished is true if all data has been flushed to the
    underlying system.
    
    PR-URL: #28681
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    7032e59 View commit details
    Browse the repository at this point in the history
  13. gyp: cherrypick more Python3 changes from node-gyp

    PR-URL: #28563
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cclauss authored and Trott committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    54fcb14 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2019

  1. n-api: correct bug in napi_get_last_error

    napi_get_last_error returns incorrect napi_status.
    
    PR-URL: #28702
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gabriel Schulhof <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Octavian Soldea authored and Gabriel Schulhof committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    da69f56 View commit details
    Browse the repository at this point in the history
  2. build: specify Python version once for all tests

    Extracted from #28537 for shorter review cycle.  This makes it easier to
    experiment with new versions of Python as they become available on the
    Travis CI platform.
    
    PR-URL: #28694
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    cclauss authored and Trott committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    19618bd View commit details
    Browse the repository at this point in the history
  3. test: improve variable names in pty_helper.py

    Using names like `parent_fd` and `child_fd` is more accurate here,
    and doesn’t come with unnecessary negative connotations, even if
    the previous naming is somewhat common terminology here.
    
    PR-URL: #28688
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    addaleax authored and Trott committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    971915e View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. test: fix race condition in test-worker-process-cwd.js

    This simplifies the test logic and fixes the race condition that
    could happen right now.
    
    PR-URL: #28609
    Refs: #28193
    Closes: #28477
    Fixes: #27669
    Fixes: #28477
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    BridgeAR authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    195239a View commit details
    Browse the repository at this point in the history
  2. test: make repl tests more resilient

    This refactors two tests to ignore line numbers in stack traces. That
    way changed line numbers do not have any impact on the test outcome
    anymore.
    
    PR-URL: #28608
    Fixes: #28546
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Lance Ball <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    BridgeAR authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    f938858 View commit details
    Browse the repository at this point in the history
  3. repl: fix autocomplete while using .load

    This makes sure that complete functions work as expected after using
    the REPL's `.load` command.
    
    It also fixes the corresponding test. So far the assertion where
    swallowed and the test passed even though it should not have.
    
    Fixes: #28546
    PR-URL: #28608
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Lance Ball <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    BridgeAR authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    6874aa1 View commit details
    Browse the repository at this point in the history
  4. repl: fix some repl context issues

    This partially fixes contexts like `{} instanceof Object === false`
    in the REPL. This does not fix all cases, since it's something
    fundamental from the REPL's design that things like these can happen.
    
    Refs: #27859
    
    PR-URL: #28561
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    BridgeAR authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    7e977d7 View commit details
    Browse the repository at this point in the history
  5. doc: add examples at assert.strictEqual

    PR-URL: #28092
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    himself65 authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    3ad8799 View commit details
    Browse the repository at this point in the history
  6. doc: improve os.homedir() docs

    PR-URL: #28401
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    juanarbol authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    d1bb21f View commit details
    Browse the repository at this point in the history
  7. doc: add example for zlib.createGzip()

    PR-URL: #28136
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    RamirezAlex authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    57ed7c3 View commit details
    Browse the repository at this point in the history
  8. doc: add example for beforeExit event

    PR-URL: #28430
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Vickodev authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    ed24b8f View commit details
    Browse the repository at this point in the history
  9. test: use consistent test naming

    To conform with other test names, move
    test/async-hooks/test-httparser-reuse.js to
    test/async-hooks/test-httpparser-reuse.js.
    
    PR-URL: #28744
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    3b063dc View commit details
    Browse the repository at this point in the history
  10. test: propagate napi_status to JS

    Re: #27945 (comment)
    
    This commit regards reporting to the JS level an actual event
    that happens when using suspected improper null arguments. It is better
    to report the exact reason from N-API to the JS level.
    
    PR-URL: #28505
    Reviewed-By: Gabriel Schulhof <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Octavian Soldea authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    3da44b0 View commit details
    Browse the repository at this point in the history
  11. tty: expose stream API from readline methods

    This commit exposes the return value and callback of the
    underlying readline APIs from the tty module.
    
    PR-URL: #28721
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    d089477 View commit details
    Browse the repository at this point in the history
  12. test,win: cleanup exec-timeout processes

    When CMD is used to launch a process and CMD is killed too quickly,
    the process can stay behind running in suspended state, never
    completing. This only happens in Windows Server 2008R2.
    
    Refs: nodejs/build#1829
    
    PR-URL: #28723
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    9b77225 View commit details
    Browse the repository at this point in the history
  13. esm: implement "pkg-exports" proposal

    Refs: jkrems/proposal-pkg-exports#36
    
    PR-URL: #28568
    Reviewed-By: Anna Henningsen <[email protected]>
    guybedford authored and jkrems committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    6df7b6a View commit details
    Browse the repository at this point in the history
  14. deps: upgrade npm to 6.10.0

    PR-URL: #28525
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    isaacs authored and Trott committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    1721034 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2019

  1. http: avoid extra listener

    PR-URL: #28705
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    ronag authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    2fd2dd7 View commit details
    Browse the repository at this point in the history
  2. vm: remove usage of public util module

    PR-URL: #28460
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    baekrxnn authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    a34cb28 View commit details
    Browse the repository at this point in the history
  3. zlib: remove usage of public util module

    PR-URL: #28454
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    baekrxnn authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    6aa6716 View commit details
    Browse the repository at this point in the history
  4. build: fix building with d8

    PR-URL: #28733
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    targos authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    21ec137 View commit details
    Browse the repository at this point in the history
  5. test: changed function to arrow function

    Convert callback functions that are anonymous
    to arrow functions for better readability.
    Also adjusted the `this` object in places
    where that was required.
    
    PR-URL: #28726
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    HarshithaKP authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    19b2198 View commit details
    Browse the repository at this point in the history
  6. build: update of the large page option error

    Now large pages is also supported by FreeBSD.
    
    PR-URL: #28729
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    devnexen authored and Trott committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    15d44bf View commit details
    Browse the repository at this point in the history
  7. 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
    
    PR-URL: #28671
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    devsnek committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    b7bcfc9 View commit details
    Browse the repository at this point in the history
  8. vm: fix gc bug with modules and compiled functions

    PR-URL: #28671
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    devsnek committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    68c83f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2019

  1. build: skip test-ci doc targets if no crypto

    PR-URL: #28747
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    rvagg authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    9039af8 View commit details
    Browse the repository at this point in the history
  2. lib: rename lib/internal/readline.js

    This commit moves lib/internal/readline.js to
    lib/internal/readline/utils.js. This is in preparation of
    adding a readline.promises implementation.
    
    PR-URL: #28753
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Shingo Inoue <[email protected]>
    cjihrig authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    f9c267e View commit details
    Browse the repository at this point in the history
  3. doc: amplify warning for execute callback

    Add specific recommendation not to use the
    to the napi-env parameter in napi_async_execute_callback
    
    PR-URL: #28738
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mhdawson authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    6c07523 View commit details
    Browse the repository at this point in the history
  4. doc: add information for heap snapshot flag

    It's nice to have usage examples, especially since the flag requires the
    `SIG` version of the signal name, unlike `kill`.
    
    PR-URL: #28754
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tstirrat15 authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    4fbefc4 View commit details
    Browse the repository at this point in the history
  5. doc: add code example to subprocess.stdout

    PR-URL: #28402
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    juanarbol authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    0df3ea0 View commit details
    Browse the repository at this point in the history
  6. policy: add policy-integrity to mitigate policy tampering

    PR-URL: #28734
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bmeck authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    6c288a7 View commit details
    Browse the repository at this point in the history
  7. inspector: do not spin-wait while waiting for the initial connection

    Fixes: #28741
    
    PR-URL: #28756
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Aleksei Koziatinskii <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    eugeneo authored and Trott committed Jul 20, 2019
    Configuration menu
    Copy the full SHA
    49144ab View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2019

  1. src: add public virtual destructor for KVStore

    As KVStore has derived classes, it is essential to
    declare a public virtual destructor in the base
    KVStore class. Otherwise, deleting derived class
    instances using base class pointers would
    potentially cause undefined behaviour.
    
    Additionally, since we are implementing a non-default
    destructor, the special member functions have also
    been implemented in order to abide by the rule of five.
    
    PR-URL: #28737
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    GauthamBanasandra authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    7a1f33c View commit details
    Browse the repository at this point in the history
  2. http2: compat req.complete

    PR-URL: #28627
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ronag authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    b30dca8 View commit details
    Browse the repository at this point in the history
  3. inspector: add inspector.waitForDebugger()

    This method blocks current node process until a client sends
    Runtime.runifWaitingForDebugger.
    
    It can be useful when we need to report inspector.url() before
    waiting for connection:
    ```
    inspector.open(0, undefined, false);
    fs.writeFileSync(someFileName, inspector.url());
    inspector.waitForDebugger();
    ```
    
    PR-URL: #28453
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    alexkozy authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    f02dfdb View commit details
    Browse the repository at this point in the history
  4. stream: add null push transform in async_iterator

    when the readable side of a transform ends any for await
    loop on that transform stream should also complete. This
    fix prevents for await loop on a transform stream
    from hanging indefinitely.
    
    PR-URL: #28566
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    David Mark Clements authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    3499741 View commit details
    Browse the repository at this point in the history
  5. test: fix assertion argument order in test-esm-namespace

    PR-URL: #28474
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    RamirezAlex authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    6948a95 View commit details
    Browse the repository at this point in the history
  6. src: expose TraceEventHelper with NODE_EXTERN

    As node requires a tracing controller to be initialized embedders need
    access to the TraceEventHelper so that we can actually set the tracing
    controller.
    
    Refs: https://github.com/electron/electron/commit/0e5b6f93000e4718c9e35332ddbd0f6b76cdd585/#diff-89b287b2edd0a02dddae60cb26157f47
    
    PR-URL: #28724
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    MarshallOfSound authored and Trott committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    8b344ae View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2019

  1. deps: update nghttp2 to 1.39.1

    PR-URL: #28448
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    gengjiawen authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    447947a View commit details
    Browse the repository at this point in the history
  2. doc: claim NODE_MODULE_VERSION=75 for Electron 7

    PR-URL: #28774
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    MarshallOfSound authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    b686bd7 View commit details
    Browse the repository at this point in the history
  3. src: silence compiler warning

    This commit fixes the following warning:
    
    warning: missing field 'exports' initializer
    
    PR-URL: #28764
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    cjihrig committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    65c2b2c View commit details
    Browse the repository at this point in the history
  4. doc: update env default on child_process functions

    PR-URL: #28776
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    h3knix authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    3293559 View commit details
    Browse the repository at this point in the history
  5. tools: remove unused pkgsrc directory

    The pkgsrc Makefile target was removed in 2015
    
    Refs: #1938
    
    PR-URL: #28783
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    targos authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    3117899 View commit details
    Browse the repository at this point in the history
  6. src: make CompiledFnEntry a BaseObject

    In particular:
    
    - Move the class definition to the relevant header file,
      i.e. `node_contextify.h`.
    - Make sure that class instances are destroyed on
      `Environment` teardown.
    - Make instances of the key object traceable in heap dumps. This is
      particularly relevant here because our C++ script → map key mapping
      could introduce memory leaks when the import function metadata refers
      back to the script in some way.
    
    Refs: #28671
    
    PR-URL: #28782
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    89e4b36 View commit details
    Browse the repository at this point in the history
  7. src: do not include partial AsyncWrap instances in heap dump

    Heap dumps can be taken either through the inspector or the public API
    for it during an async_hooks init() hook, but at that point the
    AsyncWrap in question is not done initializing yet and virtual methods
    cannot be called on it.
    
    Address this issue (somewhat hackily) by excluding `AsyncWrap`
    instances which have not yet executed their `init()` hook fully
    from heap dumps.
    
    Fixes: #28786
    
    PR-URL: #28789
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax authored and Trott committed Jul 22, 2019
    Configuration menu
    Copy the full SHA
    9949fbd View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. tools: update ESLint to 6.1.0

    Update ESLint to 6.1.0
    
    PR-URL: #28793
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    cjihrig authored and Trott committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    e5736d8 View commit details
    Browse the repository at this point in the history
  2. dns: fix unsigned record values

    Fixes: #28790
    
    PR-URL: #28792
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    mscdex authored and Trott committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    03317f0 View commit details
    Browse the repository at this point in the history
  3. deps: float 15d7e79 from openssl

    The upstream commit fixes an incorrect initialization of memory in
    rand_lib.c. This fixes all errors that are reported by valgrind during
    startup.
    
    Origin: openssl/openssl@15d7e7997e219fc
    
    PR-URL: #28796
    Fixes: #28739
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    tniessen committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    4daf153 View commit details
    Browse the repository at this point in the history
  4. src: fix type name in comment

    The comment refers to an exception type that JS land throws on the C++
    code's behalf but apparently I changed the JS name before landing the
    pull request and forgot to update the comment.
    
    Refs: #20816
    
    PR-URL: #28320
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    bnoordhuis authored and Trott committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    35788c8 View commit details
    Browse the repository at this point in the history
  5. 2019-07-23, Version 12.7.0 (Current)

    Notable changes:
    
    * deps:
      * Updated nghttp2 to 1.39.1. #28448
      * Updated npm to 6.10.0. #28525
    * esm:
      * Implemented experimental "pkg-exports" proposal. A new `"exports"`
        field can be added to a module's `package.json` file to provide
        custom subpath aliasing. See
        https://github.com/jkrems/proposal-pkg-exports/ for more
        information. #28568
    * http:
      * Added `response.writableFinished`.
        #28681
      * Exposed `headers`, `rawHeaders` and other fields on an
        `http.ClientRequest` `"information"` event.
        #28459
    * inspector:
      * Added `inspector.waitForDebugger()`.
        #28453
    * policy:
      * Added `--policy-integrity=sri` CLI option to mitigate policy
        tampering. If a policy integrity is specified and the policy does
        not have that integrity, Node.js will error prior to running any
        code. #28734
    * readline,tty:
      * Exposed stream API from various methods which write characters.
        #28674
        #28721
    * src:
      * Use cgroups to get memory limits. This improves the way we set
        the memory ceiling for a Node.js process. Previously we would use
        the physical memory size to estimate the necessary V8
        heap sizes. The physical memory size is not necessarily the correct
        limit, e.g. if the process is running inside a docker container or
        is otherwise constrained. This change adds the ability to get a
        memory limit set by linux cgroups, which is used by docker
        containers to set resource constraints.
        https://docs.docker.com/config/containers/resource_constraints/
        #27508
    
    PR-URL: #28817
    targos committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    52c5287 View commit details
    Browse the repository at this point in the history
  6. lib: support min/max values in validateInteger()

    This commit updates validateInteger() in two ways:
    
    - Number.isInteger() is used instead of Number.isSafeInteger().
      This ensures that all integer values are supported.
    - Minimum and maximum values are supported. They default to
      the min and max safe integer values, but can be customized.
    
    PR-URL: #28810
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig authored and Trott committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    4fc7cd9 View commit details
    Browse the repository at this point in the history
  7. module: implement "exports" proposal for CommonJS

    Refs: jkrems/proposal-pkg-exports#36
    Refs: #28568
    
    PR-URL: #28759
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: Bradley Farias <[email protected]>
    jkrems committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    dcb6929 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2019

  1. doc: api/stream.md typo from writeable to writable

    PR-URL: #28822
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    imcotton authored and trivikr committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    bd3b85b View commit details
    Browse the repository at this point in the history
  2. crypto: increase maxmem range from 32 to 53 bits

    Fixes: #28755
    
    PR-URL: #28799
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    tniessen authored and Trott committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    1dc458c View commit details
    Browse the repository at this point in the history
  3. tools: update certdata.txt

    This is the certdata.txt[0] from NSS 3.45, released on 2019-07-05.
    
    This is the version of NSS that will ship in Firefox 69 on
    2019-09-03.
    
    [0] https://hg.mozilla.org/projects/nss/raw-file/NSS_3_45_RTM/lib/ckfw/builtins/certdata.txt
    
    PR-URL: #28808
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    sam-github committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    b87d418 View commit details
    Browse the repository at this point in the history
  4. crypto: update root certificates

    Update the list of root certificates in src/node_root_certs.h with
    tools/mk-ca-bundle.pl.
    
    Certificates added: (none)
    
    Certificates removed:
    - Certinomis - Root CA
    
    PR-URL: #28808
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    sam-github committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    748000e View commit details
    Browse the repository at this point in the history
  5. doc: fix type in NSS update instructions

    The perl script must be fully named, correct so that the command can be
    copy-pasted-run from the docs.
    
    PR-URL: #28808
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    sam-github committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    c5befe3 View commit details
    Browse the repository at this point in the history
  6. build: uname -m is amd64 on freebsd, not x86_64

    Fixes: #13150
    
    PR-URL: #28804
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bnoordhuis authored and Trott committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    30666ed View commit details
    Browse the repository at this point in the history
  7. src : elevate v8 namespaces

    Leverage `using` semantics for repeated usage of
    v8 artifacts.
    
    PR-URL: #28801
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    HarshithaKP authored and Trott committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    10dd101 View commit details
    Browse the repository at this point in the history
  8. doc: add documentation for response.flushHeaders()

    PR-URL: #28807
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lpinca authored and Trott committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    0d32b9d View commit details
    Browse the repository at this point in the history
  9. doc: claim NODE_MODULE_VERSION=76 for Electron 8

    PR-URL: #28809
    Refs: https://github.com/electron/electron/projects/20#card-24099810
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    MarshallOfSound authored and Trott committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    657a78e View commit details
    Browse the repository at this point in the history
  10. deps: backport b107214 from upstream V8

    Original commit message:
    
        [code-serializer] Handlify in CodeSerializer::Deserialize
    
        This section potentially contains allocations and thus gc, all object
        references should be handlified.
    
        Bug: v8:9333
        Change-Id: I5814e66e8b9b75a8bd952afecae7a3a27b42a642
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1647695
        Auto-Submit: Jakob Gruber <[email protected]>
        Commit-Queue: Simon Zünd <[email protected]>
        Reviewed-by: Simon Zünd <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#62012}
    
    (This required resolution of a few merge conflicts, so it’s essentially
    a manual backport.)
    
    Refs: v8/v8@b107214
    Refs: #28847
    
    PR-URL: #28850
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    addaleax committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    49eb2b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2019

  1. domain: use strong reference to domain while active

    When an uncaught exception is thrown inside a domain, the domain is
    removed from the stack as of 43a5170.
    This means that it might not be kept alive as an object anymore,
    and may be garbage collected before the `after()` hook can run,
    which tries to exit it as well.
    
    Resolve that by making references to the domain strong while it is
    active.
    
    Fixes: #28275
    
    PR-URL: #28313
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Vladimir de Turckheim <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax authored and Trott committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    43e5478 View commit details
    Browse the repository at this point in the history
  2. build: re-enable openssl arm for arm64

    In #23913 it looked like arm64 testing was flaky, and as a result a
    number of changes were made including disabling openssl asm for that
    architecture.
    
    This PR is limited to re-enabling the one change to turn on openssl asm
    for arm64, in the hopes that either it works now, or that this specific
    change introduces a reproducible condition.
    
    See: #23913
    
    PR-URL: #28180
    Reviewed-By: Rod Vagg <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vielmetti authored and sam-github committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    16f673e View commit details
    Browse the repository at this point in the history
  3. doc: describe why new Buffer() is problematic

    Existing docs weren't clear on the actual problem. In addition, the text
    described 8.0.0 as being a future Node.js release, so adjust language
    to reflect that 8.0.0 is in the past (while not losing important
    information about what the pre-8.x behaviour was).
    
    PR-URL: #28825
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    sam-github committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    e9ea8ea View commit details
    Browse the repository at this point in the history
  4. n-api: add APIs for per-instance state management

    Adds `napi_set_instance_data()` and `napi_get_instance_data()`, which
    allow native addons to store their data on and retrieve their data from
    `napi_env`. `napi_set_instance_data()` accepts a finalizer which is
    called when the `node::Environment()` is destroyed.
    
    This entails rendering the `napi_env` local to each add-on.
    
    Fixes: nodejs/abi-stable-node#378
    PR-URL: #28682
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    5030e81 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2019

  1. doc: fix incorrect name in report docs

    In diagnostic reports, the CPUs are listed in a "cpus" field.
    This commit fixes the docs, which refer to the field as "osCpus"
    
    PR-URL: #28830
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    306d240 View commit details
    Browse the repository at this point in the history
  2. report: loop over uv_cpu_info() results

    The code currently loops over the results, but only the
    first result is accessed.
    
    PR-URL: #28829
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    48e13d2 View commit details
    Browse the repository at this point in the history
  3. assert: avoid potentially misleading reference to object identity

    Often, the word “identical” when referring to JS objects will
    be read as referring to having the same object identity (which is
    called “reference equality” here), but what the error message is
    trying to say here is that the objects are different but yield the
    same `util.inspect()` output.
    
    Since `util.inspect()` output represents the structure rather than
    the identity of objects, (hopefully) clarify the error message to
    reflect that.
    
    PR-URL: #28824
    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: Ruben Bridgewater <[email protected]>
    addaleax authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    64e4b0c View commit details
    Browse the repository at this point in the history
  4. crypto: add outputLength option to crypto.createHash

    This change adds an outputLength option to crypto.createHash which
    allows users to produce variable-length hash values using XOF hash
    functons.
    
    Fixes: #28757
    PR-URL: #28805
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    tniessen authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    31d9b2f View commit details
    Browse the repository at this point in the history
  5. crypto: fix handling of malicious getters (scrypt)

    It is possible to bypass parameter validation in crypto.scrypt and
    crypto.scryptSync by crafting option objects with malicious getters as
    demonstrated in the regression test. After bypassing validation, any
    value can be passed to the C++ layer, causing an assertion to crash
    the process.
    
    Fixes: #28836
    
    PR-URL: #28838
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    499533f View commit details
    Browse the repository at this point in the history
  6. policy: add dependencies map for resources

    Adds a "dependencies" field to resources in policy manifest files.
    In order to ease development and testing while using manifests,
    wildcard values for both "dependencies" and "integrity" have been
    added using the boolean value "true" in the policy manifest.
    
    PR-URL: #28767
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bmeck committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    7e8ad9b View commit details
    Browse the repository at this point in the history
  7. doc: add documentation for stream.destroyed

    PR-URL: #28815
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and Trott committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    70bb570 View commit details
    Browse the repository at this point in the history
  8. n-api: refactor a previous commit

    This is a refactoring of #27628
    following #28505.
    
    This change factors out functions `add_last_status()` and
    `add_returned_status()` so they may be reused in the tests for passing
    information about the last error status and/or a returned `napi_status`
    to JavaScript.
    
    PR-URL: #28848
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gabriel Schulhof <[email protected]>
    Octavian Soldea authored and Gabriel Schulhof committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    db1c4a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2019

  1. stream: resolve perf regression introduced by V8 7.3

    This commit contains two fixes:
    1. use instanceof instead of Object.getPrototypeOf, as checking an
       object prototype with Object.getPrototypeOf is slower
       than an instanceof check.
    2. avoid parseInt(undefined, 10) to get NaN as it regressed.
    
    PR-URL: #28842
    Fixes: #28586
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mcollina authored and Trott committed Jul 27, 2019
    Configuration menu
    Copy the full SHA
    147b9d9 View commit details
    Browse the repository at this point in the history
  2. build,tools: support building with Visual Studio 2019

    Add a `vs2019` option to `vcbuild.bat` to use VS 2019 instead of VS 2017
    
    PR-URL: #28781
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]>
    targos committed Jul 27, 2019
    Configuration menu
    Copy the full SHA
    4e2d1a1 View commit details
    Browse the repository at this point in the history
  3. test: specialize OOM check for AIX

    Assumption that if memory can be malloc()ed it can be used is not true
    on AIX. Later access of the allocated pages can trigger SIGKILL if there
    are insufficient VM pages.
    
    Use psdanger() to better estimate available memory.
    
    Fixes: nodejs/build#1849
    
    More info:
    - https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/generalprogramming/sys_mem_alloc.html
    - https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/p_bostechref/psdanger.html
    
    Related to:
    - nodejs/build#1820 (comment)
    - #28469
    - #28516
    
    PR-URL: #28857
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    sam-github authored and Trott committed Jul 27, 2019
    Configuration menu
    Copy the full SHA
    41fa553 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2019

  1. src: move relative uptime init

    PR-URL: #28849
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Micha Hanselmann authored and Trott committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    35cb955 View commit details
    Browse the repository at this point in the history
  2. http: reset parser.incoming when server response is finished

    This resolves a memory leak for keep-alive connections with a naïve
    approach.
    
    Fixes: #9668
    
    PR-URL: #28646
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    779a05d View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2019

  1. deps: remove backup files

    PR-URL: #28865
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    AdamMajer authored and Trott committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    ddf7e2a View commit details
    Browse the repository at this point in the history
  2. build: ignore backup files

    Prevent backup files from being accidentally automatically added
    to the index.
    
    PR-URL: #28865
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    AdamMajer authored and Trott committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    62a809f View commit details
    Browse the repository at this point in the history
  3. crypto: add null check to outputLength logic

    The Hash constructor's outputLength logic checks if the options
    input is an object, but doesn't check for null objects. This
    commit adds that check.
    
    PR-URL: #28864
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    cjihrig committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    92ca2c2 View commit details
    Browse the repository at this point in the history
  4. test,report: relax CPU match requirements

    Some CPUs have variable speeds, and so exact matches between what
    `os.cpus()` and the report feature yield cannot always be expected:
    
    ```
    >const results = []
    >setInterval(() => results.push(os.cpus().map(({ speed }) => speed)), 1)
    [...]
    >results
    [
      [ 1198, 1150, 1195, 1149 ],
      [ 1198, 1150, 1195, 1149 ],
      [ 1198, 1150, 1195, 1149 ],
      [ 1198, 1150, 1195, 1149 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2401, 2420, 2429, 2413 ],
      [ 2596, 2401, 2699, 2555 ],
    [...]
    ```
    
    Refs: #28829
    
    PR-URL: #28884
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    addaleax authored and Trott committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    98d8ed6 View commit details
    Browse the repository at this point in the history
  5. test, util: refactor isObject in test-util

    refactor the test for isObject function including falsy values,
    the use of strictEquals and the format actual, expected
    
    PR-URL: #28878
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    RamirezAlex authored and Trott committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    2713f78 View commit details
    Browse the repository at this point in the history
  6. doc: correct import statement

    JSON file can be imported now
    
    PR-URL: #28876
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    himself65 authored and Trott committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    8a10b50 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2019

  1. doc: fixup esm resolver spec formatting

    PR-URL: #28885
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    guybedford committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    816db9e View commit details
    Browse the repository at this point in the history
  2. src: read break_node_first_line from the inspect options

    There are cases where the debug_options() on the env are
    different to the options that were passed into inspector::Agent.
    
    PR-URL: #28034
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    MarshallOfSound authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    4208158 View commit details
    Browse the repository at this point in the history
  3. test: improve test-async-hooks-http-parser-destroy

    Improve asserts to distinguish between reequest and response parsers.
    
    Change the assert sequence to first assert on the number of ids to
    easier identify if some operation is missing/incomplete.
    
    Destroy HTTP agent once expected number of events have been seen to
    avoid waiting on socket timeouts.
    
    Refs: #28112
    
    PR-URL: #28253
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Flarna authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    8007134 View commit details
    Browse the repository at this point in the history
  4. vm: increase code coverage of source_text_module.js

    PR-URL: #28350
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    kball authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    99879ca View commit details
    Browse the repository at this point in the history
  5. deps: dlloads node static linked executable

    OpenSSL dlloads itself to prevent unloading, in case it might be
    dynamically loaded. However when linked statically this will lead to
    dloading the main executable.
    
    Refs: #21848 (comment)
    PR-URL: #28045
    Fixes: #27925
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lal12 authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    1567461 View commit details
    Browse the repository at this point in the history
  6. dgram: changed 'var' to 'let' and 'const'

    PR-URL: #28357
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mgochoa authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    e5e96fb View commit details
    Browse the repository at this point in the history
  7. src: fix OpenBSD build

    PR-URL: #28384
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    devnexen authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    3a9cb5c View commit details
    Browse the repository at this point in the history
  8. http2: add constant to already destructured constants

    PR-URL: #28176
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    dnalborczyk authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    62c8c61 View commit details
    Browse the repository at this point in the history
  9. http2: destructure constants from require call

    PR-URL: #28176
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    dnalborczyk authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    b04de23 View commit details
    Browse the repository at this point in the history
  10. doc: add example of event close for child_process

    PR-URL: #28376
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ltciro authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    89344f5 View commit details
    Browse the repository at this point in the history
  11. src: readlink("/proc/self/exe") -> uv_exename()

    This commit also adds error handling. A THP-enabled build terminated
    with an out-of-memory error on a system without /proc because it cast
    the -1 from readlink() to size_t (i.e. ULONG_MAX) and then tried to
    allocate a string of that size.
    
    PR-URL: #28333
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bnoordhuis authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    54ae530 View commit details
    Browse the repository at this point in the history
  12. test: refactor test using assert instead of try/catch

    PR-URL: #28346
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    juansb827 authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    9cda6f2 View commit details
    Browse the repository at this point in the history
  13. test: udpate test comment description

    test-buffer-failed-alloc-typed-arrays.js is working fine, but the
    description was not correct.
    
    PR-URL: #28351
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Angelfire authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    3d56e89 View commit details
    Browse the repository at this point in the history
  14. benchmark: swap var for let in url benchmarks

    In benchmark url directory this changes for loops using var to let
    when it applies for consistency
    
    PR-URL: #28867
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    RamirezAlex authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    0d1b14a View commit details
    Browse the repository at this point in the history
  15. benchmark: swap var for let in util benchmarks

    In benchmark util directory this changes for loops using var to let
    when it applies for consistency
    
    PR-URL: #28867
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    RamirezAlex authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    d349ba2 View commit details
    Browse the repository at this point in the history
  16. benchmark: swap var for let in buffer benchmarks

    In benchmark buffers directory this changes for loops using var to let
    when it applies for consistency
    
    PR-URL: #28867
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    RamirezAlex authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    8be3766 View commit details
    Browse the repository at this point in the history
  17. src: export v8.GetHeapCodeAndMetadataStatistics()

    Export statistic provided by V8 through HeapCodeStatistics class and
    and GetHeapCodeAndMetadataStatistics function to v8 Node.js module
    
    PR-URL: #27978
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Yuriy Vasiyarov authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    21a7c69 View commit details
    Browse the repository at this point in the history
  18. build: do not mix spaces and tabs in Makefile

    PR-URL: #28881
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lpinca authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    ab15533 View commit details
    Browse the repository at this point in the history
  19. test: fix race in test-http2-origin

    PR-URL: #28903
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mildsunrise authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    985c5f5 View commit details
    Browse the repository at this point in the history
  20. test: fix nits in test/fixtures/tls-connect.js

    PR-URL: #28880
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    lpinca authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    834a413 View commit details
    Browse the repository at this point in the history
  21. build: generate openssl config for BSD-x86

    Add BSD-x86 to the list of arches and regenerate everything.
    
    Everything in deps/openssl/config/archs/BSD-x86 is auto-generated,
    everything else is manual edits to include the right files in the
    right places.
    
    I cheated a little: I didn't check in changes to files for other arches
    because they contained mostly churn (updated buildstamps and such.)
    
    Fixes: #20326
    
    PR-URL: #28806
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    bnoordhuis authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    4a1502b View commit details
    Browse the repository at this point in the history
  22. src: large pages fix FreeBSD fix region size

    Makes the size aligned to huge page size by
    calculating it from the aligned lower and upper
    boundary of the executable address.
    
    PR-URL: #28735
    Reviewed-By: Rod Vagg <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    devnexen authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    de88d6c View commit details
    Browse the repository at this point in the history
  23. build: remove support for s390 (but not s390x)

    Upstream V8 removed support for s390 earlier this year and it's known
    to no longer build. Remove the support from our build scripts.
    
    Fixes: #28866
    PR-URL: #28883
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    bnoordhuis authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    fd9e0f7 View commit details
    Browse the repository at this point in the history
  24. benchmark, http: refactor for code consistency

    In benchmark http directory this changes for loops using var to let
    when it applies for consistency
    
    PR-URL: #28791
    Reviewed-By: Rich Trott <[email protected]>
    RamirezAlex authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    9140f62 View commit details
    Browse the repository at this point in the history
  25. lib: replace var with let in loaders.js

    PR-URL: #28081
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    mbj36 authored and Trott committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    863402e View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2019

  1. worker: handle calling terminate when kHandler is null

    This PR makes a change to the Worker.terminate() when called if the
    kHandler is null. Before this pull request it was returning undefined,
    but the API is expecting a promise. With the changes in this PR if
    terminate is called a Promise.resolve() is returned, unless a callback
    is passed in which case the old behavior stays (returns undefined).
    
    PR-URL: #28370
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    elyalvarado authored and Trott committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    9083a67 View commit details
    Browse the repository at this point in the history
  2. doc: add example about emitter.emit in events documentation

    PR-URL: #28374
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    felipedc09 authored and Trott committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    698d479 View commit details
    Browse the repository at this point in the history
  3. test: use assert.throws() in test-require-json.js

    Use assert.throws() instead of try/catch.
    
    PR-URL: #28358
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    alejandronanez authored and Trott committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    c3b2111 View commit details
    Browse the repository at this point in the history
  4. inspector: report all workers

    Main thread (the one that WS endpoint connects to) should be able
    to report all workers.
    
    PR-URL: #28872
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    eugeneo authored and Trott committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    7435dc8 View commit details
    Browse the repository at this point in the history
  5. doc: revoke DEP0089

    Using the legacy assert module is not discouraged. Revoke
    DEP0089 to avoid user confusion.
    
    PR-URL: #28892
    Fixes: #28780
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    cjihrig committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    2abdfc5 View commit details
    Browse the repository at this point in the history
  6. 2019-07-31, Version 10.16.1 'Dubnium' (LTS)

    Notable changes:
    
    - **deps**: upgrade openssl sources to 1.1.1c (Sam Roberts) [#28212](#28212)
    - **stream**: do not unconditionally call `\_read()` on `resume()` (Anna Henningsen) [#26965](#26965)
    - **worker**: fix nullptr deref after MessagePort deser failure (Anna Henningsen) [#25076](#25076)
    
    PR-URL: #28731
    BethGriggs committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    9d37013 View commit details
    Browse the repository at this point in the history
  7. module: unify package exports test for CJS and ESM

    Refs: nodejs/modules#358
    
    PR-URL: #28831
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    jkrems authored and Trott committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    61f3a5c View commit details
    Browse the repository at this point in the history
  8. src: allow generic C++ callables in SetImmediate()

    Modify the native `SetImmediate()` functions to take generic C++
    callables as arguments. This makes passing arguments to the callback
    easier, and in particular, it allows passing `std::unique_ptr`s
    directly, which in turn makes sure that the data they point to is
    deleted if the `Environment` is torn down before the callback can run.
    
    PR-URL: #28704
    Reviewed-By: James M Snell <[email protected]>
    addaleax committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    5207dec View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2019

  1. doc: include "exports" resolver specification

    PR-URL: #28899
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    guybedford authored and Trott committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    8492acf View commit details
    Browse the repository at this point in the history
  2. n-api: refactoring napi_create_function testing

    This is a refactoring of #26998
    following #28505.
    
    The functions `add_last_status()` and `add_returned_status()` are now
    reused, see also #28848.
    
    PR-URL: #28894
    Reviewed-By: Gabriel Schulhof <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Octavian Soldea authored and Trott committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    1ee47d5 View commit details
    Browse the repository at this point in the history
  3. deps: update V8 to 7.6.303.28

    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 1, 2019
    Configuration menu
    Copy the full SHA
    2dcc366 View commit details
    Browse the repository at this point in the history
  4. build: reset embedder string to "-node.0"

    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 1, 2019
    Configuration menu
    Copy the full SHA
    66eaeac View commit details
    Browse the repository at this point in the history
  5. src: update NODE_MODULE_VERSION to 77

    Major V8 updates are usually API/ABI incompatible with previous
    versions. This commit adapts NODE_MODULE_VERSION for V8 7.6.
    
    Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    655e0dc View commit details
    Browse the repository at this point in the history
  6. deps: V8: fix filename manipulation for Windows

    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 1, 2019
    Configuration menu
    Copy the full SHA
    0e7d855 View commit details
    Browse the repository at this point in the history
  7. 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
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    95d9a37 View commit details
    Browse the repository at this point in the history
  8. deps: V8: silence irrelevant warning

    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 1, 2019
    Configuration menu
    Copy the full SHA
    87d1d96 View commit details
    Browse the repository at this point in the history
  9. deps: V8: update postmortem metadata generation script

    Update postmortem metadata constants for V8 7.6 in Node.js.
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    ba9e541 View commit details
    Browse the repository at this point in the history
  10. deps: V8: patch register-arm64.h

    Fixes a compilation issue on some platforms
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    05c27d7 View commit details
    Browse the repository at this point in the history
  11. deps: V8: forward declaration of Rtl*FunctionTable

    This should be semver-patch since actual invocation is version
    conditional.
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    90588a5 View commit details
    Browse the repository at this point in the history
  12. 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`
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    c66e87c View commit details
    Browse the repository at this point in the history
  13. deps: V8: add workaround for MSVC optimizer bug

    Refs: https://developercommunity.visualstudio.com/content/problem/512352/compiler-doesnt-finish-142027508.html
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    cd70e59 View commit details
    Browse the repository at this point in the history
  14. deps: V8: fix BUILDING_V8_SHARED issues

    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 1, 2019
    Configuration menu
    Copy the full SHA
    ba6c9f5 View commit details
    Browse the repository at this point in the history
  15. deps: V8: fix linking issue for MSVS

    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 1, 2019
    Configuration menu
    Copy the full SHA
    526c4f3 View commit details
    Browse the repository at this point in the history
  16. 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
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    4f3cfb2 View commit details
    Browse the repository at this point in the history
  17. 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
    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 1, 2019
    Configuration menu
    Copy the full SHA
    21745b5 View commit details
    Browse the repository at this point in the history
  18. 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
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    3b7c952 View commit details
    Browse the repository at this point in the history
  19. deps: V8: cherry-pick 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
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    84d3243 View commit details
    Browse the repository at this point in the history
  20. tools: sync gypfiles with V8 7.6

    Co-authored-by: Refael Ackermann (רפאל פלחי) <[email protected]>
    Co-authored-by: Ujjwal Sharma <[email protected]>
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    1dd31fe View commit details
    Browse the repository at this point in the history
  21. src: use non-deprecated overload of V8::SetFlagsFromString

    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 1, 2019
    Configuration menu
    Copy the full SHA
    94e980c View commit details
    Browse the repository at this point in the history
  22. 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
    
    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 1, 2019
    Configuration menu
    Copy the full SHA
    f53a241 View commit details
    Browse the repository at this point in the history
  23. test: refactoring test_error testing

    PR-URL: #28902
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    himself65 authored and Trott committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    b32526c View commit details
    Browse the repository at this point in the history
  24. test: refactor test-beforeexit-event-exit using mustNotCall

    PR-URL: #28901
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    himself65 authored and Trott committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    980df1c View commit details
    Browse the repository at this point in the history
  25. build: include stubs in shared library

    This is needed for external applications that link to shared libnode.
    Fixes #27431
    
    PR-URL: #28897
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    jeroen authored and Trott committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    ed138ba View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. module: exports error as MODULE_NOT_FOUND

    PR-URL: #28905
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    guybedford authored and Trott committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    452b393 View commit details
    Browse the repository at this point in the history
  2. test: add tests for spaces in folder names

    Add tests for spaces in folder names for path.win32.dirname().
    
    PR-URL: #28819
    Reviewed-By: Rich Trott <[email protected]>
    PaulBags authored and Trott committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    1ddd46f View commit details
    Browse the repository at this point in the history
  3. doc: writableFinished is true before 'finish'

    PR-URL: #28811
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and Trott committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    0897782 View commit details
    Browse the repository at this point in the history
  4. doc: remove legacy mode deprecation in assert

    The deprecation was revoked in
    #28892.
    
    PR-URL: #28909
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    36864a6 View commit details
    Browse the repository at this point in the history
  5. http2: destroy when settingsFn throws an error

    http2.connect should call destroy when init fails.
    
    PR-URL: #28908
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    himself65 authored and Trott committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    2b03e1d View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. doc: fix sorting nit in sections of http.md

    PR-URL: #28943
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and Trott committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    747ddd5 View commit details
    Browse the repository at this point in the history
  2. report: include network interfaces in report

    PR-URL: #28911
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    1592d0a View commit details
    Browse the repository at this point in the history
  3. test: refactor test-fs-stat.js

    General code cleanup.
    
    PR-URL: #28929
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    e6c2052 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2019

  1. doc: describe NODE_OPTIONS interop w/cmd line opts

    Fixes #28910
    
    PR-URL: #28928
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    reasonablytall authored and Trott committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    5eaef7b View commit details
    Browse the repository at this point in the history
  2. Revert "src: remove trace_sync_io_ from env"

    This reverts commit 7fa5f54.
    
    The reverted commit breaks the logic behind --trace-sync-io, it should
    be enabled only at a certain point in time, while that commit enables
    it from the very start, causing warnings be printed for all sync io
    instead of sync io after the first tick of the event loop as documented.
    
    Fixes: #28913
    Refs: #22726
    Refs: https://nodejs.org/api/cli.html#cli_trace_sync_io
    PR-URL: #28926
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    ChALkeR authored and Trott committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    aa252eb View commit details
    Browse the repository at this point in the history
  3. net: shallow copy option when create Server

    PR-URL: #28924
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    himself65 authored and Trott committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    d530354 View commit details
    Browse the repository at this point in the history
  4. doc: remove use of you

    We generally avoid the use of 'you'.
    
    PR-URL: #28919
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    mhdawson authored and Trott committed Aug 4, 2019
    Configuration menu
    Copy the full SHA
    e3f4ec9 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2019

  1. path: improve normalization performance

    PR-URL: #28948
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    mscdex authored and zhangyongsheng committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    37d2748 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2019

  1. deps: upgrade npm to 6.10.2

    PR-URL: #28853
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    isaacs authored and targos committed Aug 6, 2019
    Configuration menu
    Copy the full SHA
    d7d321b View commit details
    Browse the repository at this point in the history
  2. 2019-08-06, Version 12.8.0 (Current)

    Notable changes:
    
    * assert:
      * Legacy mode deprecation (`DEP0089`) is revoked (Colin Ihrig)
        #28892
    * crypto:
      * The `outputLength` option is added to `crypto.createHash`
        (Tobias Nießen) #28805
      * The `maxmem` range is increased from 32 to 53 bits (Tobias Nießen)
        #28799
    * n-api:
      * Added APIs for per-instance state management (Gabriel Schulhof)
        #28682
    * report:
      * Network interfaces get included in the report (cjihrig)
        #28911
    * src:
      * `v8.getHeapCodeStatistics()` is now exported
        (Yuriy Vasiyarov) #27978
    
    PR-URL: #29017
    BridgeAR committed Aug 6, 2019
    Configuration menu
    Copy the full SHA
    a9e7441 View commit details
    Browse the repository at this point in the history
  3. 2019-08-06, Version 10.16.2 'Dubnium' (LTS)

    Notable changes:
    
    This release patches a regression in the OpenSSL upgrade to 1.1.1c that
     causes intermittent hangs in machines that have low entropy.
    
    Refs: #28932
    
    PR-URL: #29021
    BethGriggs committed Aug 6, 2019
    Configuration menu
    Copy the full SHA
    f1478e1 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2019

  1. fs: fix (temporary) for esm package

    Fix to unblock CITGM. See,
    standard-things/esm#821.
    
    PR-URL: #28957
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    ronag authored and Trott committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    320402c 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 Trott committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    4c9fb0b 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 Trott committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    0b5b81c 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 committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    0c9ad34 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 committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    636dbfe 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 Trott committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    84a6384 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 Trott committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    c072a80 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2019

  1. 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 Trott committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    fd8d44f View commit details
    Browse the repository at this point in the history
  2. 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 Trott committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    71c28a4 View commit details
    Browse the repository at this point in the history
  3. 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 Trott committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    0e03c44 View commit details
    Browse the repository at this point in the history
  4. 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 Trott committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    44f228c View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2019

  1. 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 committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    885c644 View commit details
    Browse the repository at this point in the history
  2. 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 devsnek committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    e079f6c View commit details
    Browse the repository at this point in the history
  3. 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 devsnek committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    6c3af76 View commit details
    Browse the repository at this point in the history
  4. 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 devsnek committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    8fdd634 View commit details
    Browse the repository at this point in the history
  5. 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 Trott committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    c15b496 View commit details
    Browse the repository at this point in the history
  6. 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 Trott committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    bf692ce View commit details
    Browse the repository at this point in the history
  7. 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 committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    ef01d7c View commit details
    Browse the repository at this point in the history
  8. 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 committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    53e467d View commit details
    Browse the repository at this point in the history
  9. 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 Trott committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    c065773 View commit details
    Browse the repository at this point in the history
  10. src: add error codes to errors thrown in C++

    PR-URL: #27700
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    yanivfriedensohn authored and Trott committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    a0e2c6d View commit details
    Browse the repository at this point in the history
  11. 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 Trott committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    83495e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2019

  1. 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 Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    bd85708 View commit details
    Browse the repository at this point in the history
  2. 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 Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    c146f88 View commit details
    Browse the repository at this point in the history
  3. 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 Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    df936c5 View commit details
    Browse the repository at this point in the history
  4. test: use unique tmpdirs for each test

    Tests can leave processes running blocking the tmpdir. This does not
    yet prevent tests from doing that, but prevents failures on
    subsequent tests.
    
    PR-URL: #28858
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    d3f20a4 View commit details
    Browse the repository at this point in the history
  5. fs: close file descriptor of promisified truncate

    PR-URL: #28858
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    eadc385 View commit details
    Browse the repository at this point in the history
  6. repl: close file descriptor of history file

    PR-URL: #28858
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    3eea43a View commit details
    Browse the repository at this point in the history
  7. benchmark: use test/common/tmpdir consistently

    Many benchmarks use test/common/tmpdir. This changes 3 benchmarks that
    use NODE_TMPDIR to also use test/common/tmpdir.
    
    This is necessary in preparation for the next commit that changes tmpdir
    to delete tmpdir.path when the Node.js process exits. Thus, if multiple
    benchmarks are run sequentially, the ones that use tmpdir will remove
    the directory and the ones changed here would fail because it does not
    exist. This happens when running test/benchmark.
    
    Note: to explicitly select a directory for tmpdir, use NODE_TEST_DIR.
    
    PR-URL: #28858
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    0376b5b View commit details
    Browse the repository at this point in the history
  8. test: clean tmpdir on process exit

    PR-URL: #28858
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joaocgreis authored and Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    8ef68e6 View commit details
    Browse the repository at this point in the history
  9. 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 committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    ce7f3ed View commit details
    Browse the repository at this point in the history
  10. 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 committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    9b221e5 View commit details
    Browse the repository at this point in the history
  11. 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 Trott committed Aug 11, 2019
    Configuration menu
    Copy the full SHA
    7635b7c View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2019

  1. 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 Trott committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    15b2d13 View commit details
    Browse the repository at this point in the history
  2. module: pkg exports validations and fallbacks

    PR-URL: #28949
    Reviewed-By: Bradley Farias <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    guybedford committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    2103ae4 View commit details
    Browse the repository at this point in the history
  3. 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 committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    b4f0a18 View commit details
    Browse the repository at this point in the history
  4. 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 Trott committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    f985a25 View commit details
    Browse the repository at this point in the history
  5. 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 Trott committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    d7a4ace View commit details
    Browse the repository at this point in the history
  6. 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 Trott committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    f114e5b View commit details
    Browse the repository at this point in the history
  7. 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 Trott committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    382f84a View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2019

  1. 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 danbev committed Aug 13, 2019
    Configuration menu
    Copy the full SHA
    a49b20d View commit details
    Browse the repository at this point in the history