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

v9.9.0 proposal #19428

Merged
merged 134 commits into from Mar 21, 2018
Merged

v9.9.0 proposal #19428

merged 134 commits into from Mar 21, 2018

Commits on Mar 13, 2018

  1. doc: improve assert documentation

    1) Separate all loose and strict functions.
    2) Stronger outline the used comparison rules in (not)deepStrictEqual
    3) Fix SameValue comparison info
    
    Backport-PR-URL: #19230
    PR-URL: #17002
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 13, 2018
    Copy the full SHA
    5a78c6c View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2018

  1. assert: add strict functionality export

    Requireing the strict version will allow to use `assert.equal`,
    `assert.deepEqual` and there negated counterparts to be used with
    strict comparison instead of using e.g. `assert.strictEqual`.
    
    The API is identical to the regular assert export and only differs
    in the way that all functions use strict compairson.
    
    Backport-PR-URL: #19230
    PR-URL: #17002
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    bae5de1 View commit details
    Browse the repository at this point in the history
  2. assert: use object argument in innerFail

    Right now it is difficult to know what argument stands for what
    property. By refactoring the arguments into a object it is clear
    what stands for what.
    
    Backport-PR-URL: #19230
    PR-URL: #17582
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    db73d1c View commit details
    Browse the repository at this point in the history
  3. assert: fix throws and doesNotThrow stack frames

    The stack frames from .throws and .doesNotThrow got included
    even though that was not intended.
    
    Backport-PR-URL: #19230
    PR-URL: #17703
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    24aeca7 View commit details
    Browse the repository at this point in the history
  4. test: refactor common.expectsError

    A combination of try catch and common.expectsError is not necessary
    as the latter already does everything on its own.
    
    Backport-PR-URL: #19230
    PR-URL: #17703
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    1e5c7e3 View commit details
    Browse the repository at this point in the history
  5. assert: improve assert.throws

    Throw a TypeError in case a error message is provided in the second
    argument and a third argument is present as well.
    This is clearly a mistake and should not be done.
    
    Backport-PR-URL: #19230
    PR-URL: #17585
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    612ba1a View commit details
    Browse the repository at this point in the history
  6. doc: improve .throws RegExp info

    It was not clear why the error name is actually also tested for when
    using a regular expression. This is now clarified.
    
    Backport-PR-URL: #19230
    PR-URL: #17585
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    7457093 View commit details
    Browse the repository at this point in the history
  7. assert: .throws accept objects

    From now on it is possible to use a validation object in throws
    instead of the other possibilites.
    
    Backport-PR-URL: #19230
    PR-URL: #17584
    Refs: #17557
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ron Korving <ron@ronkorving.nl>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    ebd60fa View commit details
    Browse the repository at this point in the history
  8. assert: fix strict regression

    Using `assert()` or `assert.ok()` resulted in a error since a
    refactoring.
    
    Refs: #17582
    
    Backport-PR-URL: #19230
    PR-URL: #17903
    Refs: #17582
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f96ea47 View commit details
    Browse the repository at this point in the history
  9. lib: handle throw undefined in assert.throws()

    And make `assert.doesNotThrow()` handle it as well.
    
    Backport-PR-URL: #19230
    PR-URL: #18029
    Fixes: #18027
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    b35eabb View commit details
    Browse the repository at this point in the history
  10. util: fix custom inspect description

    Using a custom inspect function on the inspected object is
    deprecated. Remove the reference from the option description
    to make sure the user will read about the deprecation in the
    more detailed description.
    
    Backport-PR-URL: #19230
    PR-URL: #17576
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    fd4c05a View commit details
    Browse the repository at this point in the history
  11. util: rename util.inspect argument

    util.inspect can actually receive any property and the description
    was wrong so far. This fixes it by renaming the argument to
    value and also updating the description.
    
    Backport-PR-URL: #19230
    PR-URL: #17576
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    ce3a5af View commit details
    Browse the repository at this point in the history
  12. util: add util.inspect compact option

    The current default formatting is not ideal and this improves
    the situation by formatting the output more intuitiv.
    
    1) All object keys are now indented by 2 characters instead of
       sometimes 2 and sometimes 3 characters.
    2) Each object key will now use an individual line instead of
       sharing a line potentially with multiple object keys.
    3) Long strings will now be split into multiple lines in case
       they exceed the "lineBreak" option length (including the
       current indentation).
    4) Opening braces are now directly behind a object property
       instead of using a new line.
    5) Switch inspect "base" order. In case the compact option is set
       to `false`, inspect will now print
         "[Function: foo] {\n  property: 'data'\n}"
       instead of
         "{ [Function: foo]\n  property: 'data'\n}".
    
    Backport-PR-URL: #19230
    PR-URL: #17576
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    c18ac52 View commit details
    Browse the repository at this point in the history
  13. assert: improve error messages

    From now on all error messages produced by `assert` in strict mode
    will produce a error diff.
    
    Backport-PR-URL: #19230
    PR-URL: #17615
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5aa3a2d View commit details
    Browse the repository at this point in the history
  14. tty: add getColorDepth function

    Right now it is very difficult to determine if a terminal supports
    colors or not. This function adds this functionality by detecting
    environment variables and checking process.
    
    Backport-PR-URL: #19230
    PR-URL: #17615
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    ead727c View commit details
    Browse the repository at this point in the history
  15. tty: refactor to es6

    Backport-PR-URL: #19230
    PR-URL: #17615
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    74f0d1a View commit details
    Browse the repository at this point in the history
  16. assert: use destructuring for errors

    Destructure the necessary Error classes from internal/errors.
    This improves the readability of the error creation.
    
    Backport-PR-URL: #19230
    PR-URL: #18247
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    d3c2534 View commit details
    Browse the repository at this point in the history
  17. assert: fix throws trace

    The current stack trace thrown in case `assert.throws(fn, object)`
    is used did not filter the stack trace. This fixes it.
    
    Backport-PR-URL: #19230
    PR-URL: #18595
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    e9ac468 View commit details
    Browse the repository at this point in the history
  18. doc: document asserts Weak(Map|Set) behavior

    Right now it is not documentated that WeakMap entries are not
    compared. This might result in some confusion. This adds a note
    about the behavior in `assert.deepStrictEqual`. This documentation
    is also references in `util.isDeepStrictEqual`, so we do not have
    to document it again for that function as the underlying algorithm
    is the same.
    
    Backport-PR-URL: #19230
    PR-URL: #18248
    Fixes: #18228
    Refs: #18228
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    968b867 View commit details
    Browse the repository at this point in the history
  19. assert: fix infinite loop

    In rare cirumstances it is possible to get a identical error diff.
    In such a case the advances diffing runs into a infinite loop.
    This fixes it by properly checking for extra entries.
    
    Backport-PR-URL: #19230
    PR-URL: #18611
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9abbb6b View commit details
    Browse the repository at this point in the history
  20. assert: show proper differences

    Right now it is possible to get an AssertionError from input that has
    the customInspect function set to always return the same value.
    
    That way the error message is actually misleading because the output
    is going to look the same. This fixes it by deactivating the custom
    inspect function.
    
    Backport-PR-URL: #19230
    PR-URL: #18611
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5e6b42e View commit details
    Browse the repository at this point in the history
  21. test: address unreliable test-performance

    test-performance can fail due to resource constraints. Move it from
    parallel to sequential so it does not compete with other tests for
    resources.
    
    Fixes: #19197
    
    PR-URL: #19228
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    16ab3b5 View commit details
    Browse the repository at this point in the history
  22. fs: fix createReadStream(…, {end: n}) for non-seekable fds

    82bdf8f fixed an issue by silently modifying the `start`
    option for the case when only `end` is passed, in order to perform
    reads from a specified range in the file.
    
    However, that approach does not work for non-seekable files, since
    a numeric `start` option means that positioned reads will be used
    to read data from the file.
    
    This patch fixes that, and instead ends reading after a specified
    size by adjusting the read buffer size.
    
    This way we avoid re-introducing the bug that 82bdf8f fixed,
    and align behaviour with the native file stream mechanism
    introduced in #18936 as well.
    
    PR-URL: #19329
    Fixes: #19240
    Refs: #18121
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Chen Gang <gangc.cxy@foxmail.com>
    addaleax authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    b01bd80 View commit details
    Browse the repository at this point in the history
  23. stream: add no-half-open enforcer only if needed

    The listener does not do anything if `allowHalfOpen` is enabled. Add it
    only when `allowHalfOpen` is disabled.
    
    PR-URL: #18953
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lpinca authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9c0c0e6 View commit details
    Browse the repository at this point in the history
  24. assert: improve error check

    Minor performance improvement.
    
    PR-URL: #17574
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    8d33e5c View commit details
    Browse the repository at this point in the history
  25. doc: make suggestion more direct in stream.md

    PR-URL: #19124
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9ec0eab View commit details
    Browse the repository at this point in the history
  26. doc: improve onboarding instructions

    - Suggest to use a TOTP app if the new collaborator cannot receive
      SMS messages from GitHub
    - Suggest to install node-core-utils and set up credentials before
      the onboarding session.
    - Ask about subsystem teams that they want to join
    - Note about squashing commits
    - Other small fixes
    
    PR-URL: #19108
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    joyeecheung authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    27088cf View commit details
    Browse the repository at this point in the history
  27. stream: make Duplex inherits from DuplexBase

    Add ability to subclass `stream.Duplex` without inheriting the
    "no-half-open enforcer" regardless of the value of the `allowHalfOpen`
    option.
    
    PR-URL: #18974
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chen Gang <gangc.cxy@foxmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lpinca authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    152c931 View commit details
    Browse the repository at this point in the history
  28. net: do not inherit the no-half-open enforcer

    `Socket.prototype.destroySoon()` is called as soon as `UV_EOF` is read
    if the `allowHalfOpen` option is disabled. This already works as a
    "no-half-open enforcer" so there is no need to inherit another from
    `stream.Duplex`.
    
    PR-URL: #18974
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chen Gang <gangc.cxy@foxmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lpinca authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5b12d3a View commit details
    Browse the repository at this point in the history
  29. n-api: update documentation

    Document which APIs work while an exception is pending. This is the
    list of all APIs which do not start with `NAPI_PREAMBLE(env)`.
    
    Fixes: nodejs/abi-stable-node#257
    PR-URL: #19078
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    12f19a6 View commit details
    Browse the repository at this point in the history
  30. test: skip postmortem metadata test when nm fails

    On Windows with msys installation, `nm` is available but
    it is not able to grab symbols from the Windows build.
    Skipping the test if nm outputs anything to stderr fixes that.
    
    PR-URL: #19107
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    joyeecheung authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    46b5915 View commit details
    Browse the repository at this point in the history
  31. doc: add inspector usage example

    Add a simple example showing how to use the inspector API to access
    the CPU profiler.
    
    PR-URL: #19172
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    ofrobots authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    84acb9f View commit details
    Browse the repository at this point in the history
  32. benchmark,lib,test,tools: use consistent quotes

    In preparation for a linting rule, use consistent quotation for
    properties in objects.
    
    PR-URL: #19156
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    563bed0 View commit details
    Browse the repository at this point in the history
  33. src: use smart pointer in AsyncWrap::WeakCallback

    PR-URL: #19168
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    64f6462 View commit details
    Browse the repository at this point in the history
  34. doc: update labels info in onboarding-extras.md

    Remove information duplicated in onboarding.md. Organize label list for
    clarity. Remove `deps` label which we don't actually have.
    
    PR-URL: #19160
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9557e66 View commit details
    Browse the repository at this point in the history
  35. test: rename test-regress-GH-1726

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    fa43d2f View commit details
    Browse the repository at this point in the history
  36. test: rename test-regress-GH-1697

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    da44c2c View commit details
    Browse the repository at this point in the history
  37. test: rename test-regress-GH-4015

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    bdbfc0e View commit details
    Browse the repository at this point in the history
  38. test: rename test-regress-GH-4027

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    2262a34 View commit details
    Browse the repository at this point in the history
  39. test: rename tests to remove "regress" keyword

    Rename affected tests to remove the "regress" keyword as well as improve
    naming scheme.
    
    Refs: #19105
    
    PR-URL: #19161
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    22484e1 View commit details
    Browse the repository at this point in the history
  40. test: address nits and rename the corresponding fixture

    Refs: #19105
    
    PR-URL: #19161
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    c0c6d58 View commit details
    Browse the repository at this point in the history
  41. test: rename test-regress-GH-784.js

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    636a5f6 View commit details
    Browse the repository at this point in the history
  42. test: rename test-regress-GH-877.js

    Rename the test appropriately alongside mentioning the subsystem
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure
    
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    
    PR-URL: #19161
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    0ece7cc View commit details
    Browse the repository at this point in the history
  43. doc: add watson to collaborators

    Closes: #18943
    
    PR-URL: #19234
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    watson authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5c21d16 View commit details
    Browse the repository at this point in the history
  44. doc: remove warning against readable/readable.read

    Remove suggestion to avoid `readable` event and `readabe.read()` method.
    No explanation was provided for this suggestion.
    
    PR-URL: #19193
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Chen Gang <gangc.cxy@foxmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    d117f5f View commit details
    Browse the repository at this point in the history
  45. crypto: use bool over int consistently

    PR-URL: #19238
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    044995e View commit details
    Browse the repository at this point in the history
  46. test: refactor http-https-default-ports

    Use arrow functions.
    
    PR-URL: #19130
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ken23421 authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    38eb432 View commit details
    Browse the repository at this point in the history
  47. doc: remove superfluous adverb from style guide

    PR-URL: #19246
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    7c36175 View commit details
    Browse the repository at this point in the history
  48. doc: remove confusing "cats" from style guide

    PR-URL: #19246
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    a04e4ae View commit details
    Browse the repository at this point in the history
  49. src: add incr/decr operators for Reference

    This commit adds operator overloads for increment/decrement to
    AliasedBuffer::Reference.
    The motivation for doing this is to hopefully make code that needs
    to increment/decrement a little simpler.
    
    PR-URL: #19083
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    27754c5 View commit details
    Browse the repository at this point in the history
  50. build: update arm64 minimum supported platform

    This is already true in practice.
    
    PR-URL: #19164
    Fixes: nodejs/build#1164
    Reviewed-By: Rod Vagg <rod@vagg.org>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    gibfahn authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5a1437c View commit details
    Browse the repository at this point in the history
  51. tools,bootstrap: preprocess gypi files to json

    PR-URL: #19140
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    devsnek authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9613e02 View commit details
    Browse the repository at this point in the history
  52. test: do not check text for engine-generated error

    In test-tls-wrap-event-emitter, the text of a TypeError is checked as
    part of the test. However, this text is generated by the JavaScript
    engine (V8) and not Node.js. Thus, we should not check the text as JS
    engine error messages can change without it being considered a breaking
    change for Node.js.
    
    A side effect is that node-chakracore will no longer need to patch this
    test to pass.
    
    PR-URL: #19215
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    a4a4819 View commit details
    Browse the repository at this point in the history
  53. test: remove flaky status for test-npm-install

    I haven't seen test-npm-install fail on arm in a long time. There is no
    open issue for it being unreliable. Remove flaky designation in
    parallel.status file. (If it turns out it is flaky, it's easy enough to
    open an issue and restore the flaky designation.)
    
    Ref: #13498
    
    PR-URL: #19216
    Refs: #13498
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    411f3e0 View commit details
    Browse the repository at this point in the history
  54. doc: add warning to assert.doesNotThrow()

    Using `assert.doesNotThrow()` has no benefit over adding a comment
    next to some code that should not throw. Therefore it is from now
    on discouraged to use it.
    
    PR-URL: #18699
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    8e88a18 View commit details
    Browse the repository at this point in the history
  55. repl: better handling of recoverable errors

    Below syntax errors are handled without force .break/clear
      - Unexpected Token (prefix errors)
      - missing ) after argument list
    
    In the multiline expression, recoverable errors are truly
    recoverable, otherwise syntax error will be thrown.
    
    PR-URL: #18915
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    princejwesley authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    3e6858e View commit details
    Browse the repository at this point in the history
  56. test: Remove unnecessary asserion messages in test-crypto-hash.js

    This commit improves asserion messages in parallel/test-crypto-hash.js.
    Instead of just simple string literal, messages are changed to also
    include values used in assertion, which should improve debugging
    in case of errors.
    
    PR-URL: #18984
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    pgrzesik authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    e4c320e View commit details
    Browse the repository at this point in the history
  57. benchmark: fix benchmark for url

    Rename different parameters with the same names to make it possible
    to run tests for url benchmarks.
    
    PR-URL: #19084
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    daynin authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    530b8a4 View commit details
    Browse the repository at this point in the history
  58. test: fix test-abort-backtrace in shared lib build

    When using shared lib build, the binary path in the stack frames points
    to shared lib. Change the checking criteria in the test case to match
    that.
    
    Refs: #18535
    
    Signed-off-by: Yihong Wang <yh.wang@ibm.com>
    
    PR-URL: #19213
    Refs: #18535
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    yhwang authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f0c8f69 View commit details
    Browse the repository at this point in the history
  59. doc: make caveat in stream.md more concise

    PR-URL: #19251
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    6c5afeb View commit details
    Browse the repository at this point in the history
  60. doc: remove superfluous text in onboarding-extras

    PR-URL: #19247
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    c9b12f3 View commit details
    Browse the repository at this point in the history
  61. test: name test files appropriately

    Rename the tests appropriately alongside mentioning the subsystem.
    Also, make a few basic changes to make sure the test conforms
    to the standard test structure.
    
    This renames:
    - test-regress-GH-1531
    - test-regress-GH-2245
    - test-regress-GH-3238
    - test-regress-GH-3542
    - test-regress-GH-3739
    - test-regress-GH-4256
    
    PR-URL: #19212
    Refs: #19105
    Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    d3bc72e View commit details
    Browse the repository at this point in the history
  62. test: fix compiler warnings in callback-scope

    Currently there are two compiler warnings generated from the addons test
    callback-scope:
    
    ../binding.cc:44:10:
    warning: 'Resolve' is deprecated [-Wdeprecated-declarations]
      local->Resolve(v8::Undefined(isolate));
             ^
    ../../../../deps/v8/include/v8.h:3893:45:
    note: 'Resolve' has been explicitly marked deprecated here
    V8_DEPRECATED("Use maybe version", void Resolve(Local<Value> value));
             ^
    
    ../binding.cc:52:54:
    warning: 'New' is deprecated [-Wdeprecated-declarations]
        persistent.Reset(isolate, v8::Promise::Resolver::New(isolate));
                                                         ^
    ../../../../deps/v8/include/v8.h:3880:42:
    note: 'New' has been explicitly marked deprecated here
    Local<Resolver> New(Isolate* isolate));
    
    This commit updates the test to use non-deprecated functions.
    
    PR-URL: #19252
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    b8ca616 View commit details
    Browse the repository at this point in the history
  63. src: avoid duplicate Before/AtExitCallback structs

    Currently, BeforeExitCallback and AtExitCallback are identical apart for
    the name of the struct. This commit introduces an ExitCallback struct
    with can be used in both cases to avoid the duplication.
    
    PR-URL: #19226
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    4b9914a View commit details
    Browse the repository at this point in the history
  64. async_hooks: don't set hook_fields[kTotals] to 0

    This commit removes the setting of hook_field[kTotals] to szero in
    AsyncHook's enable function.
    
    As far as I can tell this would not be required if the setting of
    this field is done with the assignment operator instead of using the
    addition assignment operator.
    
    PR-URL: #19219
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    71b1c7f View commit details
    Browse the repository at this point in the history
  65. src: add convenience ctor for async trigger id scope

    PR-URL: #19204
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    addaleax authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    49481d0 View commit details
    Browse the repository at this point in the history
  66. tls: expose Finished messages in TLSSocket

    Exposes SSL_get_finished and SSL_get_peer_finished routines in OpenSSL
    as tlsSocket.getFinished and tlsSocket.getPeerFinished, respectively.
    
    PR-URL: #19102
    Fixes: #19055
    Refs: XRPLF/rippled#2413
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    codedot authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    0602166 View commit details
    Browse the repository at this point in the history
  67. http2: simplify timeout tracking

    There’s no need to reset the chunk counter for every write.
    
    PR-URL: #19206
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    89fbbc4 View commit details
    Browse the repository at this point in the history
  68. test: fix path in doctool/test-doctool-json

    PR-URL: #19287
    Refs: #17820
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    84ae59e View commit details
    Browse the repository at this point in the history
  69. n-api: resolve promise in test

    The last promise created by the test for the purposes of making sure
    that its type is indeed a promise needs to be resolved so as to avoid
    having it left in the pending state at the end of the test.
    
    PR-URL: #19245
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f679ac1 View commit details
    Browse the repository at this point in the history
  70. test: fix assertion argument order

    Fix the assertion argument order so that it will report "actual" and
    "expected" correctly when the test fails.
    
    Ref: #19263
    
    PR-URL: #19264
    Refs: #19263
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f84f548 View commit details
    Browse the repository at this point in the history
  71. lib: define printErr() in script string

    This commit moves the printErr() function, used by the
    tick profiler processer, into the code string passed to
    vm.runInThisContext().
    
    PR-URL: #19285
    Fixes: #19260
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f06622c View commit details
    Browse the repository at this point in the history
  72. n-api,test: add a new.target test to addons-napi

    Added a N-API test to verify new.target behavior.
    
    PR-URL: #19236
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    boingoing authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f36521b View commit details
    Browse the repository at this point in the history
  73. tools: fix test-npm-package

    Migrate the script to the new common tmpDir API.
    
    PR-URL: #19293
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    targos authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    66694e2 View commit details
    Browse the repository at this point in the history
  74. test: shared lib build doesn't handle SIGPIPE

    For shared lib build, we leave the signal handling for embedding users.
    In these two test cases:
    - `parallel/test-process-external-stdio-close-spawn`
    - `parallel/test-process-external-stdio-close`
    
    The pipe is used for stdout and is destroied before child process uses
    it for logging. So the node executble that uses shared lib build
    receives SIGPIPE and the child process ends.
    
    This change ignores the SIGPIPE in node_main.cc for shared lib case.
    
    Refs: #18535
    
    Signed-off-by: Yihong Wang <yh.wang@ibm.com>
    
    PR-URL: #19211
    Refs: #18535
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    yhwang authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    be20914 View commit details
    Browse the repository at this point in the history
  75. doc: improve style guide text

    * Specify that personal pronouns are OK in colloquial documentation
      rather than just pronouns. Pronouns are OK in all documentation. (For
      example, "it" is a pronoun and is acceptable in all types of
      documentation.) Specify "personal pronouns" for clarity.
    * more colloquial -> colloquial
    * like -> such as
    * Remove "mass nouns" as no mass nouns are given as examples. Plural
      nouns seems to be what was meant, so use that instead.
    * Repeat "gender-neutral" to make it clear that it refers to both terms
      and not merely the first term it appears before.
    * Remove "non-comprehensive examples". Examples are, by definition,
      non-comprehensive. No need to announce that the examples are examples.
      It is obvious.
    
    PR-URL: #19269
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    e247f19 View commit details
    Browse the repository at this point in the history
  76. test: delete test/parallel/test-regress-GH-4948

    PR-URL: #19279
    Refs: #19275 (comment)
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    11a0ef5 View commit details
    Browse the repository at this point in the history
  77. src: refactor emit before/after/promiseResolve

    Currently EmitBefore, EmitAfter, EmitPromiseResolve are very similar.
    This commit suggests extracting the code they have in common to a new
    function to reduce code duplication.
    
    PR-URL: #19295
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    e208282 View commit details
    Browse the repository at this point in the history
  78. doc: update username and email

    PR-URL: #19338
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    hiroppy authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    7f652c2 View commit details
    Browse the repository at this point in the history
  79. build: do not cd on vcbuild help

    `vcbuild help` just outputs help info and exits.
    
    If a user calls this command not from a project root,
    the directory change can be unexpected and unwanted.
    
    PR-URL: #19291
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    3f7c4ee View commit details
    Browse the repository at this point in the history
  80. path: remove redundant function

    PR-URL: #19237
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    daynin authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    a9bd8bf View commit details
    Browse the repository at this point in the history
  81. doc: clarify default TLS handshake timeout

    Because the `handshakeTimeout` is in milliseconds, use that unit of
    measurement to express the default value.
    
    PR-URL: #19290
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5da3ee7 View commit details
    Browse the repository at this point in the history
  82. test: fix test-cluster-send-handle-large-payload

    test-cluster-send-handle-large-payload is susceptible to failure if it
    is competing for resources. Move to `sequential` directory so it is not
    competing with other tests.
    
    Fixes: #14844
    
    PR-URL: #19311
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    9aa5090 View commit details
    Browse the repository at this point in the history
  83. doc: fix minor issues in async_hooks.md

    * easily -> easy
    * was -> is
    * add a missing comma
    
    PR-URL: #19313
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5a56327 View commit details
    Browse the repository at this point in the history
  84. doc: improve best practices in onboarding-extras

    PR-URL: #19315
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    99e6734 View commit details
    Browse the repository at this point in the history
  85. n-api,test: add int64 bounds tests

    Added some simple tests to verify that the int64 API is correctly
    handling numbers greater than 32-bits. This is a basic test, but
    verifies that an implementer hasn't truncated back to 32-bits.
    
    Refs: nodejs/node-chakracore#496
    
    PR-URL: #19309
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    kfarnung authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    0c9577e View commit details
    Browse the repository at this point in the history
  86. src: add extractPromiseWrap function

    Currently PromiseHook extracts the PromiseWrap from a Local<Promise> in
    two places. This commit extracts that code into a function instead.
    
    PR-URL: #19340
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    03fb817 View commit details
    Browse the repository at this point in the history
  87. src: fix indenting of wrap->EmitTraceEventBefore

    PR-URL: #19340
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    126a161 View commit details
    Browse the repository at this point in the history
  88. src: remove unused uv.h include from async_wrap.cc

    PR-URL: #19342
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    7a3d1d2 View commit details
    Browse the repository at this point in the history
  89. doc: fix typos on n-api

    PR-URL: #19385
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    shama authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    c1fa092 View commit details
    Browse the repository at this point in the history
  90. test: fix flaky test-http2-settings-flood

    The test is unreliable on some Windows platforms in its current form.
    Make it more robust by using `setInterval()` to repeat the flooding
    until an error is triggered.
    
    Fixes: #18251
    
    PR-URL: #19349
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    01749f0 View commit details
    Browse the repository at this point in the history
  91. n-api: add missing exception checking

    Add checks for a pending exception in napi_make_callback
    after the callback has been invoked.  If there is a pending
    exception then we need to avoid checking the result as that
    will not be able to complete properly.
    
    Add additional checks to the unit test for napi_make_callback
    to catch this case.
    
    PR-URL: #19362
    Fixes: nodejs/node-addon-api#235
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    mhdawson authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    528798c View commit details
    Browse the repository at this point in the history
  92. url: replace "magic" numbers by constants

    PR-URL: #19035
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    daynin authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    072adfe View commit details
    Browse the repository at this point in the history
  93. doc: do not announce obvious examples

    Remove "Examples:" labels that announce things that are clearly
    examples.
    
    PR-URL: #19270
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    b229912 View commit details
    Browse the repository at this point in the history
  94. test: use descriptive names for regression tests

    Rename the tests appropriately alongside mentioning the subsystem.
    Also, make a few basic changes to make sure the tests conform to the
    standard test structure.
    
    - Rename test-regress-GH-9819 to test-crypto-tostring-segfault
    - Rename test-regress-GH-5051 to test-http-addrequest-localaddress
    - Rename test-regress-GH-5727 to test-net-listen-invalid-port
    - Rename test-regress-GH-5927 to test-tty-stdin-pipe
    - Rename test-regress-GH-6235 to test-v8-global-setter
    
    PR-URL: #19275
    Refs: #19105
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f490421 View commit details
    Browse the repository at this point in the history
  95. src: make AsyncWrap constructors delegate

    Currently, there is an AsyncWrap constructor that is only used by
    PromiseWrap. This constructor has a body which is very similar
    to the other AsyncWrap constructor.
    
    This commit suggests updating the private constructor that is used
    by PromiseWrap and also have the second constructor delegate to this
    one to avoid the code duplication.
    
    PR-URL: #19366
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    054dd28 View commit details
    Browse the repository at this point in the history
  96. src: fix indentation of params in env-inl.h

    PR-URL: #19390
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    43c482b View commit details
    Browse the repository at this point in the history
  97. http2: don't aggressively inline

    Most of the inlines were leftovers from a much older design
    iteration and are largely pointless or counter productive.
    
    PR-URL: #19400
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    jasnell authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    42b6d80 View commit details
    Browse the repository at this point in the history
  98. http2: clean up Http2Settings

    Use of a MaybeStackBuffer was just silly. Fix a long standing todo
    Reduce code duplication a bit.
    
    PR-URL: #19400
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    jasnell authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    4277635 View commit details
    Browse the repository at this point in the history
  99. http2: some general code improvements

    PR-URL: #19400
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    jasnell authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    3bf69cd View commit details
    Browse the repository at this point in the history
  100. test: rename regression tests file names

    Rename the tests appropriately alongside mentioning the subsystem.
    Also, make a few basic changes to make sure the tests conform to the
    standard test structure.
    
    - Rename test-regress-GH-io-1068 to test-tty-stdin-end
    - Rename test-regress-GH-io-1811 to test-zlib-kmaxlength-rangeerror
    - Rename test-regress-GH-node-9326 to test-kill-segfault-freebsd
    - Rename test-timers-regress-GH-9765 to test-timers-setimmediate-infinite-loop
    - Rename test-tls-pfx-gh-5100-regr to test-tls-pfx-authorizationerror
    - Rename test-tls-regr-gh-5108 to test-tls-tlswrap-segfault
    
    PR-URL: #19332
    Fixes: #19105
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    ryzokuken authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    7df6d9d View commit details
    Browse the repository at this point in the history
  101. src: fix minor typo in comment stream_base.h

    PR-URL: #19429
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    da62c5c View commit details
    Browse the repository at this point in the history
  102. n-api: separate out async_hooks test

    Place the test_make_callback async_hooks-related test into its own file.
    
    PR-URL: #19392
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    0e6f720 View commit details
    Browse the repository at this point in the history
  103. test: fix flaky test-http2-ping-flood

    The test is unreliable on some Windows platforms in its current form.
    Make it more robust by using `setInterval()` to repeat the flooding
    until an error is triggered.
    
    PR-URL: #19395
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    e3ce084 View commit details
    Browse the repository at this point in the history
  104. src: remove unused stdlib.h include

    Commit 870229e ("src: Add ABORT
    macro") replaced the abort call with the abort macro in util-inl.h.
    This commit removes the include as it is not needed anymore.
    
    PR-URL: #19427
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    8757799 View commit details
    Browse the repository at this point in the history
  105. async_hooks: add copyHooks function

    This commit introduces a copyHooks function that can be used by
    storeActiveHooks and restoreActiveHooks to remove some code duplication.
    
    PR-URL: #19391
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    f0f31d0 View commit details
    Browse the repository at this point in the history
  106. test: http2 client setNextStreamID errors

    Backport-PR-URL: #18848
    PR-URL: #18848
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    trivikr authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    519850f View commit details
    Browse the repository at this point in the history
  107. crypto: allow passing null as IV unless required

    Backport-PR-URL: #19347
    PR-URL: #18644
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    03c321a View commit details
    Browse the repository at this point in the history
  108. deps: v8: cherry-pick fixes for v8:7535

    These changes avoid a busy wait loop in V8 CPU Profiler thread for
    windows (except for short intervals).
    
    It would be good if this is also backported to Node.js v9 and LTS
    releases as this busy loop effectively disallows the use of
    cpu-profiler in windows production setups.
    
    Original commit message 15c0c3a8ba:
    ```
    [profiler] use Sleep() on windows for long profile intervals.
    
    See nodejs/diagnostics#170
    
    R=franzih@chromium.org
    
    Change-Id: Iecc3bb27707b0d2afbb23fd9823d5cd4d725be6e
    Reviewed-on: https://chromium-review.googlesource.com/931102
    Reviewed-by: Franziska Hinkelmann <franzih@chromium.org>
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51466}
    ```
    
    Original commit message 43e2fb1c3d:
    ```
    [profiler] fix sleeping on windows for long intervals.
    R=franzih@chromium.org
    
    Change-Id: I5717db794fc797e7c3b0b8f122ddb6dc0702a99e
    Reviewed-on: https://chromium-review.googlesource.com/941126
    Reviewed-by: Franziska Hinkelmann <franzih@chromium.org>
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51755}
    
    ```
    
    PR-URL: #19333
    Refs: nodejs/diagnostics#170
    Refs: #19200
    Refs: v8/v8@15c0c3a
    Refs: v8/v8@43e2fb1
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Flarna authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    5966b8c View commit details
    Browse the repository at this point in the history
  109. src: remove unused using declarations async_wrap

    Backport-PR-URL: #19253
    PR-URL: #18893
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    danbev authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    1ba1861 View commit details
    Browse the repository at this point in the history
  110. src: fix util abort

    This makes sure util.isRegExp and util.isDate will not abort in case
    more than one argument is passed to the function.
    
    PR-URL: #19223
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    49391a7 View commit details
    Browse the repository at this point in the history
  111. fs: support as and as+ flags in stringToFlags()

    PR-URL: #18801
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    SirR4T authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    607b33c View commit details
    Browse the repository at this point in the history
  112. doc: fix deprecation removed by mistake

    In bae5de1,
    a deprecation (DEP0089) was added to the docs and another one (DEP0098)
    was removed by mistake. This commit restores it.
    
    PR-URL: #19482
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    targos authored and MylesBorins committed Mar 20, 2018
    Copy the full SHA
    a4c28d7 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2018

  1. deps: V8: backport 596d55a from upstream

    Did not remove ActivationsFinder from `src/runtime/runtime-compiler.cc`
    as in the original commit as the Class is still being used prior to
    f0acede landing
    
    Original Commit Message:
    
        Deoptimization and multithreading.
    
        When using Lockers and Unlockers it is possible to create a
        scenario where multiple threads point to the same optimized
        code object. When that happens, if one of the threads triggers
        deoptimization, then the stack replacement needs to happen in
        the stacks of all threads.
        With this CL, the deoptimizer visits all threads to do so.
        The CL also adds three tests where V8 used to crash due to this
        issue.
    
        Bug: v8:6563
        Change-Id: I74e9af472d4833aa8d13e579df45133791f6a503
        Reviewed-on: https://chromium-review.googlesource.com/670783
        Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
        Commit-Queue: Juliana Patricia Vicente Franco <jupvfranco@google.com>
        Cr-Commit-Position: refs/heads/master@{#48060}
    
    PR-URL: #19477
    Fixes: #19274
    Refs: v8/v8@596d55a
    Refs: v8/v8@f0acede
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Yang Guo <yangguo@chromium.org>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
    MylesBorins committed Mar 21, 2018
    Copy the full SHA
    36f664e View commit details
    Browse the repository at this point in the history
  2. test: introduce SetUpTestCase/TearDownTestCase

    This commit add SetUpTestCase and TearDownTestCase functions that will
    be called once per test case. Currently we only have SetUp/TearDown
    which are called for each test.
    
    This commit moves the initialization and configuration of Node and V8 to
    be done on a per test case basis, but gives each test a new Isolate.
    
    Backport-PR-URL: #19504
    PR-URL: #18558
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    danbev authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    22b8f9f View commit details
    Browse the repository at this point in the history
  3. test: remove NodeTestFixture from Env constructor

    Backport-PR-URL: #19504
    PR-URL: #18558
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    danbev authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    4e9279d View commit details
    Browse the repository at this point in the history
  4. test: refactor assert test

    This adds puctiations to the comments, uses a capital letters for
    the first character, removes a few obsolete comments and switches
    to assert.ok when suitable.
    
    It also moves all `assert.deepEqual()` and `assert.deepStrictEqual()`
    tests to the appropriate file.
    
    Backport-PR-URL: #19244
    PR-URL: #18610
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    5478746 View commit details
    Browse the repository at this point in the history
  5. test: remove assert.doesNotThrow()

    There is actually no reason to use `assert.doesNotThrow()` in the
    tests. If a test throws, just let the error bubble up right away
    instead of first catching it and then rethrowing it.
    
    Backport-PR-URL: #19244
    PR-URL: #18669
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    574d061 View commit details
    Browse the repository at this point in the history
  6. test: minor refactoring

    Add punctuation and comments about code that should not throw.
    Also remove a obsolete test and refactor some tests.
    
    Backport-PR-URL: #19244
    PR-URL: #18669
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    1eac1d7 View commit details
    Browse the repository at this point in the history
  7. tools: add assert.doesNotThrow eslint rule

    Prohibit the usage of `assert.doesNotThrow()`.
    
    Backport-PR-URL: #19244
    PR-URL: #18669
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    d795865 View commit details
    Browse the repository at this point in the history
  8. tools: enable no-unsafe-finally

    This enables the `no-unsafe-finally` eslint rule to make sure we
    have a proper control flow in try / catch.
    
    Backport-PR-URL: #19244
    PR-URL: #18745
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    9d1e409 View commit details
    Browse the repository at this point in the history
  9. doc: update buffer examples

    Move the print statements below a console.log call.
    
    Backport-PR-URL: #19244
    PR-URL: #18758
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    ff82acb View commit details
    Browse the repository at this point in the history
  10. tools: enable eslint no-undef-init rule

    This also fixes the three entries that did not pass.
    
    Backport-PR-URL: #19244
    PR-URL: #18831
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    9e10ddc View commit details
    Browse the repository at this point in the history
  11. tools: enable eslint strict key-spacing

    Backport-PR-URL: #19244
    PR-URL: #18831
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    d4d7df8 View commit details
    Browse the repository at this point in the history
  12. tools: enable eslint one-var rule

    Backport-PR-URL: #19244
    PR-URL: #18831
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    b04dd7b View commit details
    Browse the repository at this point in the history
  13. doc: enable eslint prefer-template rule

    Backport-PR-URL: #19244
    PR-URL: #18831
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    cb732ae View commit details
    Browse the repository at this point in the history
  14. errors: implement new error handling

    This implements a function based system. Instead of passing in the
    error code as first argument, the error code itself is a error class.
    It already contains the correct error type, so while adding a new
    error no one has to think about the error type anymore. In case a
    single error code has more than one error type, the error class has
    properties for the non default error types. Those can be used as
    fallback.
    
    This prevents typos, makes the implementation easier and it is less
    verbose when writing the code for a new error.
    
    The implementation itself does not interfere with the old
    implementation. So the old and the new system can co-exist and it is
    possible to slowly migrate the old ones to the new system.
    
    Backport-PR-URL: #19244
    PR-URL: #18857
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    d57a242 View commit details
    Browse the repository at this point in the history
  15. errors: update all internal errors

    This updates all internal errors to the new error type. While doing
    so it removes unused errors.
    
    A few errors currently seem to have the wrong type. To identify them
    later, comments were added next to the error type.
    
    Backport-PR-URL: #19244
    PR-URL: #18857
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    ffa16aa View commit details
    Browse the repository at this point in the history
  16. console: port errors to new system

    This ports the errors to the new error system.
    
    Backport-PR-URL: #19244
    PR-URL: #18857
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    07845fc View commit details
    Browse the repository at this point in the history
  17. errors: add comments about falsy error types

    Some error types are not properly set. This adds comments which
    ones are probably falty and to what they should be set instead.
    
    Backport-PR-URL: #19244
    PR-URL: #18857
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    f4f0266 View commit details
    Browse the repository at this point in the history
  18. repl: upper case comments first char

    Backport-PR-URL: #19244
    PR-URL: #17919
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Lance Ball <lball@redhat.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    6997af7 View commit details
    Browse the repository at this point in the history
  19. repl: refactor code for readability

    Backport-PR-URL: #19244
    PR-URL: #17919
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Lance Ball <lball@redhat.com>
    BridgeAR authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    55f7bbb View commit details
    Browse the repository at this point in the history
  20. http2: fixes error handling

    There should be no default error handling when using Http2Stream.
    All errors will end up in `'streamError'` on the server anyway,
    but they are emitted on `'stream'` as well, otherwise some error
    conditions are impossible to debug.
    
    See: #14991
    
    Backport-PR-URL: #19478
    PR-URL: #19232
    Reviewed-By: James M Snell <jasnell@gmail.com>
    mcollina authored and MylesBorins committed Mar 21, 2018
    Copy the full SHA
    3914e97 View commit details
    Browse the repository at this point in the history
  21. 2018-03-21, Version 9.9.0 (Current)

    Notable changes:
    
    * assert:
      - From now on all error messages produced by `assert` in strict mode
        will produce a error diff. (Ruben Bridgewater)
        #17615
      - From now on it is possible to use a validation object in throws
        instead of the other possibilities. (Ruben Bridgewater)
        #17584
    * crypto:
      - allow passing null as IV unless required (Tobias Nießen)
        #18644
    * fs:
      - support as and as+ flags in stringToFlags() (Sarat Addepalli)
        #18801
    * tls:
      - expose Finished messages in TLSSocket (Anton Salikhmetov)
        #19102
    * tty:
      - Add getColorDepth function to determine if terminal supports colors
        (Ruben Bridgewater) #17615
    * util:
      - add util.inspect compact option (Ruben Bridgewater)
        #17576
    * **Added new collaborators**
      - [watson](https://github.com/watson) Thomas Watson
    
    PR-URL: #19428
    MylesBorins committed Mar 21, 2018
    3
    Copy the full SHA
    74fb02f View commit details
    Browse the repository at this point in the history