Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v10.5.0 proposal #21400

Merged
merged 150 commits into from
Jun 20, 2018
Merged

v10.5.0 proposal #21400

merged 150 commits into from
Jun 20, 2018

Commits on Jun 13, 2018

  1. lib: add validateInteger() validator

    This allows validation of integers that are not int32 or uint32.
    
    PR-URL: #20851
    Fixes: #20844
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    
    Backport-PR-URL: #21171
    Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
    2 people authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a0cfb0c View commit details
    Browse the repository at this point in the history
  2. fs: add length validation to fs.truncate()

    This commit adds validation to the length parameter of
    fs.truncate(). Prior to this commit, passing a non-number would
    trigger a CHECK() in the binding layer.
    
    Backport-PR-URL: #21171
    PR-URL: #20851
    Fixes: #20844
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    
    Backport-PR-URL: #21171
    Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
    2 people authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    469baa0 View commit details
    Browse the repository at this point in the history
  3. fs: don't limit ftruncate() length to 32 bits

    The length used by ftruncate() is 64 bits in the binding layer.
    This commit removes the 32 bit restriction in the JS layer.
    
    Backport-PR-URL: #21171
    PR-URL: #20851
    Fixes: #20844
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    
    Backport-PR-URL: #21171
    Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
    2 people authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    fc0b361 View commit details
    Browse the repository at this point in the history
  4. process: backport process/methods file

    To ease future backports, create the process/methods file introduced in
    #19973. This commit just adds
    the JS functions that forward calls to C++ and does not change type
    checking.
    
    PR-URL: #21172
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    fc2956d View commit details
    Browse the repository at this point in the history
  5. lib: mask mode_t type of arguments with 0o777

    - Introduce the `validateAndMaskMode` validator that
      validates `mode_t` arguments and mask them with 0o777
      if they are 32-bit unsigned integer or octal string
      to be more consistent with POSIX APIs.
    - Use the validator in fs APIs and process.umask for
      consistency.
    - Add tests for 32-bit unsigned modes larger than 0o777.
    
    PR-URL: #20636
    Fixes: #20498
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    
    Backport-PR-URL: #21172
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2fe88d2 View commit details
    Browse the repository at this point in the history
  6. doc: document file mode caveats on Windows

    - On Windows only the write permission (read-only bit) can be
      manipulated, and there is no distinction among owner, group
      or others.
    - mkdir on Windows does not support the mode argument.
    
    PR-URL: #20636
    Fixes: #20498
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    
    Backport-PR-URL: #21172
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a5c5714 View commit details
    Browse the repository at this point in the history
  7. fs: drop duplicate API in promises mode

    This drops exporting duplicate methods that accept FileHandle as the
    first argument (to mirror callback-based methods accepting 'fd').
    
    Those methods were not adding actual value to the API because all of
    those are already present as FileHandle methods, and they would
    probably be confusing to the new users and making docs harder to read.
    
    Also, the API was a bit inconsistent and lacked .close(handle).
    
    Fixes: #20548
    PR-URL: #20559
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    
    Backport-PR-URL: #21172
    ChALkeR authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2ffb9d6 View commit details
    Browse the repository at this point in the history
  8. lib: support ranges in validateInt32()

    This commit adds minimum and maximum value checks to the
    validateInt32() validator.
    
    PR-URL: #20588
    Fixes: #20498
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    
    Backport-PR-URL: #21172
    cjihrig authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    36e5100 View commit details
    Browse the repository at this point in the history
  9. fs: improve fchmod{Sync} validation

    This commit validates the fd parameters to fs.fchmod{Sync} as
    int32s instead of uint32s because they are ints in the binding
    layer.
    
    PR-URL: #20588
    Fixes: #20498
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    
    Backport-PR-URL: #21172
    cjihrig authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    db0bb52 View commit details
    Browse the repository at this point in the history
  10. fs: refactor fs module

    PR-URL: #20764
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    
    Backport-PR-URL: #21172
    jasnell authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    bacb2cb View commit details
    Browse the repository at this point in the history
  11. test: increase coverage for fs.promises.truncate

    To increase test coverage, added tests for fs.promises.truncate
    and FileHandle.truncate.
    
    PR-URL: #20638
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    
    Backport-PR-URL: #21172
    Masashi Hirano authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    94dcdfb View commit details
    Browse the repository at this point in the history
  12. src: refactor bootstrap to use bootstrap object

    PR-URL: #20917
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    
    Backport-PR-URL: #21172
    jasnell authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ba17c9e View commit details
    Browse the repository at this point in the history
  13. doc: fix inconsistent documentation (host vs hostname)

    Update reference to read `hostname` instead of `host` for consistency.
    
    Also update function signature to use `hostname` rather than `host`
    
    PR-URL: #20933
    Refs: #20892
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    
    Backport-PR-URL: #21172
    davisokoth authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    9f9355d View commit details
    Browse the repository at this point in the history
  14. lib: unmask mode_t values with 0o777

    This commit allows permission bits higher than 0o777 to go through
    the API (e.g. `S_ISVTX`=`0o1000`, `S_ISGID`=`0o2000`,
    `S_ISUID`=`0o4000`).
    
    Also documents that these bits are not exposed through `fs.constants`
    and their behaviors are platform-specific, so the users need to
    use them on their own risk.
    
    PR-URL: #20975
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    
    Backport-PR-URL: #21172
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    b4b7d36 View commit details
    Browse the repository at this point in the history
  15. fs: do not crash when using a closed fs event watcher

    Before this commit, when the user calls methods on a closed or
    errored fs event watcher, they could hit a crash since the
    FSEventWrap in C++ land may have already been destroyed with
    the internal pointer set to nullptr. This commit makes sure
    that the user cannot hit crashes like that, instead the
    methods calling on a closed watcher will be noops.
    
    Also explicitly documents that the watchers should not be used
    in `close` and `error` event handlers.
    
    PR-URL: #20985
    Fixes: #20738
    Fixes: #20297
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Ron Korving <ron@ronkorving.nl>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    
    Backport-PR-URL: #21172
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c09bfd8 View commit details
    Browse the repository at this point in the history
  16. async_hooks: remove deprecated example

    PR-URL: #20998
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    
    Backport-PR-URL: #21172
    mafintosh authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a6986fe View commit details
    Browse the repository at this point in the history
  17. n-api: remove unused napi_env member

    `wrap_template` is no longer used since we've switched to v8::Private.
    
    PR-URL: #21127
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    9047c81 View commit details
    Browse the repository at this point in the history
  18. src: cleanup per-isolate state on platform on isolate unregister

    Clean up once all references to an `Isolate*` are gone from the
    `NodePlatform`, rather than waiting for the `PerIsolatePlatformData`
    struct to be deleted since there may be cyclic references between
    that struct and the individual tasks.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    de7403f View commit details
    Browse the repository at this point in the history
  19. src: remove unused fields isolate_

    Currently the following compiler warnings are generated:
    
    In file included from ../src/node_platform.cc:1:
    ../src/node_platform.h:83:16:
    warning: private field 'isolate_' is not used [-Wunused-private-field]
      v8::Isolate* isolate_;
                   ^
    1 warning generated.
    
    This commit removes these unused private member.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    danbev authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    65924c7 View commit details
    Browse the repository at this point in the history
  20. src: simplify handle closing

    Remove one extra closing state and use a smart pointer for
    deleting `HandleWrap`s.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e6f0680 View commit details
    Browse the repository at this point in the history
  21. src: make handle onclose property a Symbol

    This makes the property “more” hidden when exposing a `HandleWrap`
    as public API, e.g. for upcoming `MessagePort`s.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    9a73413 View commit details
    Browse the repository at this point in the history
  22. worker: implement MessagePort and MessageChannel

    Implement `MessagePort` and `MessageChannel` along the lines of
    the DOM classes of the same names. `MessagePort`s initially
    support transferring only `ArrayBuffer`s.
    
    Thanks to Stephen Belanger for reviewing this change in its
    original form, to Benjamin Gruenbaum for reviewing the
    added tests in their original form, and to Olivia Hugger
    for reviewing the documentation in its original form.
    
    Refs: ayojs/ayo#98
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    337be58 View commit details
    Browse the repository at this point in the history
  23. worker: support MessagePort passing in messages

    Support passing `MessagePort` instances through other `MessagePort`s,
    as expected by the `MessagePort` spec.
    
    Thanks to Stephen Belanger for reviewing this change in its original PR.
    
    Refs: ayojs/ayo#106
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    f447acd View commit details
    Browse the repository at this point in the history
  24. worker: add SharedArrayBuffer sharing

    Logic is added to the `MessagePort` mechanism that
    attaches hidden objects to those instances when they are transferred
    that track their lifetime and maintain a reference count, to make
    sure that memory is freed at the appropriate times.
    
    Thanks to Stephen Belanger for reviewing this change in its original PR.
    
    Refs: ayojs/ayo#106
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    d1f372f View commit details
    Browse the repository at this point in the history
  25. src: remove unused fields msg_ and env_

    Currently the following compiler warnings are generated:
    
    ../src/node_messaging.cc:74:16:
    warning: private field 'env_' is not used [-Wunused-private-field]
      Environment* env_;
                   ^
    ../src/node_messaging.cc:75:12:
    warning: private field 'msg_' is not used [-Wunused-private-field]
      Message* msg_;
               ^
    2 warnings generated.
    
    This commit removes these unused private members.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    danbev authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    5209ff9 View commit details
    Browse the repository at this point in the history
  26. src: add Env::profiler_idle_notifier_started()

    Refs: ayojs/ayo#93
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    TimothyGu authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    314b47d View commit details
    Browse the repository at this point in the history
  27. worker: initial implementation

    Implement multi-threading support for most of the API.
    
    Thanks to Stephen Belanger for reviewing this change in its
    original form, to Olivia Hugger for reviewing the
    documentation and some of the tests coming along with it,
    and to Alexey Orlenko and Timothy Gu for reviewing other
    parts of the tests.
    
    Refs: ayojs/ayo#110
    Refs: ayojs/ayo#114
    Refs: ayojs/ayo#117
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    109c92e View commit details
    Browse the repository at this point in the history
  28. test: add test against unsupported worker features

    Refs: ayojs/ayo#113
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    TimothyGu authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    93ce63c View commit details
    Browse the repository at this point in the history
  29. worker: restrict supported extensions

    Only allow `.js` and `.mjs` extensions to provide future-proofing
    for file type detection.
    
    Refs: ayojs/ayo#117
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Olivia Hugger <olivia@fastmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    TimothyGu authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c97fb91 View commit details
    Browse the repository at this point in the history
  30. worker: enable stdio

    Provide `stdin`, `stdout` and `stderr` options for the `Worker`
    constructor, and make these available to the worker thread
    under their usual names.
    
    The default for `stdin` is an empty stream, the default for
    `stdout` and `stderr` is redirecting to the parent thread’s
    corresponding stdio streams.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    6b1a887 View commit details
    Browse the repository at this point in the history
  31. benchmark: port cluster/echo to worker

        $ ./node benchmark/cluster/echo.js
        cluster/echo.js n=100000 sendsPerBroadcast=1 payload="string" workers=1: 33,647.30473442063
        cluster/echo.js n=100000 sendsPerBroadcast=10 payload="string" workers=1: 12,927.907405288383
        cluster/echo.js n=100000 sendsPerBroadcast=1 payload="object" workers=1: 28,496.37373941151
        cluster/echo.js n=100000 sendsPerBroadcast=10 payload="object" workers=1: 8,975.53747186485
        $ ./node --experimental-worker benchmark/worker/echo.js
        worker/echo.js n=100000 sendsPerBroadcast=1 payload="string" workers=1: 88,044.32902365089
        worker/echo.js n=100000 sendsPerBroadcast=10 payload="string" workers=1: 39,873.33697018837
        worker/echo.js n=100000 sendsPerBroadcast=1 payload="object" workers=1: 64,451.29132425621
        worker/echo.js n=100000 sendsPerBroadcast=10 payload="object" workers=1: 22,325.635443739284
    
    Refs: ayojs/ayo#115
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    TimothyGu authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ecba1c5 View commit details
    Browse the repository at this point in the history
  32. worker: improve error (de)serialization

    Rather than passing errors using some sort of string representation,
    do a best effort for faithful serialization/deserialization of
    uncaught exception objects.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    9ad42b7 View commit details
    Browse the repository at this point in the history
  33. test,tools: enable running tests under workers

    Enable running tests inside workers by passing `--worker`
    to `tools/test.py`. A number of tests are marked as skipped,
    or have been slightly altered to fit the different environment.
    
    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ed05d9a View commit details
    Browse the repository at this point in the history
  34. doc: explain Worker semantics in async_hooks.md

    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    6caa354 View commit details
    Browse the repository at this point in the history
  35. worker: rename to worker_threads

    PR-URL: #20876
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    03fbc9e View commit details
    Browse the repository at this point in the history
  36. test: create new directory v8-updates

    `v8-updates` holds all tests related to V8 updates, for example, testing
    for postmortem metadata chages.
    
    PR-URL: #20783
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Matheus Marchini authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e16036c View commit details
    Browse the repository at this point in the history
  37. test: add test for Linux perf

    This commit adds a test to validate if Linux perf is working correctly
    on Node.js. The test is marked as flaky because its intention is to let
    us know when changes on V8 potentially broke Linux perf, so we can fix
    it before a new version of V8 lands on Node.js master.
    
    PR-URL: #20783
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Matheus Marchini authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a4ad989 View commit details
    Browse the repository at this point in the history
  38. test: improve debug output in trace-events test

    test-trace-events-fs-sync is swallowing useful information when it
    fails. This change results in more information being displayed.
    
    PR-URL: #21120
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c400448 View commit details
    Browse the repository at this point in the history
  39. src, tools: add check for left leaning pointers

    This commit adds a rule to cpplint to check that pointers in the code
    base lean to the left and not right, and also fixes the violations
    reported.
    
    PR-URL: #21010
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    cbdc1fd View commit details
    Browse the repository at this point in the history
  40. test: apply promises API to third appendFile test

    Add tests for `fs.promises.appendFile()` to the third (of five) test
    case in `test-fs-access`. (First and second test cases already have
    promises API versions.)
    
    PR-URL: #21131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    185b9e4 View commit details
    Browse the repository at this point in the history
  41. test: apply promises API to fourth appendFile test

    Add tests for `fs.promises.appendFile()` to the fourth (of five) test
    case in `test-fs-access`. (The previous test cases already have
    promises API versions.)
    
    PR-URL: #21131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    aa9dbf6 View commit details
    Browse the repository at this point in the history
  42. test: apply promises API to fourth appendFile test

    Add tests for `fs.promises.appendFile()` to the last test
    case in `test-fs-access`. (The previous test cases already have
    promises API versions.)
    
    PR-URL: #21131
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    14a017c View commit details
    Browse the repository at this point in the history
  43. benchmark: disable only the ESLint rule needing it

    In the spread-assign.js benchmark file, all ESLint rules are disabled
    for a line where only no-unused-vars needs to be disabled. This change
    makes it so that the remaining rules are still applied to the line.
    
    PR-URL: #21133
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4b9817b View commit details
    Browse the repository at this point in the history
  44. test,tools: refactor custom ESLint for readability

    Refactor the test and the source for the `lowercase-name-for-primitive`
    custom ESLint rule for readability.
    
    PR-URL: #21134
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c9cee63 View commit details
    Browse the repository at this point in the history
  45. doc: simplify deprecation language

    Change instances of `foo has been deprecated` to `foo is deprecated` and
    similar.
    
    PR-URL: #21136
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    73b8975 View commit details
    Browse the repository at this point in the history
  46. doc: streamline errors.md introductory material

    PR-URL: #21138
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    06ac81e View commit details
    Browse the repository at this point in the history
  47. doc: alphabetize tls options

    Alphabetize the lists of options for tls.createServer() and
    tls.createSecureContext().
    
    PR-URL: #21139
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    72e7e1d View commit details
    Browse the repository at this point in the history
  48. doc: remove spaces around slashes

    Remove spaces around slash characters in documentation. This change
    sometimes rewords the content where the slash construction may not be
    what is called for.
    
    PR-URL: #21140
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2c4f80f View commit details
    Browse the repository at this point in the history
  49. win, build: add documentation support to vcbuild

    Adds `doc` option to vcbuild.bat which will install node-doc-generator
    dependencies and build the documentation in the %config%\doc folder.
    
    Adds `lint-md-build` option which will download markdown linter.
    
    Adds `lint-md` option, included by default in `lint` and `test` options
    which will run linter on the markdown files in the doc folder.
    
    PR-URL: #19663
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    bzoz authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    917960e View commit details
    Browse the repository at this point in the history
  50. test: remove unref in http2 test

    The bug referenced in this TODO was fixed and this test no longer
    requires this code to pass.
    
    PR-URL: #21145
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    0b0370f View commit details
    Browse the repository at this point in the history
  51. child_process: swallow errors in internal communication

    Much like with NODE_HANDLE_ACK, the internal protocol for communication
    about the sent socket should not expose its errors to the users when
    those async calls are not initiated by them.
    
    PR-URL: #21108
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ea4be72 View commit details
    Browse the repository at this point in the history
  52. fs: support BigInt in fs.*stat and fs.watchFile

    Add the `bigint: true` option to all the `fs.*stat` methods and
    `fs.watchFile`.
    
    PR-URL: #20220
    Fixes: #12115
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    04e8f07 View commit details
    Browse the repository at this point in the history
  53. doc: document BigInt support in fs.Stats

    PR-URL: #20220
    Fixes: #12115
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    joyeecheung authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    fe5d351 View commit details
    Browse the repository at this point in the history
  54. test: make url-parse-invalid-input engine agnostic

    test-url-parse-invalid-input checks the message of an error that is
    generated by the JavaScript engine. Error messages that change in the
    underlying JavaScript engine should not be breaking changes in Node.js
    and therefore should not cause tests to fail. Remove the message check
    and replace it with a check of the type of the Error object along with
    the absence of a `code` property. (If a `code` property were present, it
    would indicate that the error was coming from Node.js rather than the
    JavaScript engine.)
    
    This also makes this test usable without modification in the ChakraCore
    fork of Node.js.
    
    PR-URL: #21132
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    3d8ec8f View commit details
    Browse the repository at this point in the history
  55. deps: V8: cherry-pick a440efb27f from upstream

    Original commit message:
    
      [api] do not require source string for producing code cache.
    
      The embedder should not need to keep track of the source string.
    
      R=jgruber@chromium.org
    
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
      Change-Id: Ie27df755a22fbcae7b6e87a435419d2d8f545558
      Reviewed-on: https://chromium-review.googlesource.com/1013482
      Reviewed-by: Jakob Gruber <jgruber@chromium.org>
      Commit-Queue: Yang Guo <yangguo@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#52614}
    
    PR-URL: #21022
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    hashseed authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    14bb905 View commit details
    Browse the repository at this point in the history
  56. src: cleanup beforeExit for consistency

    PR-URL: #21113
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    39b3875 View commit details
    Browse the repository at this point in the history
  57. src: add node_encoding.cc

    Continue moving bits of code out of node.cc ... add node_encoding.cc
    as a home for `ParseEncoding` and related functions.
    
    PR-URL: #21112
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    jasnell authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    8e2e167 View commit details
    Browse the repository at this point in the history
  58. doc: naming function as suggested in addon docs

    PR-URL: #21067
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    allevo authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    5fa5ab6 View commit details
    Browse the repository at this point in the history
  59. build: initial .travis.yml implementation

    Refs: ayojs/ayo#14
    Refs: ayojs/ayo#75
    Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    
    PR-URL: #21059
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    79b3423 View commit details
    Browse the repository at this point in the history
  60. src: add consistency check to node_platform.cc

    We use the `Isolate*` pointer as the sole identifier
    for a V8 Isolate. In some environments (e.g. multi-threaded),
    Isolates may be destroyed and new ones created; then, it
    may happen that the memory that was previously used for
    one `Isolate` can be re-used for another `Isolate`
    after the first one has been disposed of.
    
    This check is a little guard against accidentally
    re-using the same per-Isolate platform data structure
    in such cases, i.e. making sure (to the degree to which
    that is possible) that the old `Isolate*` has been properly
    unregistered before one at the same memory address is added.
    
    (It’s not 100 % foolproof because the `uv_loop_t*`
    pointer value could theoretically be the same as well.)
    
    PR-URL: #21156
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4757771 View commit details
    Browse the repository at this point in the history
  61. build: fix 'gas_version' check on localized environments

    Some GNU assembler versions got localized outputs like...
    
    ```
    Gnu assembler versão 2.30 (x86_64-linux-gnu) usando versão BFD (GNU Binutils for Ubuntu) 2.30
    ```
    
    failing regex checker and the whole configure process.
    
    PR-URL: #20394
    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>
    oliveiraev authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c688a00 View commit details
    Browse the repository at this point in the history
  62. test: make url-util-format engine agnostic

    test-util-format checks the message of an error that is
    generated by the JavaScript engine. Error messages that change in the
    underlying JavaScript engine should not be breaking changes in Node.js
    and therefore should not cause tests to fail. Remove the message check
    and replace it with a check of the type of the Error object along with
    the absence of a `code` property. (If a `code` property were present, it
    would indicate that the error was coming from Node.js rather than the
    JavaScript engine.)
    
    This also makes this test usable without modification in the ChakraCore
    fork of Node.js.
    
    PR-URL: #21141
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    9c3a7bf View commit details
    Browse the repository at this point in the history
  63. n-api: improve runtime perf of n-api func call

    Added a new struct CallbackBundle to eliminate all
    GetInternalField() calls.
    
    The principle is to store all required data inside a C++ struct,
    and then store the pointer in the JavaScript object. Before this
    change, the required data are stored in the JavaScript object in
    3 or 4 seperate pointers. For every napi fun call, 3 of them
    have to be fetched out, which are 3 GetInternalField() calls;
    after this change, the C++ struct will be directly fetched out
    by using v8::External::Value(), which is faster.
    
    Profiling data show that GetInternalField() is slow.
    On an i7-4770K (3.50GHz) box, a C++ V8-binding fun call is 8 ns,
    before this change, napi fun call is 36 ns; after this change,
    napi fun call is 20 ns.
    
    The above data are measured using a modified benchmark in
    'benchmark/misc/function_call'. The modification adds an indicator
    of the average time of a "chatty" napi fun call (max 50M runs).
    This change will speed up chatty case 1.8x (overall), and will cut
    down the delay of napi mechanism to approx. 0.5x.
    
    Background: a simple C++ binding function (e.g. receiving little
    from JS, doing little and returning little to JS) is called
    'chatty' case for JS<-->C++ fun call routine.
    
    This improvement also applies to getter/setter fun calls.
    
    PR-URL: #21072
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    kenny-y authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    1dc9330 View commit details
    Browse the repository at this point in the history
  64. doc: add Michaël Zasso to Release team

    PR-URL: #21114
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    85dc9ac View commit details
    Browse the repository at this point in the history
  65. test: move test-readuint to test-buffer-readuint

    Backport of a changed test from
    #20054
    
    PR-URL: #21170
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2ff4704 View commit details
    Browse the repository at this point in the history
  66. test: improve internal/buffer.js test coverage

    Added tests buffer.js methods to write 48 bit value to
    improve test coverage.
    
    PR-URL: #21061
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Masashi Hirano authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    17954c2 View commit details
    Browse the repository at this point in the history
  67. lib,src: remove openssl feature conditionals

    Remove compile-time and run-time conditionals for features that
    OpenSSL 1.0.0 and 1.0.1 didn't support: ALPN, OCSP and/or SNI.
    They are no longer necessary since our baseline is OpenSSL 1.0.2.
    
    PR-URL: #21094
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a657984 View commit details
    Browse the repository at this point in the history
  68. tools: remove unused global types from type-parser

    `tools/doc/type-parser.js` has several global types that are not
    used. Remove the unused global types.
    
    PR-URL: #21135
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ed2b57b View commit details
    Browse the repository at this point in the history
  69. test: mark fs-readfile-tostring-fail flaky for all

    test-fs-readfile-tostring-fail is unreliable until a libuv fix lands.
    
    It had previously been marked flaky on macOS, but it has been observed
    to also fail on AIX. Mark it flaky everywhere.
    
    Refs: libuv/libuv#1742
    
    PR-URL: #21177
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2655c7b View commit details
    Browse the repository at this point in the history
  70. build: don't change locale on smartos

    PR-URL: #21220
    Fixes: nodejs/build#1327
    Refs: #20394
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    refack authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    78c7d66 View commit details
    Browse the repository at this point in the history
  71. tools: update tooling to work with new macOS CLI …

    Using High Sierra and `xcode-select --install` without installing full
    Xcode, our build tooling breaks due to faulty regular expressions.
    
    Update the `configure` script in our project root directory to handle
    multi-digit version numbers.
    
    `tools/gyp` and `deps/npm/node_modules/node-gyp` still need to be
    updated for a complete fix.
    
    PR-URL: #21173
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4e742e3 View commit details
    Browse the repository at this point in the history
  72. build: use LC_ALL of C for maximum compatibility

    LC_ALL=en_US breaks on some systems (notably the SmartOS 16
    configuration in our CI). Use LC_ALL=C instead.
    
    PR-URL: #21222
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    b044256 View commit details
    Browse the repository at this point in the history
  73. dns: improve setServers() errors and performance

    Issue 1: make invalid setServers yield uniform error
    
    Behavior:
    dns.setServers throws a null pointer dereference on some inputs.
    Expected behavior was the more pleasant
      TypeError [ERR_INVALID_IP_ADDRESS] ...
    
    Root cause(s?):
    - Dereferencing the result of a regex match without confirming
      that there was a match.
    - assuming the capture of an optional group (?)
    
    Solution:
    Confirm the match, and handle a missing port cleanly.
    
    Tests: I added tests for various unusual inputs.
    
    Issue 2: revise quadratic regex in setServers
    
    Problem:
    The IPv6 regex was quadratic.
    On long malicious input the event loop could block.
    
    The security team did not deem it a security risk,
    but said a PR was welcome.
    
    Solution:
    Revise the regex to a linear-complexity version.
    
    Tests:
    I added REDOS tests to the "oddities" section.
    
    Fixes: #20441
    Fixes: #20443
    
    PR-URL: #20445
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    davisjam authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    65b9c42 View commit details
    Browse the repository at this point in the history
  74. test: improve assert error messages

    Improve the assert error message so it includes actual value in
    the error message.
    
    PR-URL: #21160
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    hristijankiko authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4d782c4 View commit details
    Browse the repository at this point in the history
  75. build: stop distclean from deleting v8 files

    Stop `make distclean` from deleting files in the `deps/v8/testing/gmock`
    folder, thus avoiding deleting version-controlled files important for
    v8.
    
    Fixes: #21163
    
    PR-URL: #21164
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@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>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    ryzokuken authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    76927fc View commit details
    Browse the repository at this point in the history
  76. doc: fix type in stream doc

    Extend return type of `read()` method with `any` which is a
    valid return type for readable streams in object mode.
    
    PR-URL: #21178
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    KonanMentor authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    5e46c16 View commit details
    Browse the repository at this point in the history
  77. src: do not persist timer handle in cares_wrap

    Instead of relying on garbage collection to close the timer handle,
    manage its state more explicitly.
    
    PR-URL: #21093
    Fixes: #18190
    Refs: #18307
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    685b9b2 View commit details
    Browse the repository at this point in the history
  78. src: do not persist fs_poll handle in stat_watcher

    Instead of relying on garbage collection to close the handle,
    manage its state more explicitly.
    
    PR-URL: #21093
    Fixes: #18190
    Refs: #18307
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4f01168 View commit details
    Browse the repository at this point in the history
  79. test: check gc does not resurrect the loop

    PR-URL: #21093
    Fixes: #18190
    Refs: #18307
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    bda34ea View commit details
    Browse the repository at this point in the history
  80. tools: add BigInt to globals

    PR-URL: #21237
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    seishun authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    7f70fe8 View commit details
    Browse the repository at this point in the history
  81. test: move inspector-stress-http to sequential

    test-inspector-stress-http launches 100 simultaneous http requests. It
    is unreliable in the parallel directory (as can be seen with
    tools/test.py and sufficiently high -j and --repeat values). Move to
    sequential.
    
    PR-URL: #21227
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    187951c View commit details
    Browse the repository at this point in the history
  82. test: remove string literals from assert.strictEqual() calls

    In test/parallel/test-intl.js, five calls to assert.strictEqual() use a
    third, string-literal parameter, which specifies a message to display
    when the assertion fails. The problem is that if the assertion fails,
    the error message will show the string literal but not the values that
    caused the assertion to fail.
    
    This commit removes the third parameter from the five calls and makes
    them comments above the assertions instead. The default error message
    produced by assert.strictEqual() shows the values that caused the
    assertion to fail, which should be somewhat more helpful.
    
    PR-URL: #21211
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    kylstraj authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2270ab2 View commit details
    Browse the repository at this point in the history
  83. http: remove a pair of outdated comments

    Fixes: #21202
    
    PR-URL: #21214
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    qubyte authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    6aade4a View commit details
    Browse the repository at this point in the history
  84. test: add crypto check to test-http2-debug

    This commit adds a crypto check to test-http2-debug.js as it currently
    will error if configured --without-ssl.
    
    The issue here is that the while the test spawns a child process that
    runs test-http2-ping.js, which does have a crypto check, it will just
    print '1..0 # Skipped: missing crypto' to stdout, and nothing to stderr
    which is what this test is trying to assert and hence failing.
    
    PR-URL: #21205
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    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: Luigi Pinca <luigipinca@gmail.com>
    danbev authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    688bdfe View commit details
    Browse the repository at this point in the history
  85. http2: safer Http2Session destructor

    It's hypothetically (and with certain V8 flags) possible for the session
    to be garbage collected before all the streams are. In that case, trying
    to remove the stream from the session will lead to a segfault due to
    attempting to access no longer valid memory. Fix this by unsetting the
    session on any streams still around when destroying.
    
    PR-URL: #21194
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    dee250f View commit details
    Browse the repository at this point in the history
  86. src: fix http2 typos

    PR-URL: #21194
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    apapirovski authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e92b89a View commit details
    Browse the repository at this point in the history
  87. tools: add option to use custom template with js2c.py

    PR-URL: #21187
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    codebytere authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a5c386d View commit details
    Browse the repository at this point in the history
  88. build: build addon tests in parallel

    Use a JS script to build addons rather than a shell command
    embedded in the Makefile, because parallelizing is hard in sh
    and easy in JS.
    
    PR-URL: #21155
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    896017b View commit details
    Browse the repository at this point in the history
  89. build: install markdown linter for travis

    Run `make lint-md-build` to install the markdown linter.
    
    PR-URL: #21215
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    richardlau authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c3fbac4 View commit details
    Browse the repository at this point in the history
  90. test: mark test-inspector-port-zero-cluster flaky

    Mark test-inspector-port-zero-cluster flaky on Linux. Also,
    alphabetize win32 entries in status file.
    
    PR-URL: #21251
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e8d15cb View commit details
    Browse the repository at this point in the history
  91. test: add workerdata-sharedarraybuffer test

    This functionality works but was previously untested.
    
    PR-URL: #21180
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Fishrock123 authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    792335f View commit details
    Browse the repository at this point in the history
  92. doc: fix reference to workerData in worker_threads

    This was previously incorrect.
    
    PR-URL: #21180
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Fishrock123 authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    dd2fc90 View commit details
    Browse the repository at this point in the history
  93. doc: trim deprecation level definition text

    Provide more concise explanations of the deprecation levels in
    COLLABORATOR_GUIDE.md.
    
    PR-URL: #21241
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    6f7de0b View commit details
    Browse the repository at this point in the history
  94. meta: remove CODEOWNERS

    The CODEOWNERS file is not working out. It is not pinging any groups
    other than TSC (and more-or-less can't), and it pings TSC mostly for all
    the wrong things.
    
    It was a valiant effort, and possible worth revisiting at a future date
    when functionality is closer to what we need. But for now, let us bid it
    adieu.
    
    PR-URL: #21161
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Trott authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    5d3dfed View commit details
    Browse the repository at this point in the history
  95. src: unify native symbol inspection code

    Use a single file, and a single interface, for inspecting
    symbols in the current process for debugging.
    
    PR-URL: #21238
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    aa468ab View commit details
    Browse the repository at this point in the history
  96. worker,src: display remaining handles if uv_loop_close fails

    Right now, we crash the process if there are handles remaining
    on the event loop when we exit (except for the main thread).
    
    This does not provide a lot of information about causes, though;
    in particular, we don’t show which handles are pending and
    who own them.
    
    This patch adds debug output to these cases to help with the
    situation.
    
    PR-URL: #21238
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4a54ebc View commit details
    Browse the repository at this point in the history
  97. crypto: DRY type checking

    Factor out some common code.  The `checkUint()` function will also be
    used in a follow-up commit that adds scrypt support to core.
    
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    4957562 View commit details
    Browse the repository at this point in the history
  98. crypto: add scrypt() and scryptSync() methods

    Scrypt is a password-based key derivation function that is designed to
    be expensive both computationally and memory-wise in order to make
    brute-force attacks unrewarding.
    
    OpenSSL has had support for the scrypt algorithm since v1.1.0.  Add a
    Node.js API modeled after `crypto.pbkdf2()` and `crypto.pbkdf2Sync()`.
    
    Changes:
    
    * Introduce helpers for copying buffers, collecting openssl errors, etc.
    
    * Add new infrastructure for offloading crypto to a worker thread.
    
    * Add a `AsyncWrap` JS class to simplify pbkdf2(), randomBytes() and
      scrypt().
    
    Fixes: #8417
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    c9b4592 View commit details
    Browse the repository at this point in the history
  99. crypto: refactor pbkdf2() and pbkdf2Sync() methods

    Use the scrypt() infrastructure to reimplement pbkdf2() in a simpler
    manner.
    
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    6262fa4 View commit details
    Browse the repository at this point in the history
  100. crypto: refactor randomBytes()

    Use the scrypt() infrastructure to reimplement randomBytes() and
    randomFill() in a simpler manner.
    
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    2d9c3cc View commit details
    Browse the repository at this point in the history
  101. crypto: drop Math.pow(), use static exponentation

    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    d0cb9cb View commit details
    Browse the repository at this point in the history
  102. build: expose openssl scrypt functions to addons

    Add scrypt functions to the list of exported openssl symbols.
    
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    02adb2d View commit details
    Browse the repository at this point in the history
  103. lib: replace checkUint() with validateInt32()

    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    f3570f2 View commit details
    Browse the repository at this point in the history
  104. lib: rename checkIsArrayBufferView()

    Rename it to validateArrayBufferView() to align with validateInt32()
    and friends.
    
    Swap the name and the value in the argument list for consistency,
    although any reasonable person will agree it's a crime against
    humanity to put the value before the name.
    
    PR-URL: #20816
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bnoordhuis authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    fb71337 View commit details
    Browse the repository at this point in the history
  105. deps: patch V8 to 6.7.288.46

    PR-URL: #21260
    Refs: v8/v8@6.7.288.45...6.7.288.46
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    MylesBorins authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    ffc29c1 View commit details
    Browse the repository at this point in the history
  106. esm: ensure require.main for CJS top-level loads

    PR-URL: #21150
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    guybedford authored and targos committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    a75e44d View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. doc: move Italo A. Casas to Release Emeritus

    Have confirmed 1:1 that they are ok with this.
    
    PR-URL: #21315
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    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: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Italo A. Casas <me@italoacasas.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    MylesBorins authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    0da910f View commit details
    Browse the repository at this point in the history
  2. src: do proper error checking in AsyncWrap::MakeCallback

    At least one method on a native object is added as a getter,
    namely `MessagePort.prototype.onmessage`. When a MessagePort
    attempts to call this method from C++ in response to receiving
    data, it will first invoke that getter and then call the function.
    
    Since `worker.terminate()` interrupts execution, this means
    that the getter may fail (without being faulty code on its own).
    This means that at least one test exercising these methods in
    combination has been flaky and could have crashed, because
    we did not actually check that the getter returns a value
    so far, resulting in dereferencing an empty `Local`.
    
    The proper fix for this is to use the non-deprecated overload
    of `Get()` and check the result like we should be doing.
    Also, as a (related) fix, don’t crash if the method
    is not a function but rather something else, like a getter
    could provide.
    
    Example test failure: https://ci.nodejs.org/job/node-test-commit-linux-containered/4976/nodes=ubuntu1604_sharedlibs_zlib_x64/console
    
        17:56:56 not ok 1955 parallel/test-worker-dns-terminate
        17:56:56   ---
        17:56:56   duration_ms: 1.237
        17:56:56   severity: crashed
        17:56:56   exitcode: -11
        17:56:56   stack: |-
    
    PR-URL: #21189
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    671346e View commit details
    Browse the repository at this point in the history
  3. doc: add build wg info to releases.md

    PR-URL: #21275
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    maclover7 authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    13fd09b View commit details
    Browse the repository at this point in the history
  4. v8: replace Buffer with FastBuffer in deserialize

    Replace the Buffer constructor with a FastBuffer in v8.deserialize in
    order to avoid calling the Buffer constructor and thus triggering a
    deprecation warning from code inside the core.
    
    Fixes: #21181
    
    PR-URL: #21196
    Fixes: #21181
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ryzokuken authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    d46446a View commit details
    Browse the repository at this point in the history
  5. src: use %zx in printf for size_t

    This fixes a compiler warning on Windows.
    
    PR-URL: #21323
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    addaleax authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    7fa1344 View commit details
    Browse the repository at this point in the history
  6. doc: update NODE_OPTIONS section in cli.md

    PR-URL: #21229
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    vsemozhetbyt authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    c1d53f8 View commit details
    Browse the repository at this point in the history
  7. n-api: name CallbackBundle function fields

    Use field names rather than indices.
    
    Refs: #21072
    
    PR-URL: #21240
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    169bff3 View commit details
    Browse the repository at this point in the history
  8. test: improve statwatcher async_hooks test

    Modify the `fs.watchFile()` async hooks test to be more
    accurate; currently, it relies on undocumented methods
    and the fact that they use `MakeCallback()` even though
    there is always a JS stack below.
    
    PR-URL: #21244
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    dea3ac7 View commit details
    Browse the repository at this point in the history
  9. lib,src: make StatWatcher a HandleWrap

    Wrapping libuv handles is what `HandleWrap` is there for.
    This allows a decent reduction of state tracking machinery
    by moving active-ness tracking to JS, and removing all
    interaction with garbage collection.
    
    Refs: #21093
    
    PR-URL: #21244
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    addaleax authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    740d9f1 View commit details
    Browse the repository at this point in the history
  10. test: removing unnecessary parameter from assert call

    Removed unnecessary parameter from assert call in
    test/parallel/test-stream2-basic.js.
    
    Fixes: #21305
    
    PR-URL: #21307
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    djmgit authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    0b00172 View commit details
    Browse the repository at this point in the history
  11. doc: move 5 collaborators to emeritus status

    Move 5 Collaborators to emeritus status. These particular five
    Collaborators have done some great stuff, but have been relatively
    inactive during the last two years or so. (They have been asked via
    email if they would like to remain Collaborators or more to Emeritus.
    This isn't a suddent thing.)
    
    PR-URL: #21272
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Trott authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    c5a6559 View commit details
    Browse the repository at this point in the history
  12. deps: Upgrade node-inspect to 1.11.5

    Removes the prompt to report a bug when trying to launch the
    debugger using a port that is already in use.
    
    Changeset generated via:
    
    ```
    rm -rf deps/node-inspect node-inspect-* && \
      curl -sSL "https://github.com/nodejs/node-inspect/archive/v1.11.5.tar.gz" | \
      tar -xzvf - && mv node-inspect-* deps/node-inspect
    ```
    
    PR-URL: #21055
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Jan Krems authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    0b90b07 View commit details
    Browse the repository at this point in the history
  13. test: add test to check colorMode type of Console

    PR-URL: #21248
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Masashi Hirano authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    d7ba75f View commit details
    Browse the repository at this point in the history
  14. tools: add BigInt64Array and BigUint64Array to globals

    PR-URL: #21255
    Refs: #21237
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    joyeecheung authored and targos committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    521f8f1 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2018

  1. doc: clarify async execute callback usage

    Clarify that calls to N-API should be avoided in
    the 'execute' callback.
    
    PR-URL: #21217
    Refs: nodejs/help#1318
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    mhdawson authored and targos committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    df0f7a3 View commit details
    Browse the repository at this point in the history
  2. inspector: stop dragging platform pointer

    It is now easily accessible from the Environment
    
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    eugeneo authored and targos committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    296fd57 View commit details
    Browse the repository at this point in the history
  3. doc: make Deprecation cycle explanation more brief

    The Deprecation cycle explanation in the COLLABORATOR_GUIDE.md file is
    now more concise.
    
    PR-URL: #21303
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    e1b571d View commit details
    Browse the repository at this point in the history
  4. deps: float ea7abee from openssl / CVE-2018-0732

    Pending OpenSSL 1.1.0i release.
    
    PR-URL: #21282
    Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Upstream: openssl/openssl@ea7abee
    
    Original commit message:
    
        Reject excessively large primes in DH key generation.
    
        CVE-2018-0732
    
        Signed-off-by: Guido Vranken <guidovranken@gmail.com>
    
        (cherry picked from commit 91f7361f47b082ae61ffe1a7b17bb2adf213c7fe)
    
        Reviewed-by: Tim Hudson <tjh@openssl.org>
        Reviewed-by: Matt Caswell <matt@openssl.org>
        (Merged from openssl/openssl#6457)
    rvagg authored and targos committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    e4a7e0d View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2018

  1. test: fix deprecation warning due to util.print

    PR-URL: #21265
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Lance Ball <lball@redhat.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    9353093 View commit details
    Browse the repository at this point in the history
  2. crypto: fix behavior of createCipher in wrap mode

    The old implementation silently failed in EVP_CipherInit_ex in
    EVP_CIPH_WRAP_MODE, this commit should fix that.
    
    PR-URL: #21287
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    9981220 View commit details
    Browse the repository at this point in the history
  3. perf_hooks: set bootstrap complete in only one place

    PR-URL: #21247
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    jasnell authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    8fddf59 View commit details
    Browse the repository at this point in the history
  4. perf_hooks: remove less useful bootstrap marks

    While `perf_hooks` is still in experimental, remove less useful
    bootstrap milestones.
    
    PR-URL: #21247
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    jasnell authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    a3fd1cd View commit details
    Browse the repository at this point in the history
  5. workers,trace_events: set thread name for workers

    Set the thread name for workers in trace events. Also,
    use uint64_t for thread_id_ because there's really no
    reason for those to be doubles
    
    PR-URL: #21246
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    jasnell authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    dfb5cf6 View commit details
    Browse the repository at this point in the history
  6. doc: switch the order of Writable and Readable

    This change places the links to Writable stream and Readble stream
    in the order these sections appear when scrolling down the screen.
    
    PR-URL: #21333
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Joseph Gordon authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    e00e5e6 View commit details
    Browse the repository at this point in the history
  7. Revert "workers,trace_events: set thread name for workers"

    This reverts commit a24b691.
    
    PR-URL: #21363
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    jasnell authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    529d24e View commit details
    Browse the repository at this point in the history
  8. doc: wrap releases.md at 80 chars

    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    9e994cb View commit details
    Browse the repository at this point in the history
  9. doc: correct styling of _GitHub_ in onboarding doc

    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    3f78220 View commit details
    Browse the repository at this point in the history
  10. doc: remove linking of url text to url

    Linking URL text to itself is superfluous. It will display as a link in
    GitHub anyway. Bonus: This makes it possible to wrap the line at 80
    characters.
    
    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    b8213f1 View commit details
    Browse the repository at this point in the history
  11. doc: wrap pull-requests.md at 80 characters

    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    6c41f33 View commit details
    Browse the repository at this point in the history
  12. doc: wrap style guide at 80 characters

    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    4566eba View commit details
    Browse the repository at this point in the history
  13. tools: lint doc/*.md files

    Makefile tasks only lint doc/**/*.md files but omit files that match
    doc/*.md. This change adds these previously-omitted files to the list of
    files to be linted.
    
    PR-URL: #21361
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    98346de View commit details
    Browse the repository at this point in the history
  14. doc: use Class Method label consistently

    The Buffer doc has a helpful "Class Method" label before static methods
    on the Buffer class. The only other class in the docs that I can find
    with static methods is ECDH in crypto. Add the label to the one static
    method on the ECDH class.
    
    PR-URL: #21357
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Trott authored and targos committed Jun 16, 2018
    Configuration menu
    Copy the full SHA
    4f17841 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2018

  1. doc: fix heading of optional console method args

    PR-URL: #21311
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    ef74368 View commit details
    Browse the repository at this point in the history
  2. doc: fix indentation in console.md

    PR-URL: #21367
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    vsemozhetbyt authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    17c21b6 View commit details
    Browse the repository at this point in the history
  3. http2: fix memory leak for uncommon headers

    Fix a memory leak that occurs with header names that are
    short and not present in the static table of default headers.
    
    PR-URL: #21336
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    addaleax authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    bcaf59c View commit details
    Browse the repository at this point in the history
  4. src: remove unused argc var in node_stat_watcher

    Currently the following compiler warning is reported:
    ../src/node_stat_watcher.cc:113:13: warning:
    unused variable 'argc' [-Wunused-variable]
      const int argc = args.Length();
                ^
    1 warning generated.
    
    This commit removes the unused argc variable.
    
    PR-URL: #21337
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@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: James M Snell <jasnell@gmail.com>
    danbev authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    78ad4e9 View commit details
    Browse the repository at this point in the history
  5. doc: add davisjam to collaborators

    PR-URL: #21273
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    davisjam authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    15023df View commit details
    Browse the repository at this point in the history
  6. doc: remove obsolete wiki references from BUILDING

    Remove obsolete wiki references from BUILDING.md.
    
    PR-URL: #21369
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    177a7c0 View commit details
    Browse the repository at this point in the history
  7. doc: use imperative in COLLABORATOR_GUIDE

    Instead of wording the paragraph about communicating deprecations with
    the ecosystem as if it were directed at the ecosystem, write it as in
    imperative directed at the collaborator, since that is the audience for
    the COLLABORATOR_GUIDE. Instead of assuring the reader that a best
    effort will be made, instruct the reader to make the effort to
    communicate with the ecosystem.
    
    PR-URL: #21340
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    318d683 View commit details
    Browse the repository at this point in the history
  8. tools: do not disable quotes rule in .eslintrc.js

    Re-enable `quotes` rule in .eslintrc.js and fix code to abide by the
    rule. As a bonus, this makes the code (IMO, anyway) more readable. (It
    certainly isn't *less* readable, at least not IMO.)
    
    PR-URL: #21338
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    6285fe9 View commit details
    Browse the repository at this point in the history
  9. net: emit 'close' when socket ends before connect

    Don't set `writable` to true when a socket connects if the socket is
    already in an ending state.
    
    In the existing code, afterConnect always set `writable` to true.  This
    has been the case for a long time, but previous to commit
    9b7a691, the socket would still be
    destroyed by `destroySoon` and emit a `'close'` event. Since that
    commit removed this masking behavior, we have relied on maybeDestroy to
    destroy the socket when the readble state is ended, and that won't
    happen if `writable` is set to true.
    
    If the socket has `allowHalfOpen` set to true, then `destroy` will still
    not be called and `'close'` will not be emitted.
    
    PR-URL: #21290
    Fixes: #21268
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Brett Kiefer authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    18c057a View commit details
    Browse the repository at this point in the history
  10. loader: remove unused error code in module_job

    PR-URL: #21354
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    devsnek authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    653b20b View commit details
    Browse the repository at this point in the history
  11. doc: eliminate _you_ from N-API doc

    The STYLE_GUIDE indicates that personal pronouns like "you" should be
    avoided in reference documentation. Remove "you" from N-API doc.
    
    PR-URL: #21382
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Trott authored and targos committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    bc20ec0 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2018

  1. 2018-16-20, Version 10.5.0 (Current)

    Notable changes:
    
    * **crypto**:
      * Support for `crypto.scrypt()` has been added.
        [#20816](#20816)
    * **fs**:
      * BigInt support has been added to `fs.stat` and `fs.watchFile`.
        [#20220](#20220)
      * APIs that take `mode` as arguments no longer throw on values larger
        than `0o777`. [#20636](#20636)
        [#20975](#20975)
        (Fixes: [#20498](#20498))
      * Fix crashes in closed event watchers.
        [#20985](#20985)
        (Fixes: [#20297](#20297))
    * **Worker Threads**:
      * Support for multi-threading has been added behind the
        `--experimental-worker` flag in the `worker_threads` module.
        This feature is *experimental* and may receive breaking changes at
        any time. [#20876](#20876)
    
    PR-URL: #21400
    targos committed Jun 20, 2018
    Configuration menu
    Copy the full SHA
    e1c28f4 View commit details
    Browse the repository at this point in the history