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

v10.4.0 proposal #21167

Merged
merged 93 commits into from
Jun 6, 2018
Merged

v10.4.0 proposal #21167

merged 93 commits into from
Jun 6, 2018

Commits on May 31, 2018

  1. test: fix worker send error

    In test-child-process-fork-closed-channel-segfault.js, race condition
    is observed between the server getting closed and the worker sending
    a message. Accommodate the potential errors.
    
    Earlier, the same race was observed between the client and server
    and was addressed through ignoring the relevant errors through error
    handler. The same mechanism is re-used for worker too.
    
    The only difference is that the filter is applied at the callback
    instead of at the worker's error listener.
    
    Refs: #3635 (comment)
    Fixes: #20836
    PR-URL: #20973
    
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    gireeshpunathil authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    edf4298 View commit details
    Browse the repository at this point in the history
  2. doc: make constants enumeration consistent

    Add missing prefix `crypto.constants.` to `RSA_PKCS1_PADDING`
    in `crypto.privateEncrypt()`, `crypto.privateDecrypt()`,
    `crypto.publicEncrypt()`, and `crypto.publicDecrypt()`.
    
    PR-URL: #20991
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    DiegoRBaquero authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    ab43581 View commit details
    Browse the repository at this point in the history
  3. src: remove unused req_wrap-inl.h

    This commit removes the inclusion of req_wrap-inl.h from
    udp_wrap.h, and tty_wrap.cc as they are not used.
    
    PR-URL: #20996
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    d4f507b View commit details
    Browse the repository at this point in the history
  4. doc: improve note on zlib APIs threadpool usage

    Raise awareness against the catastrophic memory fragmentation that can
    be created while using the asynchronous zlib APIs.
    
    PR-URL: #20380
    Refs: #8871
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    lpinca authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    8dc7c88 View commit details
    Browse the repository at this point in the history
  5. doc: add missing link for 10.3.0 changelog

    PR-URL: #21017
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    MylesBorins authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    c2ae93d View commit details
    Browse the repository at this point in the history
  6. src: remove unused private data member

    PR-URL: #20974
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    ebbd036 View commit details
    Browse the repository at this point in the history
  7. test: mark test-child-process-fork-net as flaky

    `flaky-test-child-process-fork-net` has been failing constantly for the
    past few days, and all solutions suggestes so far were didn't work.
    Marking it as faky while the issue is not fixed.
    
    Ref: #21012
    Ref: #20973
    Ref: #20973
    
    PR-URL: #21018
    Refs: #21012
    Refs: #20973
    Refs: #20973
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Matheus Marchini authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    04af697 View commit details
    Browse the repository at this point in the history
  8. fs: ensure options.flag defaults to 'r' in readFile

    When passing {} or { encoding: 'utf8' } as options to readFile, the
    flag is not defaulted to 'r' unlike normal fs. This fix makes
    fs.promises.readFile() act consistent with fs.readFile().
    
    It also fixes another issue with fs.promises.readfile() where it
    returned a Buffer instead of an empty string when encoding is provided.
    
    PR-URL: #20268
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ron Korving <ron@ronkorving.nl>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    bdistin authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    44ef458 View commit details
    Browse the repository at this point in the history
  9. test: add test for fs.promises.lchmod

    To increase test coverage for fs.promises by adding a test for
    lchmod.
    
    PR-URL: #20584
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Masashi Hirano authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    ff5f20f View commit details
    Browse the repository at this point in the history
  10. test: mark test-fs-readfile-tostring-fail as flaky

    test-fs-readfile-tostring-fail is failing frequently on OSX machines.
    There's a PR to fix this issue in libuv, but while the fix don't land on
    Node.js this test should be marked as flaky.
    
    Ref: #16601
    Ref: libuv/libuv#1742
    
    PR-URL: #21013
    Refs: #16601
    Refs: libuv/libuv#1742
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Matheus Marchini authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    adbbf0d View commit details
    Browse the repository at this point in the history
  11. util: fix inspection of module namespaces

    PR-URL: #20962
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    devsnek authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    b2808ed View commit details
    Browse the repository at this point in the history
  12. doc: make minor improvements to fs.realpath() docs

    Make canonical vs. unique text more precise and eliminate quotation
    marks. Remove repeated text from fs.realpathSync(), linking to
    fs.realpath() instead.
    
    PR-URL: #20953
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    1b8e8e9 View commit details
    Browse the repository at this point in the history
  13. src: implement debug output utilities

    Implement utilities for easier debugging of Node.js core code,
    inspired by the HTTP/2 debugging code. Debugging is, however,
    implemented at runtime rather than at compile time, controlled
    through a new `NODE_DEBUG_NATIVE=categories` environment variable.
    
    The runtime overhead in the debugging-disabled case amounts to
    1 well-cachable one-byte read per debug call.
    
    PR-URL: #20987
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    45eeea4 View commit details
    Browse the repository at this point in the history
  14. http2: switch to new runtime-controlled debugging system

    Remove `--debug-http2` as a compile-time feature and
    make all debug statements available using `NODE_DEBUG_NATIVE=http2`
    at runtime.
    
    This probably makes the debugging-enabled case a bit slower due to
    additional string concatenations, but switching to a runtime-checking
    system makes debugging more flexible and can be applied more easily
    to other parts of the source code as well.
    
    PR-URL: #20987
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    182c73b View commit details
    Browse the repository at this point in the history
  15. src: restore stdio on program exit

    Record the state of the stdio file descriptors on start-up and restore
    them to that state on exit.  This should prevent issues where node.js
    sometimes leaves stdio in raw or non-blocking mode.
    
    Co-authored-by: Krzysztof Taborski <taborskikrzysztof@gmail.com>
    PR-URL: #20592
    Fixes: #14752
    Fixes: #21020
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    2 people authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    af06581 View commit details
    Browse the repository at this point in the history
  16. stream: ensure Stream.pipeline re-throws errors without callback

    Fixes an issue where Stream.pipeline wouldn't re-throw errors
    on a stream if no callback was specified, thus swallowing
    said errors.
    
    Fixes: #20303
    
    PR-URL: #20437
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    phated authored and addaleax committed May 31, 2018
    Configuration menu
    Copy the full SHA
    d1e81b0 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2018

  1. doc: better font stack for monospace in docs

    There appear to be rendering issues with inconsistent glyph width when
    using the Monaco font on non-macOS machines. This change updates the
    native CSS font stack to use the same font stack as Boostrap does, minus
    the Monaco font.
    
    PR-URL: #21036
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yazhong Liu <yorkiefixer@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    silverwind authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    bb8d341 View commit details
    Browse the repository at this point in the history
  2. trace_events: add version metadata

    Use `TRACE_EVENT_METADATA1` to include just the node.js version for
    now. Later this can be expanded to include more version and platform
    details.
    
    PR-URL: #20852
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    jasnell authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    b5b7459 View commit details
    Browse the repository at this point in the history
  3. doc: fix typo in n-api.md

    just replaced `than` with `that`.
    
    - wrong: the N-API functions than can be used to change
    - correct: the N-API functions that can be used to change
    
    Fixes: #21049
    
    PR-URL: #21060
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    ohbarye authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    4012e05 View commit details
    Browse the repository at this point in the history
  4. test: check TTY mode reset on exit

    Before PR 20592, closing all handles associated with the main
    event loop would also mean that `uv_tty_reset_mode()`
    can’t function properly because the corresponding FDs have
    already been closed.
    
    Add regression tests for this condition.
    
    Refs: #21020
    Refs: #20592
    
    PR-URL: #21027
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    2bbd99c View commit details
    Browse the repository at this point in the history
  5. test: fix flaky test-domain-timers

    It's possible for this test to be extremely infrequently flaky if
    1ms or more elapses between setting the two timeouts. In that case,
    the second timer will not fire and the test will fail.
    
    PR-URL: #21019
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    apapirovski authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    7e1f610 View commit details
    Browse the repository at this point in the history
  6. http2: delay closing stream

    Delay automatically closing the stream with setImmediate in order
    to allow any pushStreams to be sent first.
    
    PR-URL: #20997
    Fixes: #20992
    Reviewed-By: James M Snell <jasnell@gmail.com>
    apapirovski authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    2a9912c View commit details
    Browse the repository at this point in the history
  7. http2: force through RST_STREAM in destroy

    If still needed, force through RST_STREAM in Http2Stream#destroy
    calls, so that nghttp2 can wrap up properly and doesn't continue
    trying to read & write data to the stream.
    
    PR-URL: #21016
    Fixes: #21008
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    apapirovski authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    d4787cf View commit details
    Browse the repository at this point in the history
  8. net: use object destructuring

    PR-URL: #20959
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    starkwang authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    46d1025 View commit details
    Browse the repository at this point in the history
  9. test: show actual error in next-tick-when-exiting

    On process exit if some assertion error occurs value of
    `process._exiting` was hidden, this fix will show the actual
    error message with value.
    
    PR-URL: #20956
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    thatshailesh authored and addaleax committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    ea81d42 View commit details
    Browse the repository at this point in the history
  10. deps: update V8 to 6.7.288.43

    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    da8ad4a View commit details
    Browse the repository at this point in the history
  11. build: reset embedder string to "-node.0"

    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    bad3c92 View commit details
    Browse the repository at this point in the history
  12. deps: update v8.gyp

    Synchronize source files list with upstream's BUILD.gn.
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    fed1d18 View commit details
    Browse the repository at this point in the history
  13. deps: cherry-pick 39d546a from upstream V8

    Original commit message:
    
        [api] introduce v8::Value::IsModuleNamespaceObject
    
        This allows an embedder to check if a Value is a module namespace object.
    
        Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
        Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
        Reviewed-on: https://chromium-review.googlesource.com/1011762
        Reviewed-by: Georg Neis <neis@chromium.org>
        Commit-Queue: Georg Neis <neis@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#52597}
    
    Refs: v8/v8@39d546a
    
    PR-URL: #20016
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    devsnek authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    a7aff77 View commit details
    Browse the repository at this point in the history
  14. v8: backport 9fb02b526f1cd3b859a530a01adb08bc0d089f4f

    Refs: v8/v8@9fb02b5
    
    Original commit message:
    
        Allow function callbacks to have Proxy as receiver.
    
        R=verwaest@chromium.org
    
        Bug: v8:5773
        Change-Id: Ifd29a1116ee8c86b8d8d24485bbfd19e260ab66b
        Reviewed-on: chromium-review.googlesource.com/1046088
        Commit-Queue: Yang Guo <yangguo@chromium.org>
        Reviewed-by: Camillo Bruni <cbruni@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#53015}
    
    PR-URL: #20575
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    devsnek authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    ec05819 View commit details
    Browse the repository at this point in the history
  15. deps: cherry-pick 23652c5f from upstream V8

    Original commit message:
        Custom tag for the traceEvents array
    
        This API will be used by Node.js to provide output compatible with
        Chrome devtools.
    
        Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
        Change-Id: I265495f8af39bfc78d7fdbe43ac308f0920e817d
        Reviewed-on: https://chromium-review.googlesource.com/1044491
        Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
        Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
        Commit-Queue: Eugene Ostroukhov <eostroukhov@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#53041}
    
    PR-URL: #20608
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    eugeneo authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    40c8bbe View commit details
    Browse the repository at this point in the history
  16. deps: cherry-pick ff0a9793334 from upstream V8

    Original commit message:
    
        [api] Expose PreviewEntries as public API
    
        Turn `debug::EntriesPreview` into a public API.
        This is a straightforward approach to addressing
        #20409
        (not relying on functionality behind `--allow-natives-syntax`)
        in Node.js.
    
    Refs: v8/v8@ff0a979
    
    PR-URL: #20719
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    addaleax authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    fb26861 View commit details
    Browse the repository at this point in the history
  17. deps: backport 91ddb65d from upstream V8

    Original commit message:
    
        Revert promises optimizations due to regressions in async hooks
    
        Revert "[async-await] Eliminate throwaway promise in async functions."
    
        This reverts commit a840f1f8f7e6c9ab32dec456a954612619855093.
    
        Revert "[async-generators] Also avoid throwaway promise here."
    
        This reverts commit feb545ceba5cb477ba883b46b60142f441ad5a3d.
    
        Revert "[async-await] Turn await closures into intrinsics."
    
        This reverts commit d97bb317386506a6798386b74647cbe0502fce35.
    
        Revert "[async-generators] Add fast-path for primitives in AsyncGeneratorYield."
    
        This reverts commit e57b500eb26dc595609613963468910eb4bcae2e.
    
        Revert "[async-generators] Add fast-path to skip "then" lookup in AsyncGeneratorResolve."
    
        This reverts commit c15802e11e30976528d1b711a9b9e6ff6b490117.
    
        Revert "[promises] Correctly run before/after hooks for await."
    
        This reverts commit ca7639239fc13e992e857710cbf7dbaac87163bf.
    
        Bug: v8:7253, v8:7745
        Change-Id: I25ad0d2df3cfbc84dbb431aa25b268bce8a39e89
        Reviewed-on: https://chromium-review.googlesource.com/1049975
        Commit-Queue: Maya Lekova <mslekova@chromium.org>
        Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#53139}
    
    Refs: v8/v8@91ddb65
    Fixes: #20516
    Co-authored-by: Matteo Collina <matteo.collina@gmail.com>
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    MayaLekova authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    4e788dc View commit details
    Browse the repository at this point in the history
  18. deps: cherry-pick 6989b3f6d7 from V8 upstream

    Original commit message:
      Fix default Intl language tag handling
    
      With certain ICU data bundles (such as the Node.js "small-icu"),
      %GetDefaultICULocale() may return a more specific language tag (e.g.
      "en-US") than what's available (e.g. "en"). In those cases, consider the
      more specific language tag supported.
    
      This CL also resolves the following Node.js issue:
         #15223
    
      Bug: v8:7024
      Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
      Change-Id: Ifda0776b3418734d5caa8af4e50c17cda95add73
      Reviewed-on: https://chromium-review.googlesource.com/668350
      Commit-Queue: Daniel Ehrenberg <littledan@chromium.org>
      Reviewed-by: Daniel Ehrenberg <littledan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#52716}
    
    PR-URL: #20826
    Fixes: #15223
    Refs: v8/v8@6989b3f
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    TimothyGu authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    35d6661 View commit details
    Browse the repository at this point in the history
  19. util: add type check function for BigIntObject

    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    4c48b69 View commit details
    Browse the repository at this point in the history
  20. Revert "src: fix GetCpuProfiler() deprecation warning"

    This reverts commit f02b74d.
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    af62a16 View commit details
    Browse the repository at this point in the history
  21. src: fix GetCpuProfiler() deprecation warning

    Refs: nodejs/node-v8#46
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    2d3137c View commit details
    Browse the repository at this point in the history
  22. test: add read_only_space heap space

    v8.getHeapSpaceStatistics() now includes read_only_space
    in its results. Update test-v8-stats.js to account for this.
    
    Fixes: nodejs/node-v8#44
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    cjihrig authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    aa08f64 View commit details
    Browse the repository at this point in the history
  23. test: update postmortem metadata test

    This commit updates the following postmortem metadata constants:
    
    - v8dbg_class_SharedFunctionInfo__code__Code
      - This is now combined with SharedFunctionInfo's function_data.
      - Renamed: v8dbg_class_SharedFunctionInfo__function_data__Object
      - V8 commit: v8/v8@51ded9d
    
    - v8dbg_class_SharedFunctionInfo__raw_name__Object and
    - v8dbg_class_SharedFunctionInfo__scope_info__ScopeInfo
      - These are now combined as name_or_scope_info.
      - Renamed: v8dbg_class_SharedFunctionInfo__name_or_scope_info__Object
      - V8 commit: v8/v8@74a663b
    
    - v8dbg_class_SharedFunctionInfo__compiler_hints__int
      - Renamed: v8dbg_class_SharedFunctionInfo__flags__int
      - V8 commit: v8/v8@071b01b#diff-f3f182b0510ba2ee39ae87e421ff110b
    
    Fixes: nodejs/node-v8#44
    Fixes: nodejs/node-v8#48
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    cjihrig authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    df97791 View commit details
    Browse the repository at this point in the history
  24. src: update postmortem constant name

    This commit renames V8DBG_CLASS_SHAREDFUNCTIONINFO__RAW_NAME__OBJECT
    to V8DBG_CLASS_SHAREDFUNCTIONINFO__NAME_OR_SCOPE_INFO__OBJECT
    following an upstream change.
    
    PR-URL: #19989
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    cjihrig authored and MylesBorins committed Jun 1, 2018
    Configuration menu
    Copy the full SHA
    7c0c61b View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2018

  1. lib: introduce internal/validators

    Create a file to centralize argument validators that are used in
    multiple internal modules.
    Move validateInt32 and validateUint32 to this file.
    
    PR-URL: #21149
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    targos authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    f2c9e5a View commit details
    Browse the repository at this point in the history
  2. test: improve path tests

    Replaced deepStrictEqual with strictEqual when asserting that the
    path is equal to the win32 or posix equivalent, since it is a more
    strict check than deepStrictCheck. Also removed third argument
    in the check so that if there is an assertion error the properties
    that are different will be displayed.
    
    PR-URL: #20967
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Shivang44 authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    e4224fd View commit details
    Browse the repository at this point in the history
  3. test: removed message from strictEqual

    By removing the message from strictEqual, it will now print out the
    actual values of a and b, which will be more helpful in debugging. The
    old message has been added as a comment above the test.
    
    PR-URL: #20983
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lliepert authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    d84aa51 View commit details
    Browse the repository at this point in the history
  4. src: do not cache NumberOfHeapSpaces() globally

    While `NumberOfHeapSpaces()` currently returns a constant value,
    that is not strictly guaranteed by the V8 API as far as I can tell.
    Therefore, caching it globally does not seem appropriate.
    
    (The motivation here is that this squelches warnings which are
    produced by concurrency debugging tooling due to the apparent
    race conditions when accessing the global variable.)
    
    PR-URL: #20971
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    f79096a View commit details
    Browse the repository at this point in the history
  5. doc: remove invalid vm.Script arguments

    PR-URL: #20984
    Fixes: #20982
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    SimenB authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    4cd4420 View commit details
    Browse the repository at this point in the history
  6. doc: add guides on writing tests involving promises

    Mention `common.crashOnUnhandledRejection()` and wrapping the
    handlers in `common.mustCall()` or `common.mustNotCall()`.
    
    PR-URL: #20988
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    fd201e0 View commit details
    Browse the repository at this point in the history
  7. doc: remove vestigial onboarding section

    The onboarding-extras doc includes a section with a single bullet point
    instructing the new Collaborator to write good pull request
    descriptions. This material is likely superfluous and is in the wrong
    document if it is not. (It more properly belongs in pull-requests.md as
    it is information that is not specific to new Collaborators.) I am not
    putting it in pullrequests.md because that document is already plenty
    long and detailed, and includes advice on writing good commit messages,
    which tend to become the pull request descriptions anyway.
    
    PR-URL: #21028
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    09aec43 View commit details
    Browse the repository at this point in the history
  8. doc: move upstream information to onboarding doc

    Move information about setting `upstream` remote and updating from
    `upstream` out of `onboarding-extras` and into `onboarding`. Previously,
    a link was provided in `onboarding` to the section. This puts all the
    git setup information for Collaborator onboardings in one place.
    
    PR-URL: #21029
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    f5bf2c8 View commit details
    Browse the repository at this point in the history
  9. doc: use "is" rather than "has been"

    In deprecations.md, there are many uses of "has been" that are mildly
    awkward. This changes several instances of things like "fhqwhgads() has
    been deprecated" to "fhqwhgads() is deprecated".
    
    Especially for non-native speakers, present tense is generally easier to
    read and understand than past participles. (Or at least that's my
    experience reading things in languages other than English.)
    
    PR-URL: #21043
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    b1f0907 View commit details
    Browse the repository at this point in the history
  10. test: avoid empty fixture in fs test

    Refactor test-fs-error-messages to use tmpdir for its empty directory
    rather than using a not-actually-empty directory called "empty" in
    fixtures.
    
    PR-URL: #21044
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    c74c83a View commit details
    Browse the repository at this point in the history
  11. test: avoid empty fixture in module test

    Refactor test-module-loading to use tmpdir for its empty directory
    rather than using a not-actually-empty directory called "empty" in
    fixtures.
    
    PR-URL: #21044
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    f7886ab View commit details
    Browse the repository at this point in the history
  12. test: remove unused empty fixture

    The not-quite-empty directory called "empty" in fixtures was replaced in
    tests with `tmpdir.path` (after calling `tmpdir.refresh()` to ensure
    that it is empty). The fixture is removed in this commit.
    
    PR-URL: #21044
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    60abd08 View commit details
    Browse the repository at this point in the history
  13. doc: fix typos on e.g. abbreviations

    `eg.` was used in two places where `e.g.` was intended. Replace one
    instance with `e.g.` and rewrite the other instance to not require the
    abbreviation at all.
    
    PR-URL: #21045
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    2edf172 View commit details
    Browse the repository at this point in the history
  14. doc: remove POST_STATUS_TO_PR from onboarding.md

    POST_STATUS_TO_PR is checked/enabled by default so there is no longer a
    need to mention that it should be checked in onboarding.md. There is
    almost never a situation when it should be unchecked.
    
    PR-URL: #21042
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    261ef1d View commit details
    Browse the repository at this point in the history
  15. lib: use focused ESLint disabling in util.js

    Instead of disabling all ESLint rules for two lines that require a
    violation of no-control-regex, disable only the no-control-regex rule.
    
    PR-URL: #21041
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    a30bf55 View commit details
    Browse the repository at this point in the history
  16. doc: remove link prediction from STYLE_GUIDE.md

    Remove promise to eventually link an example document to show level-one
    heading. The style guide has been fine without the example doc for a
    long time. The statement is already clear. And the style guide itself is
    an example. We don't link to examples of wrapping at 80 characters, for
    example. There's no need to link just to show what a level-one heading
    is. (And if level-one heading is unclear, then it may be preferable to
    improve the terminology rather than to link to an example.)
    
    PR-URL: #21031
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    29c35bd View commit details
    Browse the repository at this point in the history
  17. benchmark: fix "comparisons"' typo

    PR-URL: #21085
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    hiroppy authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    be249d9 View commit details
    Browse the repository at this point in the history
  18. doc: add notable-change to onboarding.md exercise

    Pull requests that add new Collaborators should be labeled
    `notable-change`. Make a note of this in onboarding.md.
    
    PR-URL: #21040
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    15aa3c1 View commit details
    Browse the repository at this point in the history
  19. test: add option to test-benchmark-timers

    Add option to test-benchmark-timers such that all benchmark files return
    only a single set of results. (This helps prevent benchmark tests from
    taking a long time to run.)
    
    Alphabetize options in the file.
    
    PR-URL: #21032
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    a3fdd2e View commit details
    Browse the repository at this point in the history
  20. test: run crypto benchmark only once in tests

    Prevent crypto benchmark files from running more than one benchmark
    during tests.
    
    PR-URL: #21032
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    c8ee379 View commit details
    Browse the repository at this point in the history
  21. benchmark: refactor deepequal-buffer

    This is a minor refactor of benchmark/assert/deepequal-buffer.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    90d8658 View commit details
    Browse the repository at this point in the history
  22. benchmark: refactor deepequal-map

    This is a minor refactor of benchmark/assert/deepequal-map.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    9b0fc59 View commit details
    Browse the repository at this point in the history
  23. benchmark: refactor deepequal-object

    This is a minor refactor of benchmark/assert/deepequal-object.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    4d71442 View commit details
    Browse the repository at this point in the history
  24. benchmark: refactor prims-and-objs-big-array-set

    This is a minor refactor of
    benchmark/assert/deepequal-prims-and-objs-big-array-set.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    6fbb00e View commit details
    Browse the repository at this point in the history
  25. benchmark: refactor prims-and-objs-big-loop

    This is a minor refactor of
    benchmark/assert/deepequal-prims-and-objs-big-loop.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    56c6759 View commit details
    Browse the repository at this point in the history
  26. benchmark: refactor deepequal-set

    This is a minor refactor of benchmark/assert/deepequal-set.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    686587b View commit details
    Browse the repository at this point in the history
  27. benchmark: refactor deepequal-typedarrays

    This is a minor refactor of benchmark/assert/deepequal-typedarrays.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    b8470b9 View commit details
    Browse the repository at this point in the history
  28. benchmark: refactor benchmark/assert/throws.js

    This is a minor refactor of benchmark/assert/throws.js to
    reduce exceptions that need to be made for lint compliance.
    
    PR-URL: #21030
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    9ada68b View commit details
    Browse the repository at this point in the history
  29. stream: inline needMoreData function

    Inline the needMoreData function since it has only one call place.
    Update the related comment.
    Add a test for the edge case where HWM=0 and state.length=0.
    Add a test for ReadableStream.read(n) method's edge case where
    n, HWM and state.length are all zero.
    This proves that there is no easy way to simplify the check at
    https://github.com/nodejs/node/blob/master/lib/_stream_readable.js#L440
    
    Fixes: #19893
    Refs: #19896
    
    PR-URL: #21009
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    kodemill authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    44fe78b View commit details
    Browse the repository at this point in the history
  30. test: fix flaky async-hooks/test-zlib.zlib-binding.deflate

    Previously, the typed arrays used in this test would not
    automatically be kept alive by the native handle when
    it’s using them, so the V8 garbage collector could collect
    them while they are still in use by the zlib module,
    leading to memory corruption.
    
    Fixes: #20907
    
    PR-URL: #21077
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Yang Guo <yangguo@chromium.org>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    c4fc1ff View commit details
    Browse the repository at this point in the history
  31. test: minor adjustments to test-http2-respond-file

    PR-URL: #21098
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    bd0d19d View commit details
    Browse the repository at this point in the history
  32. test: unmark test-zlib.zlib-binding.deflate flaky

    PR-URL: #21109
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    apapirovski authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    8e3e18e View commit details
    Browse the repository at this point in the history
  33. http2: fix premature destroy

    Check stream._writableState.finished instead of stream.writable
    as the latter can lead to premature calls to destroy and dropped
    writes on busy processes.
    
    PR-URL: #21051
    Fixes: #20750
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    apapirovski authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    341b2c2 View commit details
    Browse the repository at this point in the history
  34. test: log before and after RSS in memory leak test

    Refs: #21076
    
    PR-URL: #21080
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    bnoordhuis authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    fda8654 View commit details
    Browse the repository at this point in the history
  35. test: increase slop limit in memory leak test

    It transpires that the extra bookkeeping in debug builds sometimes makes
    the increase in RSS go _just_ over the 5 MB limit, by fewer than 100 kB.
    Double the limit so we hopefully don't run into it any time again soon.
    
    The memory leak it tests for was one where RSS grew by hundreds of
    megabytes over the lifetime of the test; 5 vs. 10 MB is insignificant.
    
    Fixes: #21076
    
    PR-URL: #21080
    Refs: #21076
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    bnoordhuis authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    c60810a View commit details
    Browse the repository at this point in the history
  36. src: fix typo string_search.h comment

    PR-URL: #21115
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Masashi Hirano authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    66f4c7b View commit details
    Browse the repository at this point in the history
  37. test: update test-dns error message

    test-dns is in the internet suite and therefore is rarely run. (That
    will change soon. We will run internet tests nightly in CI.) Because it
    is infrequently run, it was not noticed that it no longer passes. (An
    error message has changed to provide more information.) This change
    fixes the test so it passes.
    
    PR-URL: #21116
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    28f2dcb View commit details
    Browse the repository at this point in the history
  38. test: add source for test.wasm

    The original commit 74e7a4a
    ("test: add basic WebAssembly test") references the source for
    test.wasm and while there are tools to go from wasm to wat but
    having the source viewable is helpful I think.
    
    PR-URL: #21082
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    danbev authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    1e607d0 View commit details
    Browse the repository at this point in the history
  39. timers: check can_call_into_js in Immediates

    Prevent an infinite loop if it's not possible to call into JS.
    
    PR-URL: #21057
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    apapirovski authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    ba71fe8 View commit details
    Browse the repository at this point in the history
  40. test: make handling of noWarnCode stricter

    This change requires all expected warnings to be specified along with
    their respective code and will raise an error if the code does not
    match. This also kind of fixes the behavior when the expected warning
    code was noWarnCode and there is an actual warning code.
    
    PR-URL: #21075
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    tniessen authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    1733ef9 View commit details
    Browse the repository at this point in the history
  41. test: string-decorater.lastChar

    Added test for string-decorater.lastChar to improve coverage.
    
    PR-URL: #21084
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Masashi Hirano authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    2d36150 View commit details
    Browse the repository at this point in the history
  42. test: mark test-trace-events-fs-sync as flaky

    test-trace-events-fs-sync has been failing ocasinally on FreeBSD. While
    we don't have a fix, it should be marked as flaky.
    
    Ref: #21038
    
    PR-URL: #21039
    Refs: #21038
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Matheus Marchini authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    820236f View commit details
    Browse the repository at this point in the history
  43. test: refactor child-process-fork-net

    Split test-child-process-fork-net into
    test-child-process-fork-net-server and
    test-child-process-fork-net-socket. Rename
    test-child-process-fork-net2.js to test-child-process-fork-net.js.
    
    Refs: #21012
    
    PR-URL: #21095
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    9d41ab4 View commit details
    Browse the repository at this point in the history
  44. src: store pointer to Environment on DestroyParam

    To avoid a potential segfault when inside WeakCallback, store a
    reference to Environment inside DestroyParam.
    
    PR-URL: #21099
    Reviewed-By: Yang Guo <yangguo@chromium.org>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    
    Co-authored-by: Yang Guo <yangguo@chromium.org>
    Co-authored-by: Michaël Zasso <targos@protonmail.com>
    3 people authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    8862f0a View commit details
    Browse the repository at this point in the history
  45. inspector: code cleanup

    Remove some unused code from the WS server implementation and switch to
    smart pointers where possible.
    
    PR-URL: #21070
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    eugeneo authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    1c211ec View commit details
    Browse the repository at this point in the history
  46. doc: add offboarding doc

    Add minimal document for what to do when a Collaborator moves to
    Collaborator Emeritus or leaves the project.
    
    PR-URL: #21103
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    e2a7928 View commit details
    Browse the repository at this point in the history
  47. test: move benchmark-dgram to sequential

    This test uses hardcoded ports, it should not be located in parallel.
    
    PR-URL: #21144
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    apapirovski authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    8161287 View commit details
    Browse the repository at this point in the history
  48. https: removed extra _http_server require

    PR-URL: #21069
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ErnestoSalazar authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    1d22254 View commit details
    Browse the repository at this point in the history
  49. zlib: removed extra util require

    PR-URL: #21069
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ErnestoSalazar authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    48aa4c3 View commit details
    Browse the repository at this point in the history
  50. doc: fix typo in addons.md

    "across version of Node.js" -> "across versions of Node.js"
    
    PR-URL: #21137
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    2c671ab View commit details
    Browse the repository at this point in the history
  51. src: break out of timers loop if !can_call_into_js()

    Otherwise, this turns into an infinite loop when the flag
    is set, because it makes `MakeCallback()` return immediately.
    
    Backport-PR-URL: #21168
    PR-URL: #20884
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    addaleax authored and MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    afc811c View commit details
    Browse the repository at this point in the history
  52. tools: ensure doc-only doesn't update package-lock

    Currently `make doc-only` is updating the package-lock.json
    which is breaking our release build.
    
    This adds the flags `--no-package-lock` when
    running `npm install` to ensure the package-lock.json is not
    changed unintentionally by running make
    
    PR-URL: #21015
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    440e899 View commit details
    Browse the repository at this point in the history
  53. 2018-06-06, Version 10.4.0 (Current)

    Notable Changes:
    
    * **deps**:
     - update V8 to 6.7.288.43 (Michaël Zasso)
       #19989
    * **stream**:
      - ensure Stream.pipeline re-throws errors without callback (Blaine Bublitz)
        #20437
    
    PR-URL: #21167
    MylesBorins committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    1e88953 View commit details
    Browse the repository at this point in the history