Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12.15.0 release proposal #31368

Closed
wants to merge 473 commits into from
Closed

v12.15.0 release proposal #31368

wants to merge 473 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jan 14, 2020

  1. doc: fix argument type of setAAD

    PR-URL: #30863
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    tniessen authored and targos committed Jan 14, 2020
    Copy the full SHA
    16283b8 View commit details
    Browse the repository at this point in the history
  2. http2: forward debug message in debugStreamObj

    PR-URL: #30840
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
    lundibundi authored and targos committed Jan 14, 2020
    Copy the full SHA
    8d8c05d View commit details
    Browse the repository at this point in the history
  3. test: disable colorMode in test-console-group

    Disable colorMode in test-console-group so that the test will succeed if
    run without the test runner from the command line.
    
    PR-URL: #30886
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    2155f56 View commit details
    Browse the repository at this point in the history
  4. doc: edit colorMode information

    Add information about what it means when colorMode is set to false.
    
    PR-URL: #30887
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    169a3d5 View commit details
    Browse the repository at this point in the history
  5. tools: update link to google styleguide for cpplint

    This commit updates two old links to Google's C++ styleguide which
    currently result in a 404 when accessed.
    
    PR-URL: #30876
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    danbev authored and targos committed Jan 14, 2020
    Copy the full SHA
    174e435 View commit details
    Browse the repository at this point in the history
  6. doc: clarify build support text

    Revise compilation/execution support text to keep it shorter, simpler,
    and hopefully easier to read/understand.
    
    PR-URL: #30899
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    2f4615c View commit details
    Browse the repository at this point in the history
  7. doc: improve doc writable streams: 'finish' event

    doc change for stream.md that 'finish' event should be before
    writer.end
    
    fixes: #30759
    
    PR-URL: #30889
    Fixes: #30759
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    dev-script authored and targos committed Jan 14, 2020
    Copy the full SHA
    690deaa View commit details
    Browse the repository at this point in the history
  8. build: fix missing x64 arch suffix in binary tar name

    PR-URL: #30877
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    1811b1a View commit details
    Browse the repository at this point in the history
  9. console: unregister temporary error listener

    PR-URL: #30852
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    17fc4b0 View commit details
    Browse the repository at this point in the history
  10. lib: use strict equality comparison

    Change '==' to '===' in v8_prof_polyfill.js, punycode.js.
    
    PR-URL: #30898
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    PW486 authored and targos committed Jan 14, 2020
    Copy the full SHA
    9b730ad View commit details
    Browse the repository at this point in the history
  11. http: remove unnecessary bind

    process.nextTick accepts additional parameters which
    are passed through to the callback. Use that instead
    of binding the function to a context.
    
    PR-URL: #28131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    baece55 View commit details
    Browse the repository at this point in the history
  12. perf_hooks: remove unnecessary bind

    Pass through parameters using setImmediate rather
    than using Function.prototype.bind to bind the
    provided context.
    
    PR-URL: #28131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    01bb876 View commit details
    Browse the repository at this point in the history
  13. fs: remove unnecessary bind

    Don't use Function.prototype.bind where it isn't
    necessary. Rely on event emitter context instead
    and on arrow function as class property.
    
    PR-URL: #28131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    91845d8 View commit details
    Browse the repository at this point in the history
  14. http2: remove unnecessary bind from setImmediate

    PR-URL: #28131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    dce435d View commit details
    Browse the repository at this point in the history
  15. cluster: remove unnecessary bind

    PR-URL: #28131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    f76f143 View commit details
    Browse the repository at this point in the history
  16. src: make debug_options getters public

    This simplifies requires for those using DebugOptions,
    since debug_options was defined in src/node_options-inl.h  and thus
    embedders would need to require an extra file to do what could
    trivially be consolidated into one.
    
    PR-URL: #30494
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    codebytere authored and targos committed Jan 14, 2020
    Copy the full SHA
    6f61407 View commit details
    Browse the repository at this point in the history
  17. crypto: cast oaepLabel to unsigned char*

    OpenSSL uses a macro without typechecking; since C++ does not
    implicitly cast void* this is needed to conform Node.js to the
    OpenSSL documentation.
    
    PR-URL: #30917
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    codebytere authored and targos committed Jan 14, 2020
    Copy the full SHA
    e4b3181 View commit details
    Browse the repository at this point in the history
  18. test: improve assertion error message in test-debug-usage

    PR-URL: #30913
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    88085f0 View commit details
    Browse the repository at this point in the history
  19. doc: fix description of N-API exception handlers

    The return value is not a boolean and even if interpreted as one,
    it does not indicate whether an exception is pending.
    
    For napi_is_exception_pending, the description of the result parameter
    already explains how to check whether an exception is pending.
    
    PR-URL: #30893
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    tniessen authored and targos committed Jan 14, 2020
    Copy the full SHA
    5a8a7a4 View commit details
    Browse the repository at this point in the history
  20. tools: enable Markdown linter's usage information

    Prior to this commit, running `node tools/lint-md --help` and
    `node tools/lint-md --version` resulted in an error.
    
    * Use `unified-args` to start processor
    * Use `unified-args`'s error handler
    
    Fixes: #30156
    PR-URL: #30216
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Derek Lewis authored and targos committed Jan 14, 2020
    Copy the full SHA
    47067ce View commit details
    Browse the repository at this point in the history
  21. build,win: fix goto exit in vcbuild

    PR-URL: #30931
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    joaocgreis authored and targos committed Jan 14, 2020
    Copy the full SHA
    78cf6d0 View commit details
    Browse the repository at this point in the history
  22. test: avoid leftover report file

    test-windows-failed-heap-allocation forces a out of mem crash resulting
    in a report file. To avoid a leftover in repo the child is started in a
    tmp folder like in test-report-fatal-error.
    
    PR-URL: #30925
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Flarna authored and targos committed Jan 14, 2020
    Copy the full SHA
    4651871 View commit details
    Browse the repository at this point in the history
  23. doc: clarify expectations for PR commit messages

    Prior to this commit, new contributors were suggested
    to use a utility to validate commit messages. Although
    not inaccurate, this utility produces misleading results.
    
    * Remove reference to `core-validate-commit`
    
    PR-URL: #30922
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Derek Lewis authored and targos committed Jan 14, 2020
    Copy the full SHA
    c554c0e View commit details
    Browse the repository at this point in the history
  24. test: improve dns lookup coverage

    Adding tests covering promises-related code paths.
    
    PR-URL: #30777
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    KeeReal authored and targos committed Jan 14, 2020
    Copy the full SHA
    5cb1744 View commit details
    Browse the repository at this point in the history
  25. doc: add "Be direct." to the style guide

    I've been doing a lot of work on-and-off to reduce unnecessary wordiness
    in our docs. Codify it in the style guide.
    
    PR-URL: #30935
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    9e5d39c View commit details
    Browse the repository at this point in the history
  26. process: fix promise catching

    Fixes: #30953
    
    PR-URL: #30957
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    pd4d10 authored and targos committed Jan 14, 2020
    Copy the full SHA
    9ce788e View commit details
    Browse the repository at this point in the history
  27. benchmark: use let/const instead of var in buffers

    PR-URL: #30945
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    dnlup authored and targos committed Jan 14, 2020
    Copy the full SHA
    47b5367 View commit details
    Browse the repository at this point in the history
  28. doc: explain napi_run_script

    PR-URL: #30918
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and targos committed Jan 14, 2020
    Copy the full SHA
    5537fae View commit details
    Browse the repository at this point in the history
  29. process: refs --unhandled-rejections documentation in warning message

    Refs: #20392
    
    PR-URL: #30564
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    aduh95 authored and targos committed Jan 14, 2020
    Copy the full SHA
    732780f View commit details
    Browse the repository at this point in the history
  30. cli: add --trace-exit cli option

    It could be convenient to trace abnormal exit of the Node.js processes
    that printing stacktrace on each `process.exit` call with a cli option.
    This also takes effects on worker threads.
    
    PR-URL: #30516
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    7bfc339 View commit details
    Browse the repository at this point in the history
  31. test: improve test coverage in child_process

    PR-URL: #26282
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    juanarbol authored and targos committed Jan 14, 2020
    Copy the full SHA
    e6907f0 View commit details
    Browse the repository at this point in the history
  32. benchmark: update manywrites back pressure

    Make manywrites benchmark a bit more realistic by
    taking back pressure into account. Otherwise
    memory usage would no correspond well with
    real world usage.
    
    PR-URL: #30977
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    1333798 View commit details
    Browse the repository at this point in the history
  33. doc: update message.url example in http.IncomingMessage

    Update message.url example to use The WHATWG URL API.
    This is because the old example suggests using deprecated url API.
    
    Fixes: #30048
    PR-URL: #30830
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    saitolume authored and targos committed Jan 14, 2020
    Copy the full SHA
    08186b2 View commit details
    Browse the repository at this point in the history
  34. doc: reference worker threads on signal events

    PR-URL: #30990
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    7822eb1 View commit details
    Browse the repository at this point in the history
  35. src: fix compiler warning in env.cc

    This fixes the following warning:
    
        ../src/env.cc: In member function ‘void node::Environment::Exit(int)’:
        ../src/env.cc:946:77: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
               fprintf(stderr, "(node:%d, thread:%llu) ", uv_os_getpid(), thread_id());
                                                                          ~~~~~~~~~~~^
    
    PR-URL: #31020
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    d04891f View commit details
    Browse the repository at this point in the history
  36. src: list used functions on headers

    PR-URL: #30827
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    juanarbol authored and targos committed Jan 14, 2020
    Copy the full SHA
    3c63af2 View commit details
    Browse the repository at this point in the history
  37. test: fix flaky test-http2-client-upload

    Wait for close event on server stream before shuting down server and
    client to avoid races seen on windows CI.
    
    Refs: #20750 (comment)
    
    PR-URL: #29889
    Refs: #29852
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Flarna authored and targos committed Jan 14, 2020
    Copy the full SHA
    2a2fe8a View commit details
    Browse the repository at this point in the history
  38. benchmark: add clear connections to secure-pair

    adds clear connections to the secure-pair performance test to prove
    that in some cases (when the sender send the data in small chunks)
    clear connections perform worse than TLS connections
    
    Also add a byte chunk size test to benchmark/net/net-pipe.js
    
    Refs: #27970
    
    PR-URL: #27971
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    DiegoTUI authored and targos committed Jan 14, 2020
    Copy the full SHA
    8c3b8e0 View commit details
    Browse the repository at this point in the history
  39. test: fix long lines

    This commit addresses several lines that are unnecessarily
    longer than the 80 character limit. The only reason they pass
    linting, I believe, is because they contain URLs.
    
    PR-URL: #31014
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    73701b2 View commit details
    Browse the repository at this point in the history
  40. dgram: use for...of

    PR-URL: #30999
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    334fcbe View commit details
    Browse the repository at this point in the history
  41. test: fix common.enoughTestMem

    A typo introduced in 1ddcb6d causes common.enoughTestMem to always
    be false, resulting in a lot of tests being skipped. Fix the typo.
    
    PR-URL: #31035
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    734b550 View commit details
    Browse the repository at this point in the history
  42. test: unflake async hooks statwatcher test

    Under high load 2 types of issues arise with this test.
    * filesystem calls gets queued even when the 'sync' is used which leads
      to async_hooks being called with the events of tmpdir clean or
      initial file write after clean.
      This is solved by counting all 'change' calls while making sure there
      is no dependency of StatWatcher's on one another and the expected
      changes are waited for.
    
    * some events are getting lost with the current
      clean->write->write_and_watch strategy. Specifically I observed the
      file size going from 0 to 5 entirely skipping 3 even though the write
      call was there (this happened reliably on -j128).
      So I've changed the strategy to avoid additional write considering
      this still tests the hooks correctly.
      This may indicate some sort of bug in async_hooks though I'm not sure.
    
    Closes: #21425
    
    PR-URL: #30362
    Fixes: #21425
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    lundibundi authored and targos committed Jan 14, 2020
    Copy the full SHA
    3c16855 View commit details
    Browse the repository at this point in the history
  43. tools: update ESLint to 6.8.0

    Update ESLint to 6.8.0
    
    PR-URL: #31044
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    9d2e8c5 View commit details
    Browse the repository at this point in the history
  44. deps: V8: cherry-pick d3a1a5b6c491

    Original commit message:
    
        [objects] Fix memory leak in PrototypeUsers::Add
    
        PrototypeUsers::Add now iterates the WeakArrayList to find empty slots
        before growing the array. Not reusing empty slots caused a memory leak.
    
        It might also be desirable to shrink the WeakArrayList in the future.
        Right now it is only compacted when invoking CreateBlob.
    
        Also removed unused PrototypeUsers::IsEmptySlot declaration.
    
        Bug: v8:10031
        Change-Id: I570ec78fca37e8f0c794f1f40846a4daab47c225
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1967317
        Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
        Reviewed-by: Igor Sheludko <ishell@chromium.org>
        Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#65456}
    
    Refs: v8/v8@d3a1a5b
    Fixes: #30753
    
    PR-URL: #31005
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    ccf1178 View commit details
    Browse the repository at this point in the history
  45. src,test: use v8::Global instead of v8::Persistent

    This is in preparation for a lint rule forbidding usage of
    `v8::Persistent`.
    
    PR-URL: #31018
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    5622543 View commit details
    Browse the repository at this point in the history
  46. doc: avoid using v8::Persistent in addon docs

    Use `v8::Global` where possible. For examples where it applies,
    also clean up the code and make the code multi-threading-ready,
    for those where that isn’t easily possible, add a warning about that.
    
    PR-URL: #31018
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    ea5be29 View commit details
    Browse the repository at this point in the history
  47. tools,src: forbid usage of v8::Persistent

    `v8::Persistent` comes with the surprising catch that it requires
    manual cleanup. `v8::Global` doesn’t, making it easier to use,
    and additionally provides move semantics. New code should always
    use `v8::Global`.
    
    PR-URL: #31018
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    b9c057c View commit details
    Browse the repository at this point in the history
  48. doc: implement minor improvements to BUILDING.md text

    Fix comma splices. Remove unnecessary words. Minor text improvements.
    
    PR-URL: #31070
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    2f7bd15 View commit details
    Browse the repository at this point in the history
  49. tools: fix Raspbian armv7 build

    PR-URL: #31041
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    AHgPuK authored and targos committed Jan 14, 2020
    Copy the full SHA
    b714e94 View commit details
    Browse the repository at this point in the history
  50. benchmark: use let instead of var in child_process

    PR-URL: #31043
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    dnlup authored and targos committed Jan 14, 2020
    Copy the full SHA
    15adbe8 View commit details
    Browse the repository at this point in the history
  51. doc: improve doc net:server.listen

    Remove line "Common parameter of server.listen() functions."
    from net:server.listen callback functions because there is no
    need of this line.
    
    PR-URL: #31064
    Fixes: #31019
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    dev-script authored and targos committed Jan 14, 2020
    Copy the full SHA
    1f0a1d5 View commit details
    Browse the repository at this point in the history
  52. tls: add PSK support

    Add the `pskCallback` client/server option, which resolves an identity
    or identity hint to a pre-shared key.
    
    Add the `pskIdentityHint` server option to set the identity hint for the
    ServerKeyExchange message.
    
    Co-authored-by: Chris Osborn <chris.osborn@sitelier.com>
    Co-authored-by: stephank <gh@stephank.nl>
    Co-authored-by: Taylor Zane Glaeser <tzglaeser@gmail.com>
    
    PR-URL: #23188
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    lundibundi authored and targos committed Jan 14, 2020
    Copy the full SHA
    bfccc00 View commit details
    Browse the repository at this point in the history
  53. doc: add unrepresented flags docs for configure

    Added documentation to support usage of advanced features of
    `configure` on Windows.
    
    PR-URL: #28069
    Fixes: #17331
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    rexagod authored and targos committed Jan 14, 2020
    Copy the full SHA
    bbb5707 View commit details
    Browse the repository at this point in the history
  54. doc: standardize usage of hostname vs. host name

    Unsurprisingly, we have "host name" and "hostname" used in our
    documentation. Let's follow the usage of Unix man pages, RFCs, and most
    professionally-edited sources, and use "host name" in prose and
    "hostname" to refer to the command and in code.
    
    It is possible to add a lint rule for this, but it will need to wait
    until we modify how code is displayed in headers. Coming soon (I hope).
    
    PR-URL: #31073
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    5c522dd View commit details
    Browse the repository at this point in the history
  55. src: port --bash-completion to C++

    So that it gets handle earlier and faster during the bootstrap
    process.
    
    Drive-by fixes:
    
    - Remove `[has_eval_string]` and `[ssl_openssl_cert_store]` from
      the completion output
    - Set `kProfProcess` execution mode for `--prof-process` instead
      of `kPrintBashProcess` which is removed in this patch.
    - Append new line to the end of the output of --bash-completion
    
    PR-URL: #25901
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    82fbedc View commit details
    Browse the repository at this point in the history
  56. doc: fix anchors and subtitle in BUILDING.md

    PR-URL: #30296
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sutangu authored and targos committed Jan 14, 2020
    Copy the full SHA
    2aab93e View commit details
    Browse the repository at this point in the history
  57. test: skip the unsupported test cases for IBM i

    This is a following PR of #30714.
    
    PR-URL: #30819
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    dmabupt authored and targos committed Jan 14, 2020
    Copy the full SHA
    9c9138f View commit details
    Browse the repository at this point in the history
  58. deps: V8: cherry-pick d406bfd64653

    Original commit message:
    
        [base] Fix the return of ClockNow on IBMi
    
        The API thread_cputime() is only defined but not yet implemented on IBMi.
    
        Change-Id: I8ea7ff724e749f537b54e75a00d718500807ca8a
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1957831
        Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
        Reviewed-by: Clemens Backes <clemensb@chromium.org>
        Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
        Cr-Commit-Position: refs/heads/master@{#65392}
    
    Refs: v8/v8@d406bfd
    
    PR-URL: #30819
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    sam-github authored and targos committed Jan 14, 2020
    Copy the full SHA
    86d1998 View commit details
    Browse the repository at this point in the history
  59. benchmark: include writev in benchmark

    Currently we only consider write when benchmarking.
    
    PR-URL: #31066
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    d5c0e4d View commit details
    Browse the repository at this point in the history
  60. doc: add --enable-source-maps man page entry

    This commit adds the --enable-source-maps CLI flag to the
    man page.
    
    PR-URL: #31077
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    f08130e View commit details
    Browse the repository at this point in the history
  61. doc: add --force-context-aware man page entry

    This commit adds the --force-context-aware CLI flag to the
    man page.
    
    PR-URL: #31077
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    b28b16b View commit details
    Browse the repository at this point in the history
  62. doc: add --inspect-publish-uid man page entry

    This commit adds the --inspect-publish-uid CLI flag to the
    man page.
    
    PR-URL: #31077
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    5db6758 View commit details
    Browse the repository at this point in the history
  63. build: fixes build for some os versions

    For format macros, the __STDC_FORMAT_MACROS flag needs to be
    passed, also passing the librt linker flag.
    devnexen authored and targos committed Jan 14, 2020
    Copy the full SHA
    4cd459c View commit details
    Browse the repository at this point in the history
  64. zlib: allow writes after readable 'end' to finish

    Call the callback for writes that occur after the stream is closed.
    This also requires changes to the code to not call `.destroy()`
    on the stream in `.on('end')`, and to ignore chunks written
    afterwards.
    
    Previously, these writes would just queue up silently, as their
    `_write()` callback would never have been called.
    
    Fixes: #30976
    
    PR-URL: #31082
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    8407086 View commit details
    Browse the repository at this point in the history
  65. src: enable stack trace printing for V8 check failures

    Example output:
    
        $ ./node --expose-gc test/addons/buffer-free-callback/test.js
    
        #
        # Fatal error in , line 0
        # Check failed: result.second.
        #
        #
        #
        #FailureMessage Object: 0x7ffebd956860
         1: 0x56290a45b105  [./node]
         2: 0x56290b305b77 V8_Fatal(char const*, ...) [./node]
         3: 0x56290a82702d v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr<v8::internal::BackingStore>) [./node]
         4: 0x56290a59a1de v8::ArrayBuffer::GetBackingStore() [./node]
         5: 0x56290a3cb63f node::Buffer::New(node::Environment*, char*, unsigned long, void (*)(char*, void*), void*) [./node]
         6: 0x56290a3cbcdc node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) [./node]
         7: 0x7fdeabdfdf89 Alloc(v8::FunctionCallbackInfo<v8::Value> const&) [/home/xxxx/src/node/master/test/addons/buffer-free-callback/build/Release/binding.node]
         8: 0x56290a5ca077  [./node]
         9: 0x56290a5cbf97 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [./node]
        10: 0x56290ad99539  [./node]
        Illegal instruction (core dumped)
    
    PR-URL: #31079
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    cb35097 View commit details
    Browse the repository at this point in the history
  66. doc: update parameter type for fs.chmod()

    The mode parameter of fs.chmod() and fs.chmodSync() can be a string or
    an integer. This change updates the documentation, which currently omits
    string as a valid type for mode.
    
    PR-URL: #31085
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    santoshyadavdev authored and targos committed Jan 14, 2020
    Copy the full SHA
    671a5b7 View commit details
    Browse the repository at this point in the history
  67. doc: improve dns introduction

    The introductory paragraphs for the `dns` module do not explain what the
    module is for. Add a short (two brief sentences) explanation.
    
    It also emphasizes that functions in the dns module are
    divided into two categories, but that there is only one function in one
    of the categories, making the whole categories thing a bit odd to
    emphasize. Keep the material about the distinctions without discussing
    categories.
    
    There are other incidental revisions (changing an example IP to
    `example.org` and so on).
    
    PR-URL: #31090
    Reviewed-By: Colin Ihrig <cjihrig@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 targos committed Jan 14, 2020
    Copy the full SHA
    6c9bc3c View commit details
    Browse the repository at this point in the history
  68. test: log errors in test-http2-propagate-session-destroy-code

    PR-URL: #31072
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    lundibundi authored and targos committed Jan 14, 2020
    Copy the full SHA
    9ed7d2e View commit details
    Browse the repository at this point in the history
  69. benchmark: replace var with let/const in cluster benchmark

    PR-URL: #31042
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    dnlup authored and targos committed Jan 14, 2020
    Copy the full SHA
    dc8c955 View commit details
    Browse the repository at this point in the history
  70. doc: update parameter type for fsPromises.chmod()

    This was overlooked in #31085.
    
    PR-URL: #31115
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    54cbbae View commit details
    Browse the repository at this point in the history
  71. doc: update mode type for fchmod() functions

    fs.fchmod() and fs.fchmodSync() both support strings as their
    mode argument. This commit updates the documentation to
    reflect this.
    
    PR-URL: #31115
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    a5f1434 View commit details
    Browse the repository at this point in the history
  72. doc: update mode type for fs open() functions

    This commit updates the documentation for fs.open(),
    fs.openSync(), and fsPromises.open() to reflect the fact
    that their mode option can be a string.
    
    PR-URL: #31115
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    5948ff4 View commit details
    Browse the repository at this point in the history
  73. doc: update mode type for process.umask()

    This commit updates the documentation for process.umask()
    to reflect the fact that the mode option can be a string.
    
    PR-URL: #31115
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    cd310e1 View commit details
    Browse the repository at this point in the history
  74. doc: update mode type for mkdir() functions

    This commit updates the documentation for fs.mkdir(),
    fs.mkdirSync(), and fsPromises.mkdir() to reflect the fact
    that their mode option can be a string.
    
    PR-URL: #31115
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    cb75f56 View commit details
    Browse the repository at this point in the history
  75. fs: use consistent defaults in sync stat functions

    This commit updates the default options used by statSync(),
    lstatSync(), and fstatSync() to be identical to the defaults
    used by the callback- and Promise-based versions.
    
    PR-URL: #31097
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    17a48f1 View commit details
    Browse the repository at this point in the history
  76. doc: fix createDiffieHellman generator type

    OpenSSL does not provide a straight-forward way to implement a
    non-integer generator, so createDiffieHellman never supported anything
    other than a number as the generator. (This only applies to the
    signature where the first argument is the size of the prime, and
    therefore a number.)
    
    Refs: nodejs/node-v0.x-archive#7086
    Refs: #21782
    
    PR-URL: #31121
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    tniessen authored and targos committed Jan 14, 2020
    Copy the full SHA
    91e7c14 View commit details
    Browse the repository at this point in the history
  77. meta: clarify scope of new nodejs.org issue choice

    Refs: nodejs/nodejs.org#2866
    
    PR-URL: #31123
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Derek Lewis authored and targos committed Jan 14, 2020
    Copy the full SHA
    48e1dfe View commit details
    Browse the repository at this point in the history
  78. tools: allow the travis commit message job to fail

    Travis often fails due to a commit message that does not adhere to
    the commit guidelines. We are able to fix the commit message while
    landing and it often confuses new contributors that travis fails.
    Keeping the check in place but allowing a test failure to report
    success should be a good middle ground.
    
    PR-URL: #31116
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    bedc6e2 View commit details
    Browse the repository at this point in the history
  79. doc: de-duplicate security release processes

    The security release process is spread across multiple files. Merge
    these two files to remove duplication and inconsistency. Also, make the
    format more useful for inserting into the description of the Next
    Security Release issue description.
    
    This seems an obvious candidate for a github issue template, but if it
    was, the content would not be reviewable by anyone outside of those on
    the security teams, and the process should be public for purposes of
    transparency and review.
    
    PR-URL: #30996
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    sam-github authored and targos committed Jan 14, 2020
    Copy the full SHA
    25fb34c View commit details
    Browse the repository at this point in the history
  80. benchmark: use let instead of var in crypto

    PR-URL: #31135
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    dnlup authored and targos committed Jan 14, 2020
    Copy the full SHA
    d30911e View commit details
    Browse the repository at this point in the history
  81. perf_hooks: move perf_hooks out of experimental

    PR-URL: #31101
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    e45edab View commit details
    Browse the repository at this point in the history
  82. doc: clarify role of writable.cork()

    The syntax of the sentence describing the role of writable.cork() was
    unclear. This rephrase aims to make the distinction between writing
    to the buffer and draining immediately to the underlying destination
    clearer - while keeping performance considerations clearly in mind.
    
    PR-URL: #30442
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    GKJCJG authored and targos committed Jan 14, 2020
    Copy the full SHA
    7aa7759 View commit details
    Browse the repository at this point in the history
  83. benchmark: add benchmark on async_hooks enabled http server

    PR-URL: #31100
    Refs: nodejs/diagnostics#124
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    b48cfcc View commit details
    Browse the repository at this point in the history
  84. build: don't use -latomic on macOS

    Fixes build when using open-source clang.
    
    Builds using Apple clang from Xcode v7 and later were already working,
    due to the fact that node's build system misidentifies their
    llvm_version as "0.0" and thus the flag wasn't being added.
    
    PR-URL: #30099
    Fixes: #30093
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ryandesign authored and targos committed Jan 14, 2020
    Copy the full SHA
    8ab748e View commit details
    Browse the repository at this point in the history
  85. errors: support prepareSourceMap with source-maps

    Adds support for Error.prepareStackTrace override, when
    --enable-source-maps is set.
    
    PR-URL: #31143
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    bcoe authored and targos committed Jan 14, 2020
    Copy the full SHA
    1a0cda1 View commit details
    Browse the repository at this point in the history
  86. src: suppress warning in src/node_env_var.cc

    Initialise the superclass object in the copy constructor of mapKVStore
    
    PR-URL: #31136
    Refs: #18983
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    HarshithaKP authored and targos committed Jan 14, 2020
    Copy the full SHA
    7858d65 View commit details
    Browse the repository at this point in the history
  87. doc: improve explanation of package.json "type" field

    Regardless of the value of the `"type"` field, `.mjs` files are
    always treated as ES modules and `.cjs` files are always treated
    as CommonJS.
    
    PR-URL: #27516
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    tamias authored and targos committed Jan 14, 2020
    Copy the full SHA
    39dbc10 View commit details
    Browse the repository at this point in the history
  88. test: use spread object

    Object.assign() can be replaced by spread objects
    
    PR-URL: #30423
    Refs: https://eslint.org/docs/rules/prefer-object-spread
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    franher authored and targos committed Jan 14, 2020
    Copy the full SHA
    4022617 View commit details
    Browse the repository at this point in the history
  89. deps: V8: backport a4545db

    Original commit message:
    
        FreeBSD update of process library mapping listing.
    
        Not best to rely on /proc presence basically when
        the linux compatibily layer is enabled so
        going through more programmatically.
    
        Change-Id: Ida4973f9da6dec6e9caa6e419f3612ec5ef95048
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1710664
        Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
        Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#65442}
    
    PR-URL: #31127
    Refs: v8/v8@a4545db
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    devnexen authored and targos committed Jan 14, 2020
    Copy the full SHA
    d905d04 View commit details
    Browse the repository at this point in the history
  90. doc: update REPL documentation to instantiate the REPL

    The documentation currently states that it's not intended to directly
    instantiate REPL instances. It is unknown for what reason that's
    recommended as it does seem a proper way to handle new REPL instances.
    
    PR-URL: #30928
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    f281946 View commit details
    Browse the repository at this point in the history
  91. https: prevent options object from being mutated

    Previously, when passing options object to the agent.createConnection
    method, the same options object got modified within the method. Now,
    any modification will happen on only a copy of the object.
    
    Fixes: #31119
    
    PR-URL: #31151
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    vighnesh153 authored and targos committed Jan 14, 2020
    Copy the full SHA
    3fe37e6 View commit details
    Browse the repository at this point in the history
  92. n-api: keep napi_env alive while it has finalizers

    Manage the napi_env refcount from Finalizer instances, as the
    finalizer may refer to the napi_env until it is deleted.
    
    Fixes: #31134
    Fixes: node-ffi-napi/node-ffi-napi#48
    PR-URL: #31140
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    b69f2dd View commit details
    Browse the repository at this point in the history
  93. deps: upgrade http-parser to v2.9.1

    PR-URL: #30473
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    sam-github authored and targos committed Jan 14, 2020
    Copy the full SHA
    c6600d1 View commit details
    Browse the repository at this point in the history
  94. deps,http: http_parser set max header size to 8KB

    Reapplying HTTP_MAX_HEADER_SIZE=8192 to http_parser.gyp.
    
    CVE-2018-12121
    
    PR-URL: nodejs-private/node-private#143
    Backport-PR-URL: #30473
    Ref: nodejs-private/security#139
    Ref: nodejs-private/http-parser-private#2
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rod Vagg <rod@vagg.org>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    25f2df4 View commit details
    Browse the repository at this point in the history
  95. http: opt-in insecure HTTP header parsing

    Allow insecure HTTP header parsing. Make clear it is insecure.
    
    See:
    - #30553
    - #27711 (comment)
    - #30515
    
    PR-URL: #30567
    Backport-PR-URL: #30473
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sam-github authored and targos committed Jan 14, 2020
    Copy the full SHA
    3a7a3be View commit details
    Browse the repository at this point in the history
  96. test: check that --insecure-http-parser works

    Test that using --insecure-http-parser will disable validation of
    invalid characters in HTTP headers.
    
    See:
    - #30567
    
    PR-URL: #31253
    Backport-PR-URL: #30473
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    sam-github authored and targos committed Jan 14, 2020
    Copy the full SHA
    ccf9038 View commit details
    Browse the repository at this point in the history
  97. deps: V8: cherry-pick cc5016e1b702

    Original commit message:
    
        [postmortem] add metadata for the new DescriptorArray layout
    
        R=yangguo@chromium.org
    
        Ref: nodejs/llnode#255
        Change-Id: Icda271123375db5c381fe1d1bba13dcc26f26d7c
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1832311
        Reviewed-by: Yang Guo <yangguo@chromium.org>
        Commit-Queue: Yang Guo <yangguo@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#64169}
    
    Refs: v8/v8@cc5016e
    PR-URL: #30870
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    mmarchini authored and targos committed Jan 14, 2020
    Copy the full SHA
    8c5e951 View commit details
    Browse the repository at this point in the history
  98. deps: V8: cherry-pick b38dfaf3a633

    Original commit message:
    
        [postmortem] update Symbol and *String metadata
    
        Symbol and *String classes are now declared on Torque with
        generateCppClass, which means they don't use macro accessors anymore. As
        such, the gen-postmortem-metadata script is not able to automatically
        detect fields for those classes. Define metadata for those fields
        manually for now. In the future we might want to generate it from Torque
        for consistency.
    
        Also renamed a few *String fields metadata to match the expected format
        (className__fieldName__fieldType). For more context:
        nodejs/llnode#287 (comment).
    
        R=bmeurer@chromium.org, hpayer@chromium.org, verwaest@chromium.org, yangguo@chromium.org
    
        Change-Id: I82fe8315cdbfd1b8c64c6a8d5dc011b1edaec39e
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1847783
        Reviewed-by: Toon Verwaest <verwaest@chromium.org>
        Commit-Queue: Toon Verwaest <verwaest@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#64313}
    
    Refs: v8/v8@b38dfaf
    PR-URL: #30870
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    mmarchini authored and targos committed Jan 14, 2020
    Copy the full SHA
    015671d View commit details
    Browse the repository at this point in the history
  99. Revert "src: update v8abbr.h for V8 7.7"

    This reverts commit 59b4640.
    PR-URL: #30870
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    mmarchini authored and targos committed Jan 14, 2020
    Copy the full SHA
    6bc2ce2 View commit details
    Browse the repository at this point in the history
  100. Revert "test: update postmortem metadata test for V8 7.7"

    This reverts commit f056d55.
    PR-URL: #30870
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    mmarchini authored and targos committed Jan 14, 2020
    Copy the full SHA
    4fd4a73 View commit details
    Browse the repository at this point in the history
  101. stream: use more accurate end-of-stream writable and readable detection

    The value of stream.readable and stream.writable should not
    be used to detect whether a stream is Writable or Readable.
    
    Refs: #29395
    PR-URL: #29409
    Backport-PR-URL: #31345
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Stewart Addison authored and targos committed Jan 14, 2020
    Copy the full SHA
    536d088 View commit details
    Browse the repository at this point in the history
  102. test: use arrow functions in addons tests

    Convert all anonymous callback functions in `test/addons/**/*.js`
    to use arrow functions, except for those in
    `test/addons/make-callback/test.js` (which reference `this`)
    
    `writing-tests.md` states to use arrow functions when appropriate.
    
    PR-URL: #30131
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    GaryGSC authored and targos committed Jan 14, 2020
    Copy the full SHA
    ee40a00 View commit details
    Browse the repository at this point in the history
  103. lib: flatten access to primordials

    Store all primordials as properties of the primordials object.
    Static functions are prefixed by the constructor's name and prototype
    methods are prefixed by the constructor's name followed by "Prototype".
    For example: primordials.Object.keys becomes primordials.ObjectKeys.
    
    Backport-PR-URL: #30731
    PR-URL: #30610
    Refs: #29766
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    ac7beba View commit details
    Browse the repository at this point in the history
  104. lib: enforce use of Array from primordials

    PR-URL: #30635
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    79dd591 View commit details
    Browse the repository at this point in the history
  105. lib: replace ArrayBuffer.isView by primordial ArrayBuffer

    PR-URL: #30692
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Kawacrepe authored and targos committed Jan 14, 2020
    Copy the full SHA
    67de744 View commit details
    Browse the repository at this point in the history
  106. lib: replace Date.now function by primordial DateNow

    PR-URL: #30689
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Tchoupinax authored and targos committed Jan 14, 2020
    Copy the full SHA
    61bb7b9 View commit details
    Browse the repository at this point in the history
  107. lib: enforce use of Boolean from primordials

    Refs: #30697
    
    PR-URL: #30698
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    2e81795 View commit details
    Browse the repository at this point in the history
  108. lib: use static Number properties from primordials

    PR-URL: #30686
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    targos committed Jan 14, 2020
    Copy the full SHA
    5de272c View commit details
    Browse the repository at this point in the history
  109. lib: enforce use of primordial Number

    PR-URL: #30700
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    d4d6172 View commit details
    Browse the repository at this point in the history
  110. lib: replace Symbol global by the primordials Symbol

    PR-URL: #30737
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    c6535c0 View commit details
    Browse the repository at this point in the history
  111. lib: replace every Symbol.for by SymbolFor primordials

    PR-URL: #30857
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    54aa3b9 View commit details
    Browse the repository at this point in the history
  112. lib: replace Symbol.iterator by SymbolIterator

    PR-URL: #30859
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    22df5dc View commit details
    Browse the repository at this point in the history
  113. lib: enforce use of BigInt from primordials

    PR-URL: #30882
    Refs: #30697
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    d4ea392 View commit details
    Browse the repository at this point in the history
  114. lib: update Symbol.toStringTag by SymbolToStringTag primordial

    PR-URL: #30908
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    d1702f5 View commit details
    Browse the repository at this point in the history
  115. lib: replace Symbol.toPrimitive to SymbolToPrimitive primordials

    PR-URL: #30905
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    7c3ac42 View commit details
    Browse the repository at this point in the history
  116. repl: fix autocomplete when useGlobal is false

    This fixes two issues in the REPL when it is started with a new context
    (useGlobal option set to `false`):
    - The `primordials` object does not contain all builtins, so the
      filtering based on property names from `primordials` was wrong.
    - The autocompleter did not take builtin names into account because
      they are not properties of the context object.
    
    A list of all global builtin names is created lazily when needed. It is
    used for filtering for the copy and for adding those names to the
    autocompleter list.
    
    Fixes: #30792
    
    PR-URL: #30883
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    521458a View commit details
    Browse the repository at this point in the history
  117. lib: add TypedArray constructors to primordials

    PR-URL: #30740
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    b00fcaf View commit details
    Browse the repository at this point in the history
  118. v8: use of TypedArray constructors from primordials

    PR-URL: #30740
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    74f7844 View commit details
    Browse the repository at this point in the history
  119. lib: enforce use of Promise from primordials

    PR-URL: #30936
    Refs: #30697
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@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: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    targos committed Jan 14, 2020
    Copy the full SHA
    31227e6 View commit details
    Browse the repository at this point in the history
  120. lib: replace Symbol.asyncIterator by SymbolAsyncIterator

    PR-URL: #30947
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    5cfcf6f View commit details
    Browse the repository at this point in the history
  121. lib: replace Symbol.hasInstance by SymbolHasInstance

    PR-URL: #30948
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    581e837 View commit details
    Browse the repository at this point in the history
  122. lib: replace Symbol.species by SymbolSpecies

    PR-URL: #30950
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    f33147b View commit details
    Browse the repository at this point in the history
  123. lib: replace Set.prototype with SetPrototype primordial

    PR-URL: #31161
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    b1550a6 View commit details
    Browse the repository at this point in the history
  124. lib: replace WeakMap global by the primordials

    PR-URL: #31158
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    90196b8 View commit details
    Browse the repository at this point in the history
  125. lib: replace WeakSet global by the primordials

    PR-URL: #31157
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    869cd53 View commit details
    Browse the repository at this point in the history
  126. lib: replace Set global by the primordials

    PR-URL: #31154
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    e5b7d64 View commit details
    Browse the repository at this point in the history
  127. lib: replace use of Error with primordials

    PR-URL: #31163
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    02ed713 View commit details
    Browse the repository at this point in the history
  128. lib: replace Map global by the primordials

    PR-URL: #31155
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Sebastien-Ahkrin authored and targos committed Jan 14, 2020
    Copy the full SHA
    0dd8605 View commit details
    Browse the repository at this point in the history
  129. module: reduce circular dependency of internal/modules/cjs/loader

    Previously `internal/bootstrap/pre_execution.js` requires
    `internal/modules/cjs/loader.js` which in turn requires
    `internal/bootstrap/pre_execution.js`. This patch moves the
    entry point execution logic out of `pre_execution.js` and
    puts it into `internal/modules/run_main.js`. It also tests
    that `Module.runMain` can be monkey-patched before further
    deprecation/refactoring can be done.
    
    Also added an internal assertion `hasLoadedAnyUserCJSModule`
    for documentation purposes.
    
    PR-URL: #30349
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    4de6097 View commit details
    Browse the repository at this point in the history
  130. wasi: introduce initial WASI support

    Co-authored-by: Gus Caplan <me@gus.host>
    Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
    Co-authored-by: Jiawen Geng <technicalcute@gmail.com>
    Co-authored-by: Tobias Nießen <tniessen@tnie.de>
    Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
    
    PR-URL: #30258
    Refs: #27850
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Wyatt Preul <wpreul@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    b6ce736 View commit details
    Browse the repository at this point in the history
  131. build: add --without-node-code-cache configure option

    So that it's possible to build without code cache (in particular,
    without building mkcodecache) for testing.
    
    PR-URL: #30647
    Refs: #28845
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    78c46c5 View commit details
    Browse the repository at this point in the history
  132. build: do not build mksnapshot and mkcodecache for --shared

    To build mkcodecache and mksnapshot (they are executables),
    we currently build libnode with unresolved symbols, then build
    the two exectuables with src/node_snapshot_stub.cc and
    src/node_code_cache_stub.cc. Each of them write a C++ file to
    disk when being run. We then use the generated C++ files & libnode
    (with unresolved symbols) to build the final Node executable.
    
    However, if libnode itself is the final product, then we should
    not build it with unresolved symbols.
    #28897 added the two stubs
    for the libnode target when the --shared configure option is used,
    but it did not get rid of the actions to build and run mksnapshot
    and mkcodecache for --shared, so to get it working we also
    need a patch to make sure --shared imply --without-node-code-cache
    and --without-node-snapshot, until we actually fix the TODO so that
    mksnapshot and mkcodecache do not use the libnode that way.
    
    PR-URL: #30647
    Refs: #28845
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    35ce8bb View commit details
    Browse the repository at this point in the history
  133. events: add captureRejection option

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    4265d57 View commit details
    Browse the repository at this point in the history
  134. stream: add support for captureRejection option

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    fa544c8 View commit details
    Browse the repository at this point in the history
  135. http: implement capture rejections for 'request' event

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    cdc33df View commit details
    Browse the repository at this point in the history
  136. http: add captureRejection support to OutgoingMessage

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    99a09a2 View commit details
    Browse the repository at this point in the history
  137. net: implement capture rejections for 'connection' event

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    5eef00a View commit details
    Browse the repository at this point in the history
  138. tls: implement capture rejections for 'secureConnection' event

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    48fcd76 View commit details
    Browse the repository at this point in the history
  139. http2: implement capture rection for 'request' and 'stream' events

    PR-URL: #27867
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    2cc0482 View commit details
    Browse the repository at this point in the history
  140. worker: add argv constructor option

    A convenience option to populate `process.argv` in worker threads.
    
    PR-URL: #30559
    Fixes: #30531
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    81e363a View commit details
    Browse the repository at this point in the history
  141. test: simplify tmpdir import in wasi tests

    PR-URL: #30770
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    11473cc View commit details
    Browse the repository at this point in the history
  142. test: improve wasi test coverage

    Add test coverage for options validation in WASI constructor.
    
    PR-URL: #30770
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    8d0217b View commit details
    Browse the repository at this point in the history
  143. lib: delay access to CLI option to pre-execution

    CLI options should not be added through the config binding, instead
    they are already available in the JS land via
    `require('internal/options')`. Also CLI options in principle should
    be processed in pre-execution instead of bootstrap scripts.
    
    PR-URL: #30778
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    248921b View commit details
    Browse the repository at this point in the history
  144. build: remove (almost) unused macros/constants

    Macros, like CHECK, cause issues for tracking coverage because
    they modify the source before it's placed in V8. Upon investigation
    it seemed that we only used this functionality in two places:
    internal/vm/module.js, and internal/async_hooks.js (in comments).
    
    Given this, it seemed to make more sense to move CHECK to
    JavaScript, and retire a mostly unused build step.
    
    PR-URL: #30755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bcoe authored and targos committed Jan 14, 2020
    Copy the full SHA
    e5e60f5 View commit details
    Browse the repository at this point in the history
  145. repl: use better uncaught exceptions indicator

    This switches "Thrown:" with "Uncaught" to outline clearer that the
    thrown error is not caught.
    
    PR-URL: #29676
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    d4b41f6 View commit details
    Browse the repository at this point in the history
  146. util: improve inspect's customInspect performance

    This improves the performance to copy user options that are then
    passed through to the custom inspect function.
    
    The performance improvement depends on the complexity of the custom
    inspect function. For very basic cases this is 100% faster than
    before.
    
    PR-URL: #30659
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    1fbd7ac View commit details
    Browse the repository at this point in the history
  147. util: add more predefined color codes to inspect.colors

    This adds most commonly used ANSI color codes to
    `util.inspect.colors`.
    
    PR-URL: #30659
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    219c8e9 View commit details
    Browse the repository at this point in the history
  148. assert,util: stricter type comparison using deep equal comparisons

    This veryfies that both input arguments are always of the identical
    type. It was possible to miss a few cases before. This change applies
    to all deep equal assert functions (e.g., `assert.deepStrictEqual()`)
    and to `util.isDeepStrictEqual()`.
    
    PR-URL: #30764
    Refs: #30743
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    1f68004 View commit details
    Browse the repository at this point in the history
  149. test: run more assert tests

    This makes sure the assertion does not depend on the argument order.
    It also removes comments that do not apply anymore and verifies the
    behavior for the loose and strict implementation.
    
    PR-URL: #30764
    Refs: #30743
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    2c27df2 View commit details
    Browse the repository at this point in the history
  150. test: improve WASI options validation

    Refs: https://github.com/nodejs/node/pull/30770/files#r353051438
    
    PR-URL: #30800
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    bb8b11f View commit details
    Browse the repository at this point in the history
  151. src: use checked allocations in WASI::New()

    PR-URL: #30809
    Refs: #30257
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    808a456 View commit details
    Browse the repository at this point in the history
  152. src: free preopen memory in WASI::New()

    PR-URL: #30809
    Refs: #30257
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    1148724 View commit details
    Browse the repository at this point in the history
  153. deps: update uvwasi

    PR-URL: #30745
    Refs: https://github.com/nodejs/quic/blob/34ee0bc96f804c73cb22b2945a1a78f780938492/src/node_mem.h
    Refs: nodejs/quic#126
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    5d545d0 View commit details
    Browse the repository at this point in the history
  154. wasi: use memory-tracking allocator

    This:
    
    - Protects against memory leaks in uvwasi.
    - Allows tracking the allocated memory in heap dumps.
    
    PR-URL: #30745
    Refs: https://github.com/nodejs/quic/blob/34ee0bc96f804c73cb22b2945a1a78f780938492/src/node_mem.h
    Refs: nodejs/quic#126
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    2bb364a View commit details
    Browse the repository at this point in the history
  155. doc: deprecate http finished

    PR-URL: #28679
    Refs: #28651
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    ec514a6 View commit details
    Browse the repository at this point in the history
  156. lib: replace var with let/const

    PR-URL: #30384
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    jens-cappelle authored and targos committed Jan 14, 2020
    Copy the full SHA
    01ea5ba View commit details
    Browse the repository at this point in the history
  157. module: fix require in node repl

    Fixes: #30808
    
    PR-URL: #30835
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ZYSzys authored and targos committed Jan 14, 2020
    Copy the full SHA
    ffc910f View commit details
    Browse the repository at this point in the history
  158. fs: only operate on buffers in rimraf

    PR-URL: #30569
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    76affb6 View commit details
    Browse the repository at this point in the history
  159. fs: retry unlink operations in rimraf

    This commit adds synchronous retry logic to
    the unlinkSync() calls in rimraf.
    
    PR-URL: #30569
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    fb2253e View commit details
    Browse the repository at this point in the history
  160. test: use fs rimraf to refresh tmpdir

    Now that the functionality is built into core, use it to
    refresh the test suite's tmpdir.
    
    PR-URL: #30569
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    b6688ef View commit details
    Browse the repository at this point in the history
  161. fs: synchronize close with other I/O for streams

    Part of the flakiness in the
    parallel/test-readline-async-iterators-destroy test comes from
    fs streams starting `_read()` and `_destroy()` without waiting
    for the other to finish, which can lead to the `fs.read()` call
    resulting in `EBADF` if timing is bad.
    
    Fix this by synchronizing write and read operations with `close()`.
    
    Refs: #30660
    
    PR-URL: #30837
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    c3daa3e View commit details
    Browse the repository at this point in the history
  162. test: wait for stream close before writing to file

    Wait for async operations on a file to finish before writing to it
    again.
    
    This fixes flakiness in parallel/test-readline-async-iterators-destroy.
    
    PR-URL: #30836
    Fixes: #30660
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    bf9a824 View commit details
    Browse the repository at this point in the history
  163. net: remove duplicate _undestroy

    initSocketHandle will call _undestroy.
    
    PR-URL: #30833
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    0638b78 View commit details
    Browse the repository at this point in the history
  164. doc: add code example to inspector.url() method

    PR-URL: #29496
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    juanarbol authored and targos committed Jan 14, 2020
    Copy the full SHA
    b1358d3 View commit details
    Browse the repository at this point in the history
  165. test: work around ENOTEMPTY when cleaning tmp dir

    Replace the homegrown rimrafsync implementation in test/common with
    a call to `fs.rmdirSync(path, { recursive: true })`.
    
    Fixes: #30620
    Fixes: #30844
    
    PR-URL: #30849
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    bnoordhuis authored and targos committed Jan 14, 2020
    Copy the full SHA
    5b78bf2 View commit details
    Browse the repository at this point in the history
  166. lib: refactor NativeModule

    Refactor the internal NativeModule class to a JS class and add
    more documentation about its properties.
    
    PR-URL: #30856
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    1c6e2ec View commit details
    Browse the repository at this point in the history
  167. build: auto-load ICU data from --with-icu-default-data-dir

    When compiled with `--with-intl=small` and
    `--with-icu-default-data-dir=PATH`, Node.js will use PATH as a
    fallback location for the ICU data.
    
    We will first perform an access check using fopen(PATH, 'r') to
    ensure that the file is readable. If it is, we'll set the
    icu_data_directory and proceed. There's a slight overhead for the
    fopen() check, but it should be barely measurable.
    
    This will be useful for Linux distribution packagers who want to
    be able to ship a minimal node binary in a container image but
    also be able to add on the full i18n support where needed. With
    this patch, it becomes possible to ship the interpreter as
    /usr/bin/node in one package for the distribution and to ship the
    data files in another package (without a strict dependency
    between the two). This means that users of the distribution will
    not need to explicitly direct Node.js to locate the ICU data. It
    also means that in environments where full internationalization is
    not required, they do not need to carry the extra content (with
    the associated storage costs).
    
    Refs: #3460
    
    Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
    
    PR-URL: #30825
    Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    sgallagher authored and targos committed Jan 14, 2020
    Copy the full SHA
    67a2a47 View commit details
    Browse the repository at this point in the history
  168. lib: change var to let/const

    PR-URL: #30910
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    rene.herrmann authored and targos committed Jan 14, 2020
    Copy the full SHA
    0266d7f View commit details
    Browse the repository at this point in the history
  169. stream: do not chunk strings and Buffer in Readable.from

    PR-URL: #30912
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    8cd8cd7 View commit details
    Browse the repository at this point in the history
  170. src: unregister Isolate with platform before disposing

    I previously thought the order of these calls was no longer
    relevant. I was wrong.
    
    This commit undoes the changes from 312c02d, adds a comment
    explaining why I was wrong, and flips the order of the calls
    elsewhere for consistency, the latter having been the goal
    of 312c02d.
    
    Fixes: #30846
    Refs: #30181
    
    PR-URL: #30909
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    ace3e70 View commit details
    Browse the repository at this point in the history
  171. test: add test for validation for wasi.start() argument

    PR-URL: #30919
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    7139325 View commit details
    Browse the repository at this point in the history
  172. test: add missing test flags

    test-wasi-start-validation.js should require the
    --experimental-wasi-unstable-preview0 flag in order to run.
    However, due to a recent regression, that hasn't been enforced.
    #30963 fixes the regression
    and will cause this test to start (correctly) failing. This
    commit adds the missing flag.
    
    PR-URL: #30971
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    12e9bad View commit details
    Browse the repository at this point in the history
  173. readline: promote _getCursorPos to public api

    Alias _getCursorPos() = getCursorPos() for backwards
    compatibility.
    
    Refs: #30347
    
    PR-URL: #30687
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Js-Brecht authored and targos committed Jan 14, 2020
    Copy the full SHA
    95f332f View commit details
    Browse the repository at this point in the history
  174. stream: use for...of

    PR-URL: #30960
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    f6acf9a View commit details
    Browse the repository at this point in the history
  175. wasi: require CLI flag to require() wasi module

    This commit ensures that the WASI module cannot be require()'ed
    without a CLI flag while the module is still experimental.
    
    This fixes a regression from
    #30778.
    
    PR-URL: #30963
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    5d2ae05 View commit details
    Browse the repository at this point in the history
  176. test: improve WASI start() coverage

    This commit adds additional test cases to
    test-wasi-start-validation.js, which gets the JS test coverage
    of start() to 100%.
    
    PR-URL: #30972
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    299d518 View commit details
    Browse the repository at this point in the history
  177. test: simplify test-wasi-start-validation.js

    This commit removes an extra block scope, and avoid reading
    the simple.wasm file for every test case.
    
    PR-URL: #30972
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    d676c6c View commit details
    Browse the repository at this point in the history
  178. doc: add note about fs.close() about undefined behavior

    Add notes to fs.close and fs.closeSync() about udnefined behavior.
    
    PR-URL: #30966
    Refs: #30864
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    42ccf22 View commit details
    Browse the repository at this point in the history
  179. async_hooks: ensure proper handling in runInAsyncScope

    We should never try to manually run emitAfter in case of an error,
    the exception handler will do it for us, if we're going to recover.
    
    PR-URL: #30965
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    c6be79a View commit details
    Browse the repository at this point in the history
  180. tls: for...of in _tls_common.js

    PR-URL: #30961
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    ff9b5fc View commit details
    Browse the repository at this point in the history
  181. http: use for...of in http library code

    PR-URL: #30958
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    49a9b31 View commit details
    Browse the repository at this point in the history
  182. assert: use for...of

    Refs: #30960
    
    PR-URL: #30983
    Refs: #30960
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    soar-beep authored and targos committed Jan 14, 2020
    Copy the full SHA
    9da5444 View commit details
    Browse the repository at this point in the history
  183. deps,src,test: update to uvwasi 0.0.3

    This commit updates to uvwasi 0.0.3, which implements a newer
    version of the WASI spec, snapshot_1. Since the WASI API has
    changed, this also requires updating the WebAssembly memory
    interfacing logic and recompiling the WASI tests with a
    version of wasi-libc that supports snapshot_1.
    
    PR-URL: #30980
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    8b11954 View commit details
    Browse the repository at this point in the history
  184. doc,lib,src,test: rename WASI CLI flag

    The WASI API has moved from preview0 to preview1. This commit
    updates the CLI flag accordingly.
    
    PR-URL: #30980
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    8be52c4 View commit details
    Browse the repository at this point in the history
  185. test: remove obsolete WASI test

    test-wasi-binding.js was added during the initial WASI
    development, but it is now considered obsolete. It also does
    not provide any additional test coverage. This commit removes
    it.
    
    PR-URL: #30980
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    e4e086a View commit details
    Browse the repository at this point in the history
  186. events: allow monitoring error events

    Installing an error listener has a side effect that emitted errors are
    considered as handled. This is quite bad for monitoring/logging tools
    which tend to be interested in errors but don't want to cause side
    effects like swallow an exception.
    
    There are some workarounds in the wild like monkey patching emit or
    remit the error if monitoring tool detects that it is the only listener
    but this is error prone and risky.
    
    This PR allows to install a listener to monitor errors with the side
    effect to consume the error. To avoid conflicts with other events it
    exports a symbol on EventEmitter which owns this special meaning.
    
    Refs: open-telemetry/opentelemetry-js#225
    
    PR-URL: #30932
    Refs: open-telemetry/opentelemetry-js#225
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Flarna authored and targos committed Jan 14, 2020
    Copy the full SHA
    62d3beb View commit details
    Browse the repository at this point in the history
  187. buffer: improve .from() error details

    This makes sure the original input is passed to the error in case
    no matching inputs are found. Instead of passing along all values,
    only valid or possibliy valid values are passed through. That way
    invalid values end up in the error case with the original input.
    
    PR-URL: #29675
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    83f02c0 View commit details
    Browse the repository at this point in the history
  188. errors: improve ERR_INVALID_ARG_TYPE

    ERR_INVALID_ARG_TYPE is the most common error used throughout the
    code base. This improves the error message by providing more details
    to the user and by indicating more precisely which values are allowed
    ones and which ones are not.
    
    It adds the actual input to the error message in case it's a primitive.
    If it's a class instance, it'll print the class name instead of
    "object" and "falsy" or similar entries are not named "type" anymore.
    
    PR-URL: #29675
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    1c17f42 View commit details
    Browse the repository at this point in the history
  189. bootstrap: use different scripts to setup different configurations

    This patch splits the handling of `isMainThread` and
    `ownsProcessState` from conditionals in
    `lib/internal/bootstrap/node.js` into different scripts under
    `lib/internal/bootstrap/switches/`, and call them accordingly
    from C++ after `node.js` is run.
    
    This:
    
    - Creates a common denominator of the main thread and the worker
      thread bootstrap that can be snapshotted and shared by
      both.
    - Makes it possible to override the configurations on-the-fly.
    
    PR-URL: #30862
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    joyeecheung authored and targos committed Jan 14, 2020
    Copy the full SHA
    57f29b7 View commit details
    Browse the repository at this point in the history
  190. test: cover vm with negative tests

    Test the impossibility of creating
    an abstract instance of the Module.
    Test of SyntheticModule to throw exception
    if invalid params in constructor
    
    PR-URL: #31028
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Andrew Kuzmenko authored and targos committed Jan 14, 2020
    Copy the full SHA
    b6c815c View commit details
    Browse the repository at this point in the history
  191. lib: improve spelling and grammar in comment

    PR-URL: #31026
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    datatypevoid authored and targos committed Jan 14, 2020
    Copy the full SHA
    4198d9a View commit details
    Browse the repository at this point in the history
  192. test: get lib/wasi.js coverage to 100%

    This commit covers the last remaining uncovered code in
    lib/wasi.js.
    
    PR-URL: #31039
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    1d45ba3 View commit details
    Browse the repository at this point in the history
  193. events: add EventEmitter.on to async iterate over events

    Fixes: #27847
    PR-URL: #27994
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mcollina authored and targos committed Jan 14, 2020
    Copy the full SHA
    b6d09e8 View commit details
    Browse the repository at this point in the history
  194. lib: further simplify assertions in vm/module

    Refs: #30755
    
    PR-URL: #30815
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    5dd9fb2 View commit details
    Browse the repository at this point in the history
  195. doc,vm,test: remove _sandbox_ from vm documentation

    The vm documentation uses the word _sandbox_ but has a significant
    disclaimer about how that should not be interpreted to connote security
    guarantees. Remove the term "sandbox" from documentation. As a result,
    some code and tests also need to change.
    
    PR-URL: #31057
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    ee9e817 View commit details
    Browse the repository at this point in the history
  196. dgram: test to add and to drop specific membership

    Test of addSourceSpecificMembership and dropSourceSpecificMembership
    for correct arguments with sourceAddress, groupAddress.
    
    PR-URL: #31047
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    universePrisoner authored and targos committed Jan 14, 2020
    Copy the full SHA
    83f8939 View commit details
    Browse the repository at this point in the history
  197. stream: simplify isBuf

    PR-URL: #31067
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    a0f5207 View commit details
    Browse the repository at this point in the history
  198. stream: reset flowing state if no 'readable' or 'data' listeners

    If we don't have any 'readable' or 'data' listeners and we are
    not about to resume. Then reset flowing state to initial null state.
    
    PR-URL: #31036
    Fixes: #24474
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    a83c976 View commit details
    Browse the repository at this point in the history
  199. timers: do less work in insert

    Most of the code in insert is only applicable to scheduling
    non-timers or re-scheduling timers. We can skip most of it
    in the case of setTimeout, setInterval & setUnrefTimeout.
    
    PR-URL: #27345
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    facee2a View commit details
    Browse the repository at this point in the history
  200. timers: fix refresh for expired timers

    Expired timers were not being refresh correctly and
    would always act as unrefed if refresh was called.
    
    PR-URL: #27345
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    apapirovski authored and targos committed Jan 14, 2020
    Copy the full SHA
    e5c68cd View commit details
    Browse the repository at this point in the history
  201. src: prevent hard coding stack trace limit

    Refer to Environment::stack_trace_limit() while printing fresh
    stacktraces in c++ land.
    
    PR-URL: #30752
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    legendecas authored and targos committed Jan 14, 2020
    Copy the full SHA
    cc3e427 View commit details
    Browse the repository at this point in the history
  202. deps: uvwasi: cherry-pick 64e59d5

    Original commit message:
    
        This commit ensures that multiple calls to uvwasi_destroy()
        are possible. Prior to this commit, subsequent calls to
        destroy() would abort because the file table's rwlock was
        incorrectly being destroyed multiple times.
    
    PR-URL: #31076
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    a9d9fdb View commit details
    Browse the repository at this point in the history
  203. deps: uvwasi: cherry-pick 75b389c

    Original commit message:
    
        This commit changes the memory management in
        uvwasi_fd_table_init() such that ENOMEM errors can be
        handled better in uvwasi_fd_table_free().
    
    PR-URL: #31076
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    6784296 View commit details
    Browse the repository at this point in the history
  204. wasi: throw on failed uvwasi_init()

    Prior to this commit, if uvwasi_init() failed in any way, Node
    would abort due to a failed CHECK_EQ(). This commit changes
    that behavior to a thrown exception.
    
    PR-URL: #31076
    Fixes: #30878
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    e815655 View commit details
    Browse the repository at this point in the history
  205. doc,wasi: use code markup/markdown in headers

    PR-URL: #31086
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jan 14, 2020
    Copy the full SHA
    c51153c View commit details
    Browse the repository at this point in the history
  206. lib: replace var with let/const

    PR-URL: #30394
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    kresimirfranin authored and targos committed Jan 14, 2020
    Copy the full SHA
    4a7e860 View commit details
    Browse the repository at this point in the history
  207. wasi: fix serdes bugs from snapshot1 migration

    During the migration to WASI snapshot1, a field was removed
    from the subscription type. The field was removed from the
    code, but the bounds checking logic was not updated. This
    commit updates that check.
    
    Similarly, __wasi_linkcount_t changed from a uint32_t to a
    uint64_t. However, the bounds checks were missed, and the code
    was still writing uint32_t's (to the new correct offset) instead
    of uint64_t's. This commit updates that logic as well.
    
    Refs: #30980
    
    PR-URL: #31122
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    80d7b6e View commit details
    Browse the repository at this point in the history
  208. zlib: use for...of

    PR-URL: #31051
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    61da657 View commit details
    Browse the repository at this point in the history
  209. stream: group all properties using defineProperties

    PR-URL: #31144
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    antsmartian authored and targos committed Jan 14, 2020
    Copy the full SHA
    5edfd50 View commit details
    Browse the repository at this point in the history
  210. http: free listeners on free sockets

    Reduced memory usage by ensuring free sockets don't have extra
    listeners while in the pool.
    
    PR-URL: #29259
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ronag authored and targos committed Jan 14, 2020
    Copy the full SHA
    b840eb7 View commit details
    Browse the repository at this point in the history
  211. http: http_outgoing rename var to let and const

    PR-URL: #30284
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    telenord authored and targos committed Jan 14, 2020
    Copy the full SHA
    725daeb View commit details
    Browse the repository at this point in the history
  212. doc: use code markup/markdown in headers

    This also allows us to remove backslash escaping for `[` and `]`
    inside of header code, which makes the bare markdown more readable.
    
    Refs: #31086
    
    PR-URL: #31149
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    4bbf584 View commit details
    Browse the repository at this point in the history
  213. doc: remove extra backtick

    PR-URL: #31186
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    cjihrig authored and targos committed Jan 14, 2020
    Copy the full SHA
    625ed70 View commit details
    Browse the repository at this point in the history
  214. lib: do not catch user errors

    The API caught errors from inside of the users passed through callback.
    This never caused any issues, since this API is only used internally.
    Otherwise it would have potentially hidden bugs in user code.
    
    Refs: #31133
    
    PR-URL: #31159
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    BridgeAR authored and targos committed Jan 14, 2020
    Copy the full SHA
    4a1cb3d View commit details
    Browse the repository at this point in the history
  215. perf_hooks: use for...of

    PR-URL: #31049
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    trivikr authored and targos committed Jan 14, 2020
    Copy the full SHA
    59e2975 View commit details
    Browse the repository at this point in the history
  216. http2: set default enableConnectProtocol to 0

    PR-URL: #31174
    Refs: https://tools.ietf.org/html/rfc8441#section-9.1
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ZYSzys authored and targos committed Jan 14, 2020
    Copy the full SHA
    20a8175 View commit details
    Browse the repository at this point in the history
  217. test: change buffer offset to accommodate V8 BackingStore

    To avoid problem with the behavior of new V8 BackingStore API,
    change the offset. The base address of each test case will be
    different.
    
    Fixes: #31061
    
    PR-URL: #31171
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    thangktran authored and targos committed Jan 14, 2020
    Copy the full SHA
    18cd002 View commit details
    Browse the repository at this point in the history
  218. benchmark: use let instead of var in dgram

    PR-URL: #31175
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    dnlup authored and targos committed Jan 14, 2020
    Copy the full SHA
    4ee5665 View commit details
    Browse the repository at this point in the history
  219. wasi: refactor destructuring object on constructor

    PR-URL: #31185
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    himself65 authored and targos committed Jan 14, 2020
    Copy the full SHA
    ff47915 View commit details
    Browse the repository at this point in the history
  220. lib: move initialization of APIs for changing process state

    Whether these APIs should be available for Node.js instances
    semantically depends on whether the current Node.js instance
    was assigned ownership of process-wide state, and not whether
    it refers to the main thread or not.
    
    PR-URL: #31172
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    69eaff1 View commit details
    Browse the repository at this point in the history
  221. src: mark ArrayBuffers with free callbacks as untransferable

    More precisely, make them untransferable if they were created through
    *our* APIs, because those do not follow the improved free callback
    mechanism that V8 uses now. All other ArrayBuffers can be transferred
    between threads now, the assumption being that they were created in a
    clean way that follows the V8 API on this.
    
    This addresses a TODO comment.
    
    Refs: #30339 (comment)
    
    PR-URL: #30475
    Backport-PR-URL: #31355
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    4c1d172 View commit details
    Browse the repository at this point in the history
  222. buffer: release buffers with free callbacks on env exit

    Invoke the free callback for a given `Buffer` if it was created
    with one, and mark the underlying `ArrayBuffer` as detached.
    
    This makes sure that the memory is released e.g. when addons inside
    Workers create such `Buffer`s.
    
    PR-URL: #30551
    Backport-PR-URL: #31355
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax authored and targos committed Jan 14, 2020
    Copy the full SHA
    8252c06 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. deps: V8: cherry-pick d89f4ef1cd62

    Original commit message:
    
        S390x: improve performance by skipping Debug Hook if not needed
    
        Change-Id: Ib4b2821f2941cdc131f9c75b89a3baced7554f8d
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1991802
        Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
        Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
        Cr-Commit-Position: refs/heads/master@{#65644}
    
    Refs: v8/v8@d89f4ef
    
    PR-URL: #31354
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Milad Farazmand authored and targos committed Jan 15, 2020
    Copy the full SHA
    09e4182 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. module: loader getSource, getFormat, transform hooks

    PR-URL: #30986
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    GeoffreyBooth authored and MylesBorins committed Jan 28, 2020
    Copy the full SHA
    cad0402 View commit details
    Browse the repository at this point in the history
  2. module: logical conditional exports ordering

    PR-URL: #31008
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    guybedford authored and MylesBorins committed Jan 28, 2020
    Copy the full SHA
    fae517a View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2020

  1. module: unflag conditional exports

    PR-URL: #31001
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    guybedford authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    616a4ee View commit details
    Browse the repository at this point in the history
  2. module: fix check exports issue in cjs module loading

    Refs: #31001 (comment)
    
    PR-URL: #31427
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    guybedford authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    db5ec52 View commit details
    Browse the repository at this point in the history
  3. test,module: add test for exports cjs loader check

    Refs: #31001 (comment)
    
    PR-URL: #31427
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Trott authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    ad4af04 View commit details
    Browse the repository at this point in the history
  4. deps: V8: cherry-pick 0dfd9ea51241

    Original commit message:
    
        [coverage] Fix coverage with default arguments
    
        In the presence of default arguments, the body of the function gets
        wrapped into another block. This caused our trailing-range-after-return
        optimization to not apply, because the wrapper block had no source
        range assigned. This CL correctly assignes a source range to that block,
        which allows already present code to handle it correctly.
    
        Note that this is not a real coverage bug; we've just been reporting
        whitespace as uncovered. We're fixing it for consistency.
    
        Originally reported on github.com/bcoe/c8/issues/66
    
        Bug: v8:9952
        Change-Id: Iab3905f558eb99126e0dad8072d03d0a312fdcd3
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1903430
        Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
        Reviewed-by: Toon Verwaest <verwaest@chromium.org>
        Reviewed-by: Jakob Gruber <jgruber@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#64836}
    
    Refs: v8/v8@0dfd9ea
    
    Backport-PR-URL: #31412
    PR-URL: #30713
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    bcoe authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    02d7283 View commit details
    Browse the repository at this point in the history
  5. http2: make HTTP2ServerResponse more streams compliant

    HTTP2ServerResponse.write would behave differently than
    both http1 and streams. This PR makes it more compliant
    with stream.Writable behaviour.
    
    Backport-PR-URL: #31444
    PR-URL: #30964
    Refs: #29529
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ronag authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    f63e440 View commit details
    Browse the repository at this point in the history
  6. n-api: implement napi_is_detached_arraybuffer

    This implements ArrayBuffer#IsDetachedBuffer operation as per ECMAScript
    specification Section 24.1.1.2 https://tc39.es/ecma262/#sec-isdetachedbuffer
    
    Closes: #29955
    
    Backport-PR-URL: #31422
    PR-URL: #30613
    Fixes: #29955
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    lundibundi authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    ea3d4e8 View commit details
    Browse the repository at this point in the history
  7. util: fix .format() not always calling toString when it should be

    This makes sure that `util.format('%s', object)` will always call
    a user defined `toString` function. It was formerly not the case
    when the object had the function declared on the super class.
    
    At the same time this also makes sure that getters won't be
    triggered accessing the `constructor` property.
    
    Backport-PR-URL: #31431
    PR-URL: #30343
    Fixes: #30333
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    a1ce776 View commit details
    Browse the repository at this point in the history
  8. benchmark: add more util inspect and format benchmarks

    This adds a couple of benchmarks to check different options and code
    paths.
    
    Backport-PR-URL: #31431
    PR-URL: #30767
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    a1555cb View commit details
    Browse the repository at this point in the history
  9. util: improve performance inspecting proxies

    This makes sure we do not retrieve the handler in case it's not
    required. This improves the performance a tiny bit for these cases.
    
    Backport-PR-URL: #31431
    PR-URL: #30767
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    a309ee1 View commit details
    Browse the repository at this point in the history
  10. util: never trigger any proxy traps using format()

    Backport-PR-URL: #31431
    PR-URL: #30767
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    bbf39bc View commit details
    Browse the repository at this point in the history
  11. util: fix built-in detection

    This makes sure that the regular expression matches all built-in
    objects properly. So far a couple where missed.
    
    Backport-PR-URL: #31431
    PR-URL: #30768
    Fixes: #30183
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    40a724c View commit details
    Browse the repository at this point in the history
  12. util: inspect (user defined) prototype properties

    This is only active if the `showHidden` option is truthy.
    
    The implementation is a trade-off between accuracy and performance.
    This will miss properties such as properties added to built-in data
    types.
    
    The goal is mainly to visualize prototype getters and setters such as:
    
    class Foo {
      ownProperty = true
      get bar() {
        return 'Hello world!'
      }
    }
    
    const a = new Foo()
    
    The `bar` property is a non-enumerable property on the prototype while
    `ownProperty` will be set directly on the created instance.
    
    The output is similar to the one of Chromium when inspecting objects
    closer. The output from Firefox is difficult to compare, since it's
    always a structured interactive output and was therefore not taken
    into account.
    
    Backport-PR-URL: #31431
    PR-URL: #30768
    Fixes: #30183
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    b0e3aec View commit details
    Browse the repository at this point in the history
  13. util: refactor inspect code for constistency

    This removes the special handling to inspect iterable objects with
    a null prototype. It is now handled together with the regular
    prototype.
    
    Backport-PR-URL: #31431
    PR-URL: #30225
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    3b9360d View commit details
    Browse the repository at this point in the history
  14. util: add (typed) array length to the default output

    Align the inspect output with the one used in the Chrome dev tools.
    A recent survey outlined that most users prefer to see the number
    of set and map entries. This should count as well for array sizes.
    The size is only added to regular arrays in case the constructor is
    not the default constructor.
    Typed arrays always indicate their size.
    
    Backport-PR-URL: #31431
    PR-URL: #31027
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    cc19d08 View commit details
    Browse the repository at this point in the history
  15. src: accept single argument in getProxyDetails

    This makes sure this function stays backwards compatible in case
    it's accessed through the binding directly.
    
    Refs: #29947 (comment)
    
    Backport-PR-URL: #31431
    PR-URL: #30858
    Refs: #30767
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    6f5ced6 View commit details
    Browse the repository at this point in the history
  16. util: improve prototype inspection using inspect() and showHidden

    The fast path for the prototype inspection had a bug that caused some
    prototype properties to be skipped that should in fact be inspected.
    
    Backport-PR-URL: #31431
    PR-URL: #31113
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    fc0febe View commit details
    Browse the repository at this point in the history
  17. assert: fix generatedMessage property

    This makes sure the `generatedMessage` property is always set as
    expected. This was not the case some `assert.throws` and
    `assert.rejects` calls.
    
    Backport-PR-URL: #31431
    PR-URL: #28263
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    e938784 View commit details
    Browse the repository at this point in the history
  18. assert: DRY .throws code

    This refactors some code for less duplication.
    
    Backport-PR-URL: #31431
    PR-URL: #28263
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    881ebce View commit details
    Browse the repository at this point in the history
  19. doc: update assert.throws() examples

    This updates two outdated examples to the current implementation.
    
    Backport-PR-URL: #31431
    PR-URL: #28263
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    6d8a541 View commit details
    Browse the repository at this point in the history
  20. doc: make AssertionError a link

    This makes sure that `AssertionError` links to the correct place in
    the assert documentation.
    
    Backport-PR-URL: #31431
    PR-URL: #28263
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    5c6a6b8 View commit details
    Browse the repository at this point in the history
  21. assert: implement assert.match() and assert.doesNotMatch()

    This adds a new functionality to the assertion module: a dedicated
    check for regular expressions. So far it's possible to use
    `assert.ok(regexp.test(string))`. This is not ideal though when it
    comes to the error message, since it's not possible to know how
    either of the input values look like. It's just known that the
    assertion failed.
    This allows to pass through the regular expression and the input
    string. The string is then matched against the regular expression
    and reports a expressive error message in case of a failure.
    
    Backport-PR-URL: #31431
    PR-URL: #30929
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    BridgeAR authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    67ec97a View commit details
    Browse the repository at this point in the history
  22. 2020-02-12, Version 12.15.0 'Erbium' (LTS)

    Notable changes:
    
    TODO
    
    PR-URL: #31368
    targos authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    b9d15b3 View commit details
    Browse the repository at this point in the history
  23. wip notable changes

    targos authored and MylesBorins committed Jan 30, 2020
    Copy the full SHA
    905d8ff View commit details
    Browse the repository at this point in the history
  24. fixup: update changelog

    MylesBorins committed Jan 30, 2020
    Copy the full SHA
    8ad9952 View commit details
    Browse the repository at this point in the history
  25. fixup: add moar commits

    MylesBorins committed Jan 30, 2020
    Copy the full SHA
    dc5c052 View commit details
    Browse the repository at this point in the history