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

V7.8.0 proposal #12104

Merged
merged 67 commits into from
Mar 29, 2017
Merged

V7.8.0 proposal #12104

merged 67 commits into from
Mar 29, 2017

Commits on Mar 27, 2017

  1. deps: fix async await desugaring in V8

    This is a backport of https://codereview.chromium.org/2672313003/. The
    patch did not land in V8 because it was superseded by another one but it
    is much easier to backport to V8 5.5, was reviewed and passed tests.
    
    Original commit message:
    
        [async await] Fix async function desugaring
    
        Previously we rewrote the return statement in an async function from
        `return expr;` to `return %ResolvePromise(.promise, expr),
        .promise`. This can lead to incorrect behavior in the presence of try-finally.
    
        This patch stores the `expr` of the return statement in a temporary
        variable, resolves and returns the promise at the end of the finally
        block.
    
        BUG=v8:5896
    
    PR-URL: #12004
    Fixes: #11960
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    targos committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    d22346d View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2017

  1. buffer: remove unneeded eslint-disable comment

    lib/buffer.js uses a function declaration for `Buffer`. So it never
    uses an instance of `Buffer` in the global scope. Therefore the
    disabling of the `require-buffer` custom rule is not needed. Remove the
    comment.
    
    PR-URL: #11906
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    17d16e8 View commit details
    Browse the repository at this point in the history
  2. readline: add option to stop duplicates in history

    Adds `options.deDupeHistory` for `readline.createInterface(options)`. If
    `options.deDupeHistory` is `true`, when a new input line being added to
    the history list duplicates an older one, removes the older line from
    the list. Defaults to `false`.
    
    Many users would appreciate this option, as it is a common setting in
    shells. This option certainly should not be default behavior, as it
    would be problematic in applications such as the `repl`, which inherits
    from the readline `Interface`.
    
    Extends documentation to reflect this API addition.
    
    Adds tests for when `options.deDupeHistory` is truthy, and when
    `options.deDupeHistory` is falsey.
    
    PR-URL: #2982
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    DannyNemer authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    8ab26cf View commit details
    Browse the repository at this point in the history
  3. url: restrict setting protocol to "file"

    Since file URLs can not have `username/password/port`,
    the specification was updated to restrict setting protocol to "file".
    
    Refs: whatwg/url#269
    Fixes: #11785
    PR-URL: #11887
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    watilde authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    c51d925 View commit details
    Browse the repository at this point in the history
  4. test: synchronize WPT url setters tests data

    Synchronize url-setter-test to upstream.
    
    Refs: web-platform-tests/wpt#5112
    PR-URL: #11887
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    watilde authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    169f187 View commit details
    Browse the repository at this point in the history
  5. doc: add missing word in stream.md

    PR-URL: #11914
    Fixes: #11913
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    jyotman authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    68b23be View commit details
    Browse the repository at this point in the history
  6. src: ensure that fd 0-2 are valid on windows

    Check that stdin, stdout and stderr are valid file descriptors on
    Windows. If not, reopen them with 'nul' file.
    
    Refs: #875
    Fixes: #11656
    PR-URL: #11863
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    bzoz authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    d6da170 View commit details
    Browse the repository at this point in the history
  7. doc: fix gitter badge in README

    GitHub now renders Markdown in CommonMark where spaces in a link
    destination are invalid and need to be escaped.
    
    PR-URL: #11944
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    silverwind authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    04fa28e View commit details
    Browse the repository at this point in the history
  8. test: add hasCrypto check to tls-socket-close

    Currently test-tls-socket-close will fail if node
    was built using --without-ssl. This commit adds a check to
    verify is crypto support exists and if not skip this test.
    
    PR-URL: #11911
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    114f9d6 View commit details
    Browse the repository at this point in the history
  9. benchmark: remove v8ForceOptimization calls

    This removes common.v8ForceOptimization calls from url and vm benchmark
    files.
    
    PR-URL: #11908
    Fixes: #11895
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    lucaslago authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    85eb1bc View commit details
    Browse the repository at this point in the history
  10. benchmark: fix fs\bench-realpathSync.js

    Make it call-site-cwd-independent.
    
    PR-URL: #11904
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    d62ddbe View commit details
    Browse the repository at this point in the history
  11. src: make PercentDecode return void

    It only returns 0, nor is it likely to have any error conditions in the
    future.
    
    PR-URL: #11922
    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>
    TimothyGu authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    019a20a View commit details
    Browse the repository at this point in the history
  12. test: fix flaky test-tls-socket-close

    Replace timer/timeout race with event-based ordering, eliminating test
    flakiness.
    
    PR-URL: #11921
    Fixes: #11912
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    9ba551f View commit details
    Browse the repository at this point in the history
  13. test: add test for child_process.execFile()

    While `child_process.execFile()` gets called in places in the test
    suite, there are no explicit test for it and there are parts of the
    implementation that are not covered by tests. This adds a minimal test
    that increases (but does not complete) coverage for the implementation.
    
    PR-URL: #11929
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    55a1126 View commit details
    Browse the repository at this point in the history
  14. src, buffer: do not segfault on out-of-range index

    Also add test cases for partial writes and invalid indices.
    
    PR-URL: #11927
    Fixes: #8724
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    TimothyGu authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    59f71f5 View commit details
    Browse the repository at this point in the history
  15. benchmark: harmonize progress bar + stderr output

    Add a space for minimal readability.
    
    PR-URL: #11925
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    2f4ad6f View commit details
    Browse the repository at this point in the history
  16. build: don't create directory for NDK toolchain

    Let make-standalone-toolchain.sh create directory.
    
    PR-URL: #11916
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    diastremskii authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    3e4ecca View commit details
    Browse the repository at this point in the history
  17. doc: require uses fs root for '/' prefix

    PR-URL: #11897
    Fixes: #7151
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    bmeck authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    486bd1b View commit details
    Browse the repository at this point in the history
  18. errors: remove needless lazyAssert

    PR-URL: #11891
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    DavidCai1111 authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    0f2642e View commit details
    Browse the repository at this point in the history
  19. doc: remove superfluous sample assert code

    Remove superfluous sample code. Since `assert()` is documented as an
    alias of `assert.ok()` and nothing more, the sample code for
    `assert.ok()` is sufficient.
    
    PR-URL: #11933
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@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 28, 2017
    Configuration menu
    Copy the full SHA
    96ad336 View commit details
    Browse the repository at this point in the history
  20. src: add native URL class

    Adds a URL native class for use within the node.js c/c++
    code. This is primarily intended to be used by the eventual
    ES6 modules implementation but can be used generally wherever
    URL parsing within the c/c++ may be necessary.
    
    ```c
    URL url1("http://example.org");
    URL url2("foo", "http://example.org/bar");
    URL url3("baz", &url2);
    ```
    
    While we're at it, reduce reliance on macros to simplify impl.
    
    PR-URL: #11801
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    d0c2d67 View commit details
    Browse the repository at this point in the history
  21. readline: rename deDupeHistory option

    Renames `options.deDupeHistory` → `options.removeHistoryDuplicates` for
    `readline.createInterface(options)`.
    
    The option name `removeHistoryDuplicates` is preferable to the
    semantically identical name `deDupeHistory` because "dedupe" (short for
    "deduplication") is obscure and neologistic while
    `removeHistoryDuplicates` is clear, though verbose.
    
    Updates tests and documentation for this option accordingly.
    
    PR-URL: #11950
    Ref: #2982
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    DannyNemer authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    91a2700 View commit details
    Browse the repository at this point in the history
  22. doc: correct info in child_process.md

    `child.stderr`, `child.stdin`, and `child.stdout`
    are `null`, not `undefined`, if the relevant `stdio` properties
    are set to anything other than 'pipe'.
    
    PR-URL: #11949
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    41bec5c View commit details
    Browse the repository at this point in the history
  23. src: use persistent strings from node::Environment

    Replace a few calls to FIXED_ONE_BYTE_STRING() with their persistent
    counterparts from `node::Environment`.  None of the calls are in hot
    code paths but why create a new string when one already exists?
    
    PR-URL: #11945
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    bnoordhuis authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    6a6c431 View commit details
    Browse the repository at this point in the history
  24. benchmark: allow multiple values for same config

    This allows running a benchmark with two or more values for the same
    config rather than just one or all of them, for example:
    
    ```
    node benchmark/buffers/buffer-creation.js type=buffer() type=fast-alloc type=fast-alloc-fill
    ```
    
    PR-URL: #11819
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    seishun authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    90acb77 View commit details
    Browse the repository at this point in the history
  25. timers: fix not to close reused timer handle

    The timer handle is reused when it is unrefed in order to avoid new
    callback in beforeExit(#3407). If it is unrefed within a setInterval
    callback, the reused timer handle is closed so that setInterval no
    longer keep working. This fix does not close the handle in case of
    setInterval.
    
    PR-URL: #11646
    Reviewed-By: Julien Gilli <jgilli@nodejs.org>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    shigeki authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    4b1b6b8 View commit details
    Browse the repository at this point in the history
  26. deps: upgrade npm to 4.2.0

    PR-URL: #11389
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    zkat authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    2767e2d View commit details
    Browse the repository at this point in the history
  27. doc: update collaborator email address

    Per email conversation with Shigeki Ohtsu, updating email address in
    docs. The current listed email address does not work anymore.
    
    PR-URL: #11996
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    924f346 View commit details
    Browse the repository at this point in the history
  28. test: do not use more command on Windows

    PR-URL: #11953
    Fixes: #11469
    Reviewed-By: João Reis <reis@janeasystems.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    bb2de4a View commit details
    Browse the repository at this point in the history
  29. url: show input in parse error message

    PR-URL: #11934
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    joyeecheung authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    f675518 View commit details
    Browse the repository at this point in the history
  30. doc: add richardlau to collaborators

    PR-URL: #12020
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    richardlau authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    1f7fe55 View commit details
    Browse the repository at this point in the history
  31. build: add lint option to vcbuild.bat help

    PR-URL: #11992
    Fixes: #11971
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    brennemo authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    fb41ee3 View commit details
    Browse the repository at this point in the history
  32. test: add test for url

    PR-URL: #11999
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
    hiroppy authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    764a00e View commit details
    Browse the repository at this point in the history
  33. test: add minimal test for net benchmarks

    Currently, benchmark code is not exercised at all in CI. This adds a
    minimal test for net benchmarks. If this is deemed acceptable, similar
    minimal tests for other benchmarks can be written. Additionally, as
    issues and edge cases are uncovered, checks for them can be added.
    
    PR-URL: #11979
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    b48f13a View commit details
    Browse the repository at this point in the history
  34. test: improve test-vm-cached-data.js

    * verify error message by adding 2nd argument to throws in test-assert
    
    PR-URL: #11974
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    mpelekh authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    e70ed3c View commit details
    Browse the repository at this point in the history
  35. test: invalid chars in http client path

    This test adds coverage for all the characters which are considered
    invalid in a http path.
    
    PR-URL: #11964
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lucamaraschi authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    3d21bfe View commit details
    Browse the repository at this point in the history
  36. lib: fix event race condition with -e

    Commit c5b07d4 ("lib: fix beforeExit not working with -e") runs the
    to-be-evaluated code at a later time than before because it switches
    from `process.nextTick()` to `setImmediate()`.
    
    It affects `-e 'process.on("message", ...)'` because there is now a
    larger time gap between startup and attaching the event listener,
    increasing the chances of missing early messages.  I'm reasonably
    sure `process.nextTick()` was also susceptible to that, only less
    pronounced.
    
    Avoid the problem altogether by evaluating the code synchronously.
    Harmonizes the logic with `Module.runMain()` from lib/module.js
    which also calls `process._tickCallback()` afterwards.
    
    PR-URL: #11958
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    bnoordhuis authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    6c803db View commit details
    Browse the repository at this point in the history
  37. test: refactor test-cluster-disconnect

    Replace `process.once('exit', ...)` with `common.mustCall()`.
    Remove unneeded variable in loop declaration.
    
    PR-URL: #11981
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    ade64e6 View commit details
    Browse the repository at this point in the history
  38. benchmark: repair the fs/readfile benchmark

    PR-URL: #7818
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Sorin Baltateanu authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    7aeeee3 View commit details
    Browse the repository at this point in the history
  39. process: maintain constructor descriptor

    Use the original property descriptor instead of just taking the value,
    which would, by default, be non-writable and non-configurable.
    
    PR-URL: #9306
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    bengl authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    2462fd8 View commit details
    Browse the repository at this point in the history
  40. benchmark: update obsolete information pointer

    A doc suggested in an error message is no longer the place to get the
    information about required http benchmarkers. Update the error message
    to point to the current location for the information.
    
    PR-URL: #12026
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    2102504 View commit details
    Browse the repository at this point in the history
  41. lib: remove an unnecessary coverage check

    PR-URL: #12023
    Fixes: #11445
    Refs: f65a48f
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Fishrock123 authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    837ff4b View commit details
    Browse the repository at this point in the history
  42. test: add second argument to assert.throws()

    Adds a second argument to the assert.throws() test to implicitly specify
    expected error message.
    
    PR-URL: #12016
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@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: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    rjbernaldo authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    a73dea9 View commit details
    Browse the repository at this point in the history
  43. test: add regex for expected error message

    Provide a regex to validate the error message.
    
    PR-URL: #12011
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    jfmercer authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    1c0435b View commit details
    Browse the repository at this point in the history
  44. test: test validity of prefix in mkdtempSync

    This test is checking for the validity of the path used as parameter
    for mkdtempSync.
    
    PR-URL: #12009
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    lucamaraschi authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    414df6c View commit details
    Browse the repository at this point in the history
  45. net: refactor net module to module.exports

    Refactor net module to use the more efficient
    module.exports = {} pattern.
    Also renames internal "connect" function to "internalConnect"
    to avoid collision with exported "connect".
    
    PR-URL: #11698
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    claudiorodriguez authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    ac92d02 View commit details
    Browse the repository at this point in the history
  46. lib: clarify the usage of 'else'

    The keyword 'else' is unnecessary after 'throw' statements.
    
    PR-URL: #11148
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    JacksonTian authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    7347860 View commit details
    Browse the repository at this point in the history
  47. test: cover thrown errors from exec() kill

    This commit adds code coverage for the scenario where exec()
    kills a child process, but the call to ChildProcess#kill()
    throws an exception.
    
    PR-URL: #11038
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    cjihrig authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    41284fb View commit details
    Browse the repository at this point in the history
  48. url: name anonymous functions in url

    Name anonymous functions in url.js.
    
    PR-URL: #9225
    Ref: #8913
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    pvsousalima authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    126dcb7 View commit details
    Browse the repository at this point in the history
  49. test: replace throw with common.fail

    Replace anonymous functions with arrow functions.
    Replace throw new Error with common.fail.
    
    PR-URL: #9700
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Italo A. Casas <me@italoacasas.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    itsmed authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    d112aad View commit details
    Browse the repository at this point in the history
  50. stream_base,tls_wrap: notify on destruct

    The TLSWrap constructor is passed a StreamBase* which it stores as
    TLSWrap::stream_, and is used to receive/send data along the pipeline
    (e.g. tls -> tcp). Problem is the lifetime of the instance that stream_
    points to is independent of the lifetime of the TLSWrap instance. So
    it's possible for stream_ to be delete'd while the TLSWrap instance is
    still alive, allowing potential access to a then invalid pointer.
    
    Fix by having the StreamBase destructor null out TLSWrap::stream_;
    allowing all TLSWrap methods that rely on stream_ to do a check to see
    if it's available.
    
    While the test provided is fixed by this commit, it was also previously
    fixed by 478fabf. Regardless, leave the test in for better testing.
    
    PR-URL: #11947
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    trevnorris authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    4051184 View commit details
    Browse the repository at this point in the history
  51. Partial revert "tls: keep track of stream that is closed"

    This partually reverts commit 4cdb0e8.
    
    A nullptr check in TSLWrap::IsAlive() and the added test were left.
    
    PR-URL: #11947
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    trevnorris authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    51c8d80 View commit details
    Browse the repository at this point in the history
  52. doc: fix process.stdout fd number

    it should be 1 for the stdout fd number
    
    PR-URL: #12055
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    fmy authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    7f6b03f View commit details
    Browse the repository at this point in the history
  53. doc: stdout/err/in are all Duplex streams

    stdout, stderr and stdin are all Duplex streams but documentation
    states otherwise
    
    Fixes #9201
    
    PR-URL: #11194
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    seppevs authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    5e3d429 View commit details
    Browse the repository at this point in the history
  54. doc: edit the benchmark guide

    These are minor typographical and style improvements to the guide for
    writing and running benchmarks.
    
    PR-URL: #12041
    Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    18a586a View commit details
    Browse the repository at this point in the history
  55. test: fix broken tests in test-buffer-includes

    Some of the tests for `buffer.includes()` functionality introduced in
    #3567 have been broken in a way that
    caused them to always pass regardless of the result of the tested
    method.
    
    This behavior was caused by two reasons:
    
     * These tests were written as though `buffer.includes()` was supposed
       to return the same value that `buffer.indexOf()` does, i.e., used
       indices or -1 as expected return values instead of true and false.
     * `assert()` was used as the assertion function to do that instead of
       `assert.strictEqual()`.
    
    Thus `assert()` was called with a non-zero number as the first argument
    effectively causing these tests to pass.
    
    This commit changes the tests to use `assert.ok()` and removes redundant
    indices.
    
    PR-URL: #12040
    Ref: #3567
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    aqrln authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    948b99d View commit details
    Browse the repository at this point in the history
  56. doc: fix http properties documented as methods

    * at 9772fb9
      [`maxHeadersCount`][maxheaderscount] and [`timeout`][timeout]
      were erroneously changed to methods
    * `maxHeadersCount` was also listed to default to `1000` where
      it actually is [`2000`][default]
    
    [maxheaderscount]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L276
    [timeout]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L273
    [default]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L312
    
    PR-URL: #12039
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Ahmad Nassri authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    af051f6 View commit details
    Browse the repository at this point in the history
  57. doc: fix https.timeout docs

    `server.timeout` is a property, not a method
    
    PR-URL: #12039
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Ahmad Nassri authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    4b5f177 View commit details
    Browse the repository at this point in the history
  58. doc: update and modernize examples in fs.ms

    * unify quotes in fs.md
    * avoid quote escaping in fs.md
    * simplify logics in fs.md
    * concatenation -> template literal in fs.md
    * add missing callback in fs.md
    * fix typo in fs.md
    * update output example in fs.md
    
    PR-URL: #12035
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    63a19c7 View commit details
    Browse the repository at this point in the history
  59. test: mark child-process-exec-kill-throws flaky

    PR-URL: #12054
    Ref: #12053
    Ref: #11038
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    gibfahn authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    8b2b93f View commit details
    Browse the repository at this point in the history
  60. benchmark: check end() argument to be > 0

    PR-URL: #12030
    Ref: #11972
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    vsemozhetbyt authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    751c115 View commit details
    Browse the repository at this point in the history
  61. doc: clarify out-of-bounds behavior of buf[index]

    PR-URL: #11286
    Fixes: #11244
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ron Korving <ron@ronkorving.nl>
    seishun authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    fade55b View commit details
    Browse the repository at this point in the history
  62. test: fix misleading comment

    The comment is outdated, function declarations have
    nothing to do with defineProperties.
    
    PR-URL: #12048
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    fhinkel authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    d8b71be View commit details
    Browse the repository at this point in the history
  63. crypto: fix memory leak if certificate is revoked

    The additional validity checks applied to StartCom and WoSign
    certificates failed to free memory before returning.
    
    Refs: #9469
    Fixes: #12033
    PR-URL: #12089
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Tom Atkinson authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    a64aa44 View commit details
    Browse the repository at this point in the history
  64. tls: fix SecurePair external memory reporting

    Ensure that AdjustAmountOfExternalAllocatedMemory() is called when
    the SecurePair is destroyed.  Not doing so is not an actual memory
    leak but it makes `process.memoryUsage().external` wildly inaccurate
    and can cause performance problems due to excessive garbage collection.
    
    PR-URL: #11896
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    bnoordhuis authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    fd93622 View commit details
    Browse the repository at this point in the history
  65. lib: add comment to script eval _tickCallback

    Add a comment to match lib/module.js, missed in #11958.
    
    PR-URL: #12050
    Ref: #11958
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    gibfahn authored and MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    5bdd549 View commit details
    Browse the repository at this point in the history
  66. 2017-03-28, Version 7.8.0 (Current)

    Notable changes:
    
    * buffer:
      - do not segfault on out-of-range index (Timothy Gu)
        #11927
    * crypto:
      - Fix memory leak if certificate is revoked (Tom Atkinson)
        #12089
    * deps:
      * upgrade npm to 4.2.0 (Kat Marchán)
        #11389
      * fix async await desugaring in V8 (Michaël Zasso)
        #12004
    * readline:
      - add option to stop duplicates in history (Danny Nemer)
        #2982
    * src:
      - add native URL class (James M Snell)
        #11801
    
    PR-URL: #12104
    MylesBorins committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    f04524e View commit details
    Browse the repository at this point in the history