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

209 cache has instance #214

Commits on Mar 19, 2017

  1. deps: cherry-pick 09de996 from V8 upstream

    Original commit message:
      [debugger] fix switch block source positions.
    
      The switch statement itself is part of the switch block.
      However, the source position of the statement is outside of
      the block. This leads to confusion for the debugger, if the
      switch block pushes a block context: the current context is
      a block context, but the scope analysis based on the current
      source position tells the debugger that we should be outside
      the scope, so we should have the function context.
    
      [email protected]
      BUG=v8:6085
      Review-Url: https://codereview.chromium.org/2744213003
      Cr-Commit-Position: refs/heads/master@{#43744}
      Committed: https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309d02f5
    
    Fixes: nodejs/node#11746
    PR-URL: nodejs/node#11905
    Fixes: nodejs/node#11746
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    fhinkel committed Mar 19, 2017
    Configuration menu
    Copy the full SHA
    dd8982d View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2017

  1. doc: add vsemozhetbyt to collaborators

    PR-URL: nodejs/node#11932
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    vsemozhetbyt committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    4895e0c View commit details
    Browse the repository at this point in the history
  2. test: fix assertion in vm test

    Prototypes are not strict equal when they are from
    different contexts. Therefore, assert.strictEqual()
    fails for objects that are created in different
    contexts, e.g., in vm.runInContext().
    
    Instead of expecting the prototypes to be equal,
    only check the properties of the objects
    for equality.
    
    PR-URL: nodejs/node#11862
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    AnnaMag authored and fhinkel committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    7ef2d90 View commit details
    Browse the repository at this point in the history
  3. tls: fix segfault on destroy after partial read

    OnRead() calls into JS land which can result in the SSL context object
    being destroyed on return.  Check that `ssl_ != nullptr` afterwards.
    
    Fixes: nodejs/node#11885
    PR-URL: nodejs/node#11898
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    03a6c6e View commit details
    Browse the repository at this point in the history
  4. test: added net.connect lookup type check

    Check the options passed to Socket.prototype.connect() to
    validate the type of the lookup property.
    
    PR-URL: nodejs/node#11873
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    lucamaraschi authored and cjihrig committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    1ff6796 View commit details
    Browse the repository at this point in the history
  5. test: add tests for unixtimestamp generation

    This test checks for the different input types for the generation
    of UNIX timestamps in the fs module.
    
    PR-URL: nodejs/node#11886
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    lucamaraschi authored and cjihrig committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    6aed32c View commit details
    Browse the repository at this point in the history
  6. doc: add supported platforms list

    PR-URL: nodejs/node#11872
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    mhdawson committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    ef47687 View commit details
    Browse the repository at this point in the history
  7. 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: nodejs/node#11785
    PR-URL: nodejs/node#11887
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    watilde committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    60c8a35 View commit details
    Browse the repository at this point in the history
  8. test: synchronize WPT url setters tests data

    Synchronize url-setter-test to upstream.
    
    Refs: web-platform-tests/wpt#5112
    PR-URL: nodejs/node#11887
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    watilde committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    cab58fe View commit details
    Browse the repository at this point in the history
  9. doc: add missing word in stream.md

    PR-URL: nodejs/node#11914
    Fixes: nodejs/node#11913
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jyotman authored and TimothyGu committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    3622a97 View commit details
    Browse the repository at this point in the history
  10. 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: nodejs/node#875
    Fixes: nodejs/node#11656
    PR-URL: nodejs/node#11863
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bzoz authored and addaleax committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    bd496e0 View commit details
    Browse the repository at this point in the history
  11. 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: nodejs/node#11944
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    silverwind committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    2a4a5f0 View commit details
    Browse the repository at this point in the history
  12. http: use more efficient module.exports pattern

    PR-URL: nodejs/node#11594
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    5425e0d View commit details
    Browse the repository at this point in the history
  13. http: replace uses of self

    PR-URL: nodejs/node#11594
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell committed Mar 20, 2017
    Configuration menu
    Copy the full SHA
    74c1e02 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2017

  1. tools: ignore URLs in line length linting

    Where inclusion of a lengthy URL causes a line to exceed 80 characters
    in our code base, do not report the line length as a linting error.
    
    PR-URL: nodejs/node#11890
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Trott committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    cce520a View commit details
    Browse the repository at this point in the history
  2. 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: nodejs/node#11906
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Trott committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    39bba4d View commit details
    Browse the repository at this point in the history
  3. 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: nodejs/node#11911
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    5a71cb6 View commit details
    Browse the repository at this point in the history
  4. benchmark: remove v8ForceOptimization calls

    This removes common.v8ForceOptimization calls from url and vm benchmark
    files.
    
    PR-URL: nodejs/node#11908
    Fixes: nodejs/node#11895
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    lucaslago authored and targos committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    3129ba2 View commit details
    Browse the repository at this point in the history
  5. benchmark: fix fs\bench-realpathSync.js

    Make it call-site-cwd-independent.
    
    PR-URL: nodejs/node#11904
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    vsemozhetbyt committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    ab2d49b View commit details
    Browse the repository at this point in the history
  6. 2017-03-21, Version 4.8.1 'Argon' (LTS)

    Notable Changes:
    
    * buffer:
      - The performance of `.toJSON()` is now up to 2859% faster on average
        (Brian White) nodejs/node#10895
    
    * IPC:
      - Batched writes have been enabled for process IPC on platforms that
        support Unix Domain Sockets. (Alexey Orlenko)
        nodejs/node#10677
      - Performance gains may be up to 40% for some workloads.
    
    * http:
      - Control characters are now always rejected when using
        `http.request()`. (Ben Noordhuis)
        nodejs/node#8923
    
    * node:
      - Heap statistics now support values larger than 4GB. (Ben Noordhuis)
        nodejs/node#10186
    
    PR-URL: nodejs/node#11760
    MylesBorins committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    7738cf2 View commit details
    Browse the repository at this point in the history
  7. 2017-03-21, Version 6.10.1 'Boron' (LTS)

    Notable changes
    
    * performance: The performance of several APIs has been improved.
      - `Buffer.compare()` is up to 35% faster on average. (Brian White)
        nodejs/node#10927
      - `buffer.toJSON()` is up to 2859% faster on average. (Brian White)
        nodejs/node#10895
      - `fs.*statSync()` functions are now up to 9.3% faster on average.
        (Brian White) nodejs/node#11522
      - `os.loadavg` is up to 151% faster. (Brian White)
        nodejs/node#11516
      - `process.memoryUsage()` is up to 34% faster. (Brian White)
        nodejs/node#11497
      - `querystring.unescape()` for `Buffer`s is 15% faster on average.
        (Brian White) nodejs/node#10837
      - `querystring.stringify()` is up to 7.8% faster on average.
        (Brian White) nodejs/node#10852
      - `querystring.parse()` is up to 21% faster on average. (Brian White)
        nodejs/node#10874
    
    * IPC:
      - Batched writes have been enabled for process IPC on platforms that
        support Unix Domain Sockets. (Alexey Orlenko)
        nodejs/node#10677
      - Performance gains may be up to 40% for some workloads.
    
    * child_process:
      - `spawnSync` now returns a null `status` when child is terminated by
        a signal. (cjihrig) nodejs/node#11288
      - This fixes the behavior to act like `spawn()` does.
    
    * http:
      - Control characters are now always rejected when using
        `http.request()`. (Ben Noordhuis)
        nodejs/node#8923
      - Debug messages have been added for cases when headers contain
        invalid values. (Evan Lucas)
        nodejs/node#9195
    
    * node:
      - Heap statistics now support values larger than 4GB. (Ben Noordhuis)
        nodejs/node#10186
    
    * timers:
      - Timer callbacks now always maintain order when interacting with
        domain error handling. (John Barboza)
        nodejs/node#10522
    
    PR-URL: nodejs/node#11759
    MylesBorins committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    2569c90 View commit details
    Browse the repository at this point in the history
  8. 2017-03-21, Version 7.7.4 (Current)

    Notable changes:
    
    * deps: Add node-inspect 1.10.6 (Jan Krems) nodejs/node#11869
    * inspector: proper WS URLs when bound to 0.0.0.0 (Eugene Ostroukhov) nodejs/node#11850
    * tls: fix segfault on destroy after partial read. (Ben Noordhuis) nodejs/node#11898
    
    PR-URL: nodejs/node#11941
    cjihrig committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    7e6e7d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2017

  1. build: remove cares headers from tarball

    The bundled c-ares isn't very suitable for consumption by addons,
    isn't kept stable, and isn't exported on windows.
    
    PR-URL: nodejs/node#10283
    Refs: nodejs/node-gyp#1055
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    gibfahn committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    a1028d5 View commit details
    Browse the repository at this point in the history
  2. querystring: move isHexTable to internal

    PR-URL: nodejs/node#11858
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    TimothyGu committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    c98a802 View commit details
    Browse the repository at this point in the history
  3. url: spec-compliant URLSearchParams parser

    The entire `URLSearchParams` class is now fully spec-compliant.
    
    PR-URL: nodejs/node#11858
    Fixes: nodejs/node#10821
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    TimothyGu committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    c515a98 View commit details
    Browse the repository at this point in the history
  4. src: make PercentDecode return void

    It only returns 0, nor is it likely to have any error conditions in the
    future.
    
    PR-URL: nodejs/node#11922
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    d231236 View commit details
    Browse the repository at this point in the history
  5. test: fix flaky test-tls-socket-close

    Replace timer/timeout race with event-based ordering, eliminating test
    flakiness.
    
    PR-URL: nodejs/node#11921
    Fixes: nodejs/node#11912
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    7bc893f View commit details
    Browse the repository at this point in the history
  6. 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: nodejs/node#11929
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Trott authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    1d82adc View commit details
    Browse the repository at this point in the history
  7. src, buffer: do not segfault on out-of-range index

    Also add test cases for partial writes and invalid indices.
    
    PR-URL: nodejs/node#11927
    Fixes: nodejs/node#8724
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    TimothyGu authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    4fb9b12 View commit details
    Browse the repository at this point in the history
  8. benchmark: harmonize progress bar + stderr output

    Add a space for minimal readability.
    
    PR-URL: nodejs/node#11925
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    4b841cb View commit details
    Browse the repository at this point in the history
  9. benchmark: add final clean-up to module-loader.js

    PR-URL: nodejs/node#11924
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    ae8a869 View commit details
    Browse the repository at this point in the history
  10. fs: (+/-)Infinity and NaN invalid unixtimestamp

    Infinity and NaN are currently considered valid input when generating a
    unix time stamp but are defaulted arbitrarly to Date.now()/1000. This
    PR removes this behaviour and throw an exception like all the other
    invalid input types.
    
    PR-URL: nodejs/node#11919
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lucamaraschi authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    eed87b1 View commit details
    Browse the repository at this point in the history
  11. build: don't create directory for NDK toolchain

    Let make-standalone-toolchain.sh create directory.
    
    PR-URL: nodejs/node#11916
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    diastremskii authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    757c90e View commit details
    Browse the repository at this point in the history
  12. doc: require uses fs root for '/' prefix

    PR-URL: nodejs/node#11897
    Fixes: nodejs/node#7151
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    bmeck authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    757ff80 View commit details
    Browse the repository at this point in the history
  13. errors: remove needless lazyAssert

    PR-URL: nodejs/node#11891
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    DavidCai1111 authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    a00c9e9 View commit details
    Browse the repository at this point in the history
  14. 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: nodejs/node#11933
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    fbb853f View commit details
    Browse the repository at this point in the history
  15. 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: nodejs/node#11801
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    e26b6c6 View commit details
    Browse the repository at this point in the history
  16. 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: nodejs/node#11950
    Ref: nodejs/node#2982
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    DannyNemer authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    c8eec76 View commit details
    Browse the repository at this point in the history
  17. 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: nodejs/node#11949
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    76279cb View commit details
    Browse the repository at this point in the history
  18. test: minor fixups for REPL eval tests

    The `process.on("exit")` event handlers are unnecessary, so it’s okay
    to drop them.
    
    PR-URL: nodejs/node#11946
    Ref: nodejs/node#11871
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    addaleax authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    64d0a73 View commit details
    Browse the repository at this point in the history
  19. 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: nodejs/node#11945
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    bnoordhuis authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    f35e80d View commit details
    Browse the repository at this point in the history
  20. src: exclude node_root_certs when use-def-ca-store

    When configuring node with --openssl-use-def-ca-store the root certs
    from OpenSSL should be used and not the ones in src/node_root_certs.h.
    I noticed that src/node_root_certs.h is still included even when
    using --openssl-use-def-ca-store.
    
    This commit adds check and does not include node_root_certs.h if
    --openssl-use-def-ca-store is specified.
    
    PR-URL: nodejs/node#11939
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    danbev authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    be98f26 View commit details
    Browse the repository at this point in the history
  21. 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: nodejs/node#11896
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bnoordhuis authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    86d74a2 View commit details
    Browse the repository at this point in the history
  22. lib: Use regex to compare error message

    To make node engine agnostic, use better comparison method for error
    message.
    
    Lazily populate the `circular reference` error message thrown
    by `JSON.stringify()` which can be used to compare the error
    message thrown.
    
    PR-URL: nodejs/node#11854
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    kunalspathak authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    4eb194a View commit details
    Browse the repository at this point in the history
  23. http: avoid retaining unneeded memory

    Prevent the events listeners of the sockets obtained with the HTTP
    upgrade mechanism from retaining unneeded memory.
    
    Ref: nodejs/node#11868
    PR-URL: nodejs/node#11926
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    lpinca authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    e0a9ad1 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: nodejs/node#11819
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    seishun committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    43fa0a8 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: nodejs/node#11646
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    shigeki authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    81ab78e View commit details
    Browse the repository at this point in the history
  26. events, doc: check input in defaultMaxListeners

    PR-URL: nodejs/node#11938
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    DavidCai1111 authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    221b03a View commit details
    Browse the repository at this point in the history
  27. lib,src: make constants not inherit from Object

    Make sure `constants` object and all the nested objects don't inherit
    from `Object.prototype` but from `null`.
    
    PR-URL: nodejs/node#10458
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    thefourtheye authored and jasnell committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    caf9ae7 View commit details
    Browse the repository at this point in the history
  28. deps: upgrade npm to 4.2.0

    PR-URL: nodejs/node#11389
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    zkat authored and Fishrock123 committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    e1834ff View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2017

  1. 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: nodejs/node#11996
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Trott authored and shigeki committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    8a639bb View commit details
    Browse the repository at this point in the history
  2. test: do not use more command on Windows

    PR-URL: nodejs/node#11953
    Fixes: nodejs/node#11469
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    vsemozhetbyt committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    2dff3a2 View commit details
    Browse the repository at this point in the history
  3. url: show input in parse error message

    PR-URL: nodejs/node#11934
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    joyeecheung authored and jasnell committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    ee19e29 View commit details
    Browse the repository at this point in the history
  4. tls: make rejectUnauthorized default to true

    rejectUnauthorized used to be false when the property was undefined or
    null, quietly allowing client connections for which certificates have
    been requested (requestCert is true) even when the client certificate
    was not authorized (signed by a trusted CA). Change this so
    rejectUnauthorized is always true unless it is explicitly set to false.
    
    PR-URL: nodejs/node#5923
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    ghaiklor authored and sam-github committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    348cc80 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2017

  1. doc: add richardlau to collaborators

    PR-URL: nodejs/node#12020
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    richardlau committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    cb6c0c1 View commit details
    Browse the repository at this point in the history
  2. build: add lint option to vcbuild.bat help

    PR-URL: nodejs/node#11992
    Fixes: nodejs/node#11971
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    brennemo authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    a8a042a View commit details
    Browse the repository at this point in the history
  3. build: enable cctest to use generated objects

    This commit tries to make it simpler to add unit tests (cctest) for
    code that needs to test node core funtionality but that might not be
    appropriate as an addon or a JavaScript test. An example of this could
    be adding functionality targeted for situations when Node itself is
    embedded.
    
    Currently it was not as easy, or efficient, as one would have hoped to
    add such tests. The object output directories vary for different
    operating systems which we need to link to so that we don't have an
    additional compilation step.
    
    PR-URL: nodejs/node#11956
    Ref: nodejs/node#9163
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    6a09a69 View commit details
    Browse the repository at this point in the history
  4. doc: c++ unit test guide lines

    PR-URL: nodejs/node#11956
    Ref: nodejs/node#9163
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    64af398 View commit details
    Browse the repository at this point in the history
  5. test: add internal/socket_list tests

    PR-URL: nodejs/node#11989
    Reviewed-By: James M Snell <[email protected]>
    DavidCai1111 authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    4929d12 View commit details
    Browse the repository at this point in the history
  6. doc: document extent of crypto Uint8Array support

    PR-URL: nodejs/node#11982
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    addaleax authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    e40ac30 View commit details
    Browse the repository at this point in the history
  7. test: add test for url

    PR-URL: nodejs/node#11999
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Prince John Wesley <[email protected]>
    hiroppy committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    abb0bdd View commit details
    Browse the repository at this point in the history
  8. 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: nodejs/node#11979
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Trott authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    0d000ca View commit details
    Browse the repository at this point in the history
  9. test: improve test-vm-cached-data.js

    * verify error message by adding 2nd argument to throws in test-assert
    
    PR-URL: nodejs/node#11974
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    mpelekh authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    89d9c3f View commit details
    Browse the repository at this point in the history
  10. 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: nodejs/node#11964
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lucamaraschi authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    30f1e8e View commit details
    Browse the repository at this point in the history
  11. 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: nodejs/node#11958
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    bnoordhuis authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    9ff7ed2 View commit details
    Browse the repository at this point in the history
  12. test: refactor test-cluster-disconnect

    Replace `process.once('exit', ...)` with `common.mustCall()`.
    Remove unneeded variable in loop declaration.
    
    PR-URL: nodejs/node#11981
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    a45c2db View commit details
    Browse the repository at this point in the history
  13. benchmark: repair the fs/readfile benchmark

    PR-URL: nodejs/node#7818
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Sorin Baltateanu authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    d9b0e4c View commit details
    Browse the repository at this point in the history
  14. benchmark: add more options to map-bench

    PR-URL: nodejs/node#11930
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    a6e69f8 View commit details
    Browse the repository at this point in the history
  15. url: use a class for WHATWG url[context]

    The object is used as a structure, not as a map, which `StorageObject`
    was designed for.
    
    PR-URL: nodejs/node#11930
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    14a9195 View commit details
    Browse the repository at this point in the history
  16. lib: use Object.create(null) directly

    After V8 5.6, using Object.create(null) directly is now faster than
    using a constructor for map-like objects.
    
    PR-URL: nodejs/node#11930
    Refs: emberjs/ember.js#15001
    Refs: https://crrev.com/532c16eca071df3ec8eed394dcebb932ef584ee6
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    cfc8422 View commit details
    Browse the repository at this point in the history
  17. events: update and clarify error message

    Update error message that's thrown when no error listeners are attached
    to an emitter.
    
    PR-URL: nodejs/node#10387
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Italo A. Casas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    ctide authored and jasnell committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    2141d37 View commit details
    Browse the repository at this point in the history
  18. 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: nodejs/node#9306
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bengl authored and addaleax committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    e0bc5a7 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2017

  1. deps: update V8 to 5.7.492.69

    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    c459d8e View commit details
    Browse the repository at this point in the history
  2. src: update NODE_MODULE_VERSION to 54

    Major V8 updates are usually API/ABI incompatible with previous
    versions. This commit adapts NODE_MODULE_VERSION for V8 5.7.
    
    Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
    
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    89d8dc9 View commit details
    Browse the repository at this point in the history
  3. deps: limit regress/regress-crbug-514081 v8 test

    regress/regress-crbug-514081 allocates a 2G block of memory
    and if there  are multiple variants running at the
    same time this can lead to crashes, OOM kills or
    the OS failing to allocate memory.  This patch
    limits us to running a single variant of the test
    
    Fixes: nodejs/node#6340
    PR-URL: nodejs/node#6678
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    mhdawson authored and targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    3f9c8fb View commit details
    Browse the repository at this point in the history
  4. deps: cherry-pick V8 ValueSerializer changes

    Refs: nodejs/node#11048
    
    Below is the list of commits:
    
    deps: cherry-pick 78c0be52d from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Promote scheduled exceptions from wasm::ErrorThrower.
    
      wasm::ErrorThrower doesn't actually throw exceptions, it just schedules them.
      As a result, this exception isn't handled properly by code which expects
      ValueDeserializer to actually throw. For instance, the unit tests use a
      TryCatch to catch and handle expected exceptions in unit tests.
    
      Before this patch, I see local unit test failures because a wasm decode test
      schedules one, but it isn't caught (and instead causes Context::New to fail
      at the beginning of the next test).
    
      BUG=685713
    
      Review-Url: https://codereview.chromium.org/2659483004
      Cr-Commit-Position: refs/heads/master@{#42718}
    
    deps: cherry-pick 966355585 from V8 upstream
    
    Original commit message:
    
      [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer)
    
      Review-Url: https://codereview.chromium.org/2643723010
      Cr-Commit-Position: refs/heads/master@{#42749}
    
    deps: cherry-pick bf511b426 from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Support efficiently reading and writing one-byte strings.
    
      memcpy is faster than UTF-8 encoding/decoding. This yields 10-20% wins on
      serializing and deserializing long ASCII strings, according to
      blink_perf.bindings -- and these are already in a fast path where the entire
      string is known to be ASCII (but this has to be checked). The win may be
      larger for strings in Latin-1 but not ASCII (though I suspect this is an
      uncommon case).
    
      A change is also made to make ValueSerializerTest.EncodeTwoByteStringUsesPadding
      survive wire format version number changes.
    
      This is the first of a series of wire format changes from the previous Blink
      format. The deserializer continues to be able to read the old format, but
      Chromium M56 will no longer be able to read the messages written by this, in M58.
    
      BUG=chromium:686159
    
      Review-Url: https://codereview.chromium.org/2658793004
      Cr-Commit-Position: refs/heads/master@{#42753}
    
    deps: cherry-pick 6f1639ed1 from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Distinguish between 'undefined' and an absent property.
    
      Dealing with this case requires a wire format change. It is possible that an
      element can be absent even in an array where the dense format was chosen
      (because the array initially had no holes), if the elements are modified while
      they are being serialized. In this case, a new tag for the "hole" is emitted.
    
      The logic to treat undefined in dense arrays as an absent property is restricted
      to versions of the wire format that this tag did not exist.
    
      BUG=chromium:686159,chromium:665820
    
      Review-Url: https://codereview.chromium.org/2660093002
      Cr-Original-Commit-Position: refs/heads/master@{#42784}
      Committed: https://chromium.googlesource.com/v8/v8/+/dc85f4c8338c1c824af4f7ee3274dc9f95d14e49
      Review-Url: https://codereview.chromium.org/2660093002
      Cr-Commit-Position: refs/heads/master@{#42800}
    
    deps: cherry-pick c3856de37 from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Check for zero length before casting to FixedDoubleArray.
    
      Even though the elements kind is FAST_DOUBLE_ELEMENTS, if length is zero
      the isolate's empty_fixed_array is used. It's illegal to cast this to
      FixedDoubleArray, so we avoid the cast.
    
      BUG=chromium:686479
    
      Review-Url: https://codereview.chromium.org/2665313003
      Cr-Commit-Position: refs/heads/master@{#42867}
    
    deps: cherry-pick 591cc0b4c from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Share string encoding code with String and RegExp objects.
    
      This avoids the need to pull in the UTF-8 encoding code from the public API,
      and allows it to take advantage of any supported way that i::String can be
      encoded (one- or two-byte).
    
      Backward compatibility is maintained, but this is the behavior beginning
      with this version.
    
      BUG=chromium:686159
    
      Review-Url: https://codereview.chromium.org/2665653004
      Cr-Commit-Position: refs/heads/master@{#42872}
    
    deps: cherry-pick 79837f5f6 from V8 upstream
    
    Original commit message:
    
      Improve ValueSerializer perf regression after 96635558
    
      BUG=687196
      [email protected]
    
      Review-Url: https://codereview.chromium.org/2674613002
      Cr-Commit-Position: refs/heads/master@{#42938}
    
    deps: cherry-pick 8990399dc from V8 upstream
    
    Original commit message:
    
      ValueDeserializer: Only allow valid keys when deserializing object properties.
    
      The serializer won't ever write a more complex object. Not validating this
      allows other things to be used as keys, and converted to string when the
      property set actually occurs. It turns out this gives an opportunity to trigger
      OOM by giving an object a key which is a very large sparse array (whose string
      representation is very large).
    
      This case is now rejected by the deserializer.
    
      BUG=chromium:686511
    
      Review-Url: https://codereview.chromium.org/2697023002
      Cr-Commit-Position: refs/heads/master@{#43249}
    
    deps: cherry-pick 68960eeb7 from V8 upstream
    
    Original commit message:
    
      ValueDeserializer: Make sure that an exception is the legacy path.
    
      The entry points to the deserializer are responsible for ensuring that an
      exception is pending by the time they return. Some failures throw exceptions
      themselves, while others (like errors in the format) are exceptions caused by
      the deserializer, not coming from the runtime.
    
      Like the non-legacy path, a default deserialization exception should be thrown
      in such cases.
    
      BUG=chromium:693411
    
      Review-Url: https://codereview.chromium.org/2712713002
      Cr-Commit-Position: refs/heads/master@{#43390}
    
    deps: cherry-pick 3b15d950e from V8 upstream
    
    Original commit message:
      ValueSerializer: Add SetTreatArrayBufferViewsAsHostObjects() flag
    
      Add `ValueSerializer::SetTreatArrayBufferViewsAsHostObjects()` which
      instructs the `ValueSerializer` to treat ArrayBufferView objects as
      host objects.
    
      BUG=v8:5926
    
      Review-Url: https://codereview.chromium.org/2696133007
      Cr-Commit-Position: refs/heads/master@{#43281}
    
    deps: cherry-pick 654351997 from V8 upstream
    
    Original commit message:
    
      ValueSerializer: Add an explicit tag for host objects.
    
      This makes it no longer necessary to ensure that V8 and Blink have non-colliding
      tags, which makes it easier for them to evolve independently, and also makes
      the wire format more suitable for other V8 embedders, who would not
      necessarily be surveyed before V8 introduced a new tag that might collide
      with theirs.
    
      BUG=chromium:686159
    
      Review-Url: https://codereview.chromium.org/2709023003
      Cr-Commit-Position: refs/heads/master@{#43466}
    
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    addaleax authored and targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    83bf297 View commit details
    Browse the repository at this point in the history
  5. deps: cherry-pick a927f81c7 from V8 upstream

    Original commit message:
    
      [ValueSerializer] Allow wire format versions beginning with 13 to be deserialized in non-legacy mode.
    
      As of version 13, delegates do not need to worry about colliding tags with the
      tags reserved by v8, since v8 inserts a "host object" prefix beforehand. Thus
      the format is now suitable for more general use, without opting into the "legacy"
      mode that had this caveat.
    
      Review-Url: https://codereview.chromium.org/2722213002
      Cr-Commit-Position: refs/heads/master@{#43521}
    
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    addaleax authored and targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    fcc58bf View commit details
    Browse the repository at this point in the history
  6. deps: cherry-pick 0ba513f05 from V8 upstream

    Original commit message:
      [api] Fix DescriptorInterceptor with access check.
    
      The DescriptorInterceptor should intercept all
      Object.getOwnPropertyDescriptor calls. This CL fixes
      the interceptor's behavior if the iterator state is
      ACCESS_CHECK.
    
      BUG=
    
      Review-Url: https://codereview.chromium.org/2707263002
      Cr-Commit-Position: refs/heads/master@{#43417}
    
    PR-URL: nodejs/node#11712
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    fhinkel authored and targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    3471d63 View commit details
    Browse the repository at this point in the history
  7. deps: cherry-pick c5c570f from upstream V8

    Original commit message:
    
        [build] Fix gyp files for building inspector
    
        This patch fixes compilation of V8 with inspector on Windows as well as
        cross-compilation of the V8 inspector.
    
        BUG=
    
        Refs: nodejs/node#10992
        Review-Url: https://codereview.chromium.org/2705423003
        Cr-Commit-Position: refs/heads/master@{#43533}
    
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    8394b05 View commit details
    Browse the repository at this point in the history
  8. deps: backport 39642fa from upstream V8

    This is an almost clean cherry-pick of the original commit. The only
    conflict was related to a rename of an internal class.
    
    Original commit message:
    
        [async-await] (simpler) fix for Return in try/finally in async functions
    
        Alternative approach to https://codereview.chromium.org/2667983004/, which
        does not depend on implicit control flow changes from
        https://codereview.chromium.org/2664083002
    
        - Remove handling for `async function` from Parser::RewriteReturn(). This functionality
        is moved to BytecodeGenerator::BuildAsyncReturn(). This ensures that promise resolution
        is deferred until all finally blocks are evaluated fully.
    
        - Add a new deferred command (CMD_ASYNC_RETURN), which instructs ControlScope to
        generate return code using BuildAsyncReturn rather than BuildReturn.
    
        - Parser has a new `NewReturnStatement()` helper which determines what type of return
        statement to generate based on the type of function.
    
        BUG=v8:5896, v8:4483
        [email protected], [email protected], [email protected], [email protected], [email protected]
    
        Review-Url: https://codereview.chromium.org/2685683002
        Cr-Commit-Position: refs/heads/master@{#43104}
    
    Fixes: nodejs/node#11960
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    07088e6 View commit details
    Browse the repository at this point in the history
  9. deps: backport 3297130 from upstream V8

    This fixes a build failure on Windows.
    
    Original commit message:
    
        Rename TypeFeedbackVector to FeedbackVector.
    
        ... and TypeFeedbackMetadata to FeedbackMetadata.
    
        BUG=
    
        Change-Id: I2556d1c2a8f37b8cf3d532cc98d973b6dc7e9e6c
        Reviewed-on: https://chromium-review.googlesource.com/439244
        Commit-Queue: Igor Sheludko <[email protected]>
        Reviewed-by: Michael Starzinger <[email protected]>
        Reviewed-by: Michael Stanton <[email protected]>
        Reviewed-by: Jaroslav Sevcik <[email protected]>
        Reviewed-by: Yang Guo <[email protected]>
        Reviewed-by: Hannes Payer <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#42999}
    
    Refs: nodejs/v8#4
    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    9c9e2d7 View commit details
    Browse the repository at this point in the history
  10. src: update inspector code to match upstream API

    PR-URL: nodejs/node#11752
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    targos committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    ed12ea3 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2017

  1. 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: nodejs/node#12026
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Trott authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    874b6b9 View commit details
    Browse the repository at this point in the history
  2. lib: remove an unnecessary coverage check

    PR-URL: nodejs/node#12023
    Fixes: nodejs/node#11445
    Refs: f65a48f
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Fishrock123 authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    59d2561 View commit details
    Browse the repository at this point in the history
  3. test: add second argument to assert.throws()

    Adds a second argument to the assert.throws() test to implicitly specify
    expected error message.
    
    PR-URL: nodejs/node#12016
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    rjbernaldo authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    1377d5a View commit details
    Browse the repository at this point in the history
  4. test: add regex for expected error message

    Provide a regex to validate the error message.
    
    PR-URL: nodejs/node#12011
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    jfmercer authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    c13dda1 View commit details
    Browse the repository at this point in the history
  5. test: test validity of prefix in mkdtempSync

    This test is checking for the validity of the path used as parameter
    for mkdtempSync.
    
    PR-URL: nodejs/node#12009
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    lucamaraschi authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    c2ead7e View commit details
    Browse the repository at this point in the history
  6. 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: nodejs/node#11698
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    claudiorodriguez authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    3745a4d View commit details
    Browse the repository at this point in the history
  7. lib: clarify the usage of 'else'

    The keyword 'else' is unnecessary after 'throw' statements.
    
    PR-URL: nodejs/node#11148
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    JacksonTian authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    dc9717c View commit details
    Browse the repository at this point in the history
  8. 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: nodejs/node#11038
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    cjihrig authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    9ac363b View commit details
    Browse the repository at this point in the history
  9. url: name anonymous functions in url

    Name anonymous functions in url.js.
    
    PR-URL: nodejs/node#9225
    Ref: nodejs/node#8913
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    pvsousalima authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    c1dee6a View commit details
    Browse the repository at this point in the history
  10. test: replace throw with common.fail

    Replace anonymous functions with arrow functions.
    Replace throw new Error with common.fail.
    
    PR-URL: nodejs/node#9700
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Italo A. Casas <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    itsmed authored and fhinkel committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    d13bd4a View commit details
    Browse the repository at this point in the history
  11. test: add common.noop, default for common.mustCall()

    Export a new common.noop no-operation function for general use.
    Allow using common.mustCall() without a fn argument to simplify
    test cases.
    
    Replace various non-op functions throughout tests with common.noop
    
    PR-URL: nodejs/node#12027
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    jasnell committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    4f2e372 View commit details
    Browse the repository at this point in the history
  12. tools: add rule prefering common.mustNotCall()

    Prefer using `common.mustNotCall()` over `common.mustCall(fn, 0)`
    
    PR-URL: nodejs/node#12027
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    jasnell committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    20b1823 View commit details
    Browse the repository at this point in the history
  13. http: should support userland Agent

    PR-URL: nodejs/node#11567
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    fengmk2 authored and jasnell committed Mar 26, 2017
    Configuration menu
    Copy the full SHA
    90403dd View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2017

  1. dgram: support Uint8Array input to send()

    Fixes: nodejs/node#11954
    Refs: nodejs/node#11961
    PR-URL: nodejs/node#11985
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    2dc1053 View commit details
    Browse the repository at this point in the history
  2. tls: support Uint8Arrays for protocol list buffers

    PR-URL: nodejs/node#11984
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    c3efe72 View commit details
    Browse the repository at this point in the history
  3. crypto: support Uint8Array prime in createDH

    PR-URL: nodejs/node#11983
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    0db49fe View commit details
    Browse the repository at this point in the history
  4. 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: nodejs/node#11947
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    trevnorris authored and addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    ee463d3 View commit details
    Browse the repository at this point in the history
  5. 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: nodejs/node#11947
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    trevnorris authored and addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    595efd8 View commit details
    Browse the repository at this point in the history
  6. doc: fix process.stdout fd number

    it should be 1 for the stdout fd number
    
    PR-URL: nodejs/node#12055
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    fmy authored and addaleax committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    88daf88 View commit details
    Browse the repository at this point in the history
  7. doc: stdout/err/in are all Duplex streams

    stdout, stderr and stdin are all Duplex streams but documentation
    states otherwise
    
    Fixes nodejs/node#9201
    
    PR-URL: nodejs/node#11194
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    seppevs authored and fhinkel committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    1005b1d View commit details
    Browse the repository at this point in the history
  8. test: add cctest for native URL class

    PR-URL: nodejs/node#12042
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    51b007a View commit details
    Browse the repository at this point in the history
  9. doc: edit the benchmark guide

    These are minor typographical and style improvements to the guide for
    writing and running benchmarks.
    
    PR-URL: nodejs/node#12041
    Reviewed-By: Nikolai Vavilov <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    45df578 View commit details
    Browse the repository at this point in the history
  10. test: fix broken tests in test-buffer-includes

    Some of the tests for `buffer.includes()` functionality introduced in
    nodejs/node#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: nodejs/node#12040
    Ref: nodejs/node#3567
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    aqrln authored and jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    52b666e View commit details
    Browse the repository at this point in the history
  11. 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: nodejs/node#12039
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Ahmad Nassri authored and jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    d437841 View commit details
    Browse the repository at this point in the history
  12. doc: fix https.timeout docs

    `server.timeout` is a property, not a method
    
    PR-URL: nodejs/node#12039
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Ahmad Nassri authored and jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    d367a0a View commit details
    Browse the repository at this point in the history
  13. 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: nodejs/node#12035
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    31da375 View commit details
    Browse the repository at this point in the history
  14. test: mark child-process-exec-kill-throws flaky

    PR-URL: nodejs/node#12054
    Ref: nodejs/node#12053
    Ref: nodejs/node#11038
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    gibfahn committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    66e7dc5 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2017

  1. benchmark: check end() argument to be > 0

    PR-URL: nodejs/node#12030
    Ref: nodejs/node#11972
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    vsemozhetbyt committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    642baf4 View commit details
    Browse the repository at this point in the history
  2. doc: clarify out-of-bounds behavior of buf[index]

    PR-URL: nodejs/node#11286
    Fixes: nodejs/node#11244
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ron Korving <[email protected]>
    seishun committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    01ffe30 View commit details
    Browse the repository at this point in the history
  3. test: fix misleading comment

    The comment is outdated, function declarations have
    nothing to do with defineProperties.
    
    PR-URL: nodejs/node#12048
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    fhinkel committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    fd18243 View commit details
    Browse the repository at this point in the history
  4. 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: nodejs/node#9469
    Fixes: nodejs/node#12033
    PR-URL: nodejs/node#12089
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Tom Atkinson authored and shigeki committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    a6f9494 View commit details
    Browse the repository at this point in the history
  5. buffer: remove error for malformatted hex string

    Remove error message when a hex string of an incorrect length is sent
    to .write() or .fill().
    
    PR-URL: nodejs/node#12012
    Fixes: nodejs/node#3770
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Trott committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    682573c View commit details
    Browse the repository at this point in the history
  6. lib: add comment to script eval _tickCallback

    Add a comment to match lib/module.js, missed in #11958.
    
    PR-URL: nodejs/node#12050
    Ref: nodejs/node#11958
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    gibfahn authored and jasnell committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    cd4ddfd View commit details
    Browse the repository at this point in the history
  7. util: use [Array] for deeply nested arrays

    Prefer `[Array]` over `[Object]` because the latter is confusing.
    
    PR-URL: nodejs/node#12046
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    addaleax authored and jasnell committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    4a5a944 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2017

  1. 2017-03-28, Version 7.8.0 (Current)

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

    PR-URL: nodejs/node#11048
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    addaleax committed Mar 29, 2017
    Configuration menu
    Copy the full SHA
    6d93508 View commit details
    Browse the repository at this point in the history
  3. v8: expose new V8 serialization API

    Expose the new serialization API that was added in V8 5.5 to userland.
    The JS API is virtually a direct copy of what V8 provides on the
    C++ level.
    
    This is useful Node as a possible replacement for some internals
    that currently use JSON, like IPC, but is likely to be useful to
    general userland code as well.
    
    PR-URL: nodejs/node#11048
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    addaleax committed Mar 29, 2017
    Configuration menu
    Copy the full SHA
    1fde98b View commit details
    Browse the repository at this point in the history
  4. util: add %i and %f formatting specifiers

    This change brings formatting specifiers available in `util.format` and
    consequently, `console.*` closer to what is supported in all major
    browsers.
    
    - `%i` is introduced to format integer values.
    - `%f` is introduced to format floating point values.
    
    Fixes: nodejs/node#10292
    PR-URL: nodejs/node#10308
    Reviewed-By: James M Snell <[email protected]>
    silverwind committed Mar 29, 2017
    Configuration menu
    Copy the full SHA
    a46c43d View commit details
    Browse the repository at this point in the history
  5. deps: backport 8dde6ac from upstream V8

    Commit 9c9e2d7 changed the name of TypeFeedbackVector to
    FeedbackVector but that commit did not update gdbinit. This applies the
    changed to gdbinit from upstream V8.
    
    Original commit message:
    
    [gdbinit] Rename TypeFeedback* to Feedback*.
    
        BUG=
    
        Change-Id: I1e32fdcf9edda57f5de329c8b694620a5da4558b
        Reviewed-on: https://chromium-review.googlesource.com/442444
        Reviewed-by: Michael Stanton <[email protected]>
        Commit-Queue: Igor Sheludko <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#43185}
    
    PR-URL: nodejs/node#12060
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    danbev committed Mar 29, 2017
    Configuration menu
    Copy the full SHA
    678480e View commit details
    Browse the repository at this point in the history
  6. tools: add unescaped regexp dot rule to linter

    PR-URL: nodejs/node#11834
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    mscdex authored and fhinkel committed Mar 29, 2017
    Configuration menu
    Copy the full SHA
    61ebfa8 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2017

  1. url: add ToObject method to native URL class

    Provides a factory method to convert a native URL class
    into a JS URL object.
    
    ```c++
    Environment* env = ...
    
    URL url("http://example.org/a/b/c?query#fragment");
    
    MaybeLocal<Value> val = url.ToObject(env);
    ```
    
    PR-URL: nodejs/node#12056
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell committed Mar 30, 2017
    Configuration menu
    Copy the full SHA
    7139b93 View commit details
    Browse the repository at this point in the history
  2. src: WHATWG URL C++ parser cleanup

    - Clarify port state
    - Remove scheme flag
    - Clarify URL_FLAG_TERMINATED
    
    PR-URL: nodejs/node#11917
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    TimothyGu committed Mar 30, 2017
    Configuration menu
    Copy the full SHA
    4ddd23f View commit details
    Browse the repository at this point in the history
  3. inspector: use inspector API for "break on start"

    This change removes a need for using deprecated debug context for
    breaking at the start of the main module.
    
    PR-URL: nodejs/node#12076
    Reviewed-By: Ben Noordhuis <[email protected]>
    Eugene Ostroukhov committed Mar 30, 2017
    Configuration menu
    Copy the full SHA
    7954d2a View commit details
    Browse the repository at this point in the history
  4. tools: add missing #include "unicode/putil.h"

    * we use u_setDataDirectory() in "unicode/putil.h"
    * at present, this header is indirectly included,
      but this will change in ICU 59
    * no impact on past ICUs.
    * this is an exact analog to nodejs/node#11753
    
    PR-URL: nodejs/node#12078
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    srl295 committed Mar 30, 2017
    Configuration menu
    Copy the full SHA
    b084907 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2017

  1. test: fix truncation of argv

    Currently argv_[1] and argv_[2] are getting truncated by one character
    because of an incorrect addition of one to account for the null
    character. I only noticed this when working on #12087, but that fix
    will probably not get included in favor of a JavaScript test so I'm
    adding this separate commit for it.
    
    Refs: nodejs/node#12087
    PR-URL: nodejs/node#12110
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    danbev committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    92de91d View commit details
    Browse the repository at this point in the history
  2. test: fix flaky child-process-exec-kill-throws

    This is a fix for test-child-process-exec-kill-throws which is currently
    flaky on Windows.
    
    A bug in the test was causing the child process to fail for reasons
    other than those intended by the test. Instead of failing for exceeding
    the `maxBuffer` setting, the test was failing because it was trying to
    load `internal/child_process` without being passed the
    `expose-internals` flag. Move that module to where only the parent
    process (which gets the flag) loads it.
    
    Additionally, improve an assertion message to help debug problems like
    this.
    
    PR-URL: nodejs/node#12111
    Fixes: nodejs/node#12053
    Reviewed-By: Richard Lau <[email protected]>
    Trott committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    a10e657 View commit details
    Browse the repository at this point in the history
  3. tools: update dotfile whitelist in .gitignore

    .eslintrc was renamed in #7699 to .eslintrc.yaml.
    
    PR-URL: nodejs/node#12116
    Refs: nodejs/node#7699
    Reviewed-By: Claudio Rodriguez <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    targos committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    4d255b0 View commit details
    Browse the repository at this point in the history
  4. src: add --use-bundled-ca --use-openssl-ca check

    The --use-bundled-ca and --use-openssl-ca command line arguments are
    mutually exclusive but can both be used on the same command line.
    
    This commit adds a check if both options are used.
    
    Fixes: nodejs/node#12083
    PR-URL: nodejs/node#12087
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    danbev committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    8a7db9d View commit details
    Browse the repository at this point in the history
  5. src: add .FromJust(), fix -Wunused-result warnings

    Missed while reviewing 1fde98b ("v8: expose new V8 serialization API.")
    
    PR-URL: nodejs/node#12118
    Refs: nodejs/node#11048
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    bnoordhuis authored and addaleax committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    7c0079f View commit details
    Browse the repository at this point in the history
  6. src: fix base64 decoding

    Make sure trailing garbage is not treated as a valid base64 character.
    
    Fixes: nodejs/node#11987
    PR-URL: nodejs/node#11995
    Reviewed-By: Anna Henningsen <[email protected]>
    seishun committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    7e0c3ab View commit details
    Browse the repository at this point in the history
  7. tty: remove NODE_TTY_UNSAFE_ASYNC

    Nothing but trouble can ever come from it.
    
    PR-URL: nodejs/node#12057
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Fishrock123 authored and addaleax committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    1b63fa1 View commit details
    Browse the repository at this point in the history
  8. vm: use SetterCallback to set func declarations

    Currently, when in strict mode, function
    declarations are copied on the sandbox by
    CopyProperties(), which is not necessary
    and will break when CP is removed.
    
    This change maintains current behavior,
    letting GlobalPropertySetterCallback
    copy functions on the sandbox instead
    of using CP to do the task.
    
    PR-URL: nodejs/node#12051
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AnnaMag authored and addaleax committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    241de51 View commit details
    Browse the repository at this point in the history
  9. build: always use V8_ENABLE_CHECKS in debug mode

    Define `V8_ENABLE_CHECKS` in `common.gypi` for the debug mode.
    Without this, these checks would only be present in the object files
    generated from the V8 build, and so for inline functions in v8.h
    multiple different definitions could be generated, where one definition
    includes the check and the other does not.
    
    Refs: nodejs/node#11975 (comment)
    PR-URL: nodejs/node#12029
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    addaleax committed Mar 31, 2017
    Configuration menu
    Copy the full SHA
    c68da89 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2017

  1. crypto: add sign/verify support for RSASSA-PSS

    Adds support for the PSS padding scheme. Until now, the sign/verify
    functions used the old EVP_Sign*/EVP_Verify* OpenSSL API, making it
    impossible to change the padding scheme. Fixed by first computing the
    message digest and then signing/verifying with a custom EVP_PKEY_CTX,
    allowing us to specify options such as the padding scheme and the PSS
    salt length.
    
    Fixes: nodejs/node#1127
    PR-URL: nodejs/node#11705
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    tniessen authored and addaleax committed Apr 1, 2017
    Configuration menu
    Copy the full SHA
    0e710aa View commit details
    Browse the repository at this point in the history
  2. net: rename internal functions for readability

    * Rename listen to listenInCluster
    * Rename _listen2 to _setupListenHandle
    * Remove _listen since it's a one-liner only used in one place
    * Correct comments in server.listen
    
    PR-URL: nodejs/node#11796
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung committed Apr 1, 2017
    Configuration menu
    Copy the full SHA
    0ea4570 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2017

  1. doc: add logo to README

    Adds a centered logo to the README to make it a little more festive. As
    centering is not possible in pure Markdown, a bit of HTML is used.
    
    PR-URL: nodejs/node#12148
    Ref: nodejs/node#6920
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Italo A. Casas <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    silverwind committed Apr 2, 2017
    Configuration menu
    Copy the full SHA
    2d039ff View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2017

  1. zlib: support Uint8Array in convenience methods

    Also support Uint8Array as a `dictionary` option.
    
    PR-URL: nodejs/node#12001
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    TimothyGu authored and addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    91383e4 View commit details
    Browse the repository at this point in the history
  2. util: show External values explicitly in inspect

    Display `v8::External` values as `[External]` rather than `{}`
    which makes them look like objects.
    
    PR-URL: nodejs/node#12151
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    3cc3e09 View commit details
    Browse the repository at this point in the history
  3. assert: add support for Map and Set in deepEqual

    assert.deepEqual and assert.deepStrictEqual currently return true for
    any pair of Maps and Sets regardless of content. This patch adds
    support in deepEqual and deepStrictEqual to verify the contents of Maps
    and Sets.
    
    Deeo equivalence checking is currently an
    O(n^2) operation, and worse, it gets slower exponentially if maps
    and sets were nested.
    
    Note that this change breaks compatibility with previous versions of
    deepEqual and deepStrictEqual if consumers were depending on all maps
    and sets to be seen as equivalent. The old behaviour was never
    documented, but nevertheless there are certainly some tests out there
    which depend on it.
    
    Support has stalled because the assert API was frozen, but was recently
    unfrozen in CTC#63.
    
    ---
    
    Later squashed in:
    
    This change updates the checks for deep equality checking on Map and Set
    to check all set values / all map keys to see if any of them match the
    expected result.
    
    This change is much slower, but based on the conversation in the pull
    request its probably the right approach.
    
    Fixes: nodejs/node#2309
    Refs: tape-testing/tape#342
    Refs: nodejs/node#2315
    Refs: nodejs/CTC#63
    PR-URL: nodejs/node#12142
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    josephg authored and addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    6481c93 View commit details
    Browse the repository at this point in the history
  4. n-api: add support for abi stable module API

    Add support for abi stable module API (N-API) as "Experimental feature".
    The goal of this API is to provide a stable Node API for native
    module developers. N-API aims to provide ABI compatibility guarantees
    across different Node versions and also across different
    Node VMs - allowing N-API enabled native modules to just work
    across different versions and flavors of Node.js without recompilation.
    
    A more detailed introduction is provided in:
    https://github.com/nodejs/node-eps/blob/master/005-ABI-Stable-Module-API.md
    and https://github.com/nodejs/abi-stable-node/blob/doc/VM%20Summit.pdf.
    
    The feature, during its experimental state, will be guarded by a runtime
    flag "--napi-modules". Only when this flag is added to the command line
    will N-API modules along with regular non N-API modules be supported.
    
    The API is defined by the methods in "src/node_api.h" and
    "src/node_api_types.h". This is the best
    starting point to review the API surface. More documentation will follow.
    
    In addition to the implementation of the API using V8, which is included
    in this PR, the API has also been validated against chakracore and that
    port is available in
    https://github.com/nodejs/abi-stable-node/tree/api-prototype-chakracore-8.x.
    
    The current plan is to provide N-API support in versions 8.X and 6.X
    directly. For older versions, such as 4.X or pre N-API versions of 6.X,
    we plan to create an external npm module to provide a migration path
    that will allow modules targeting older Node.js versions to use the API,
    albeit without getting the advantage of not having to recompile.
    
    In addition, we also plan an external npm package with C++ sugar to
    simplify the use of the API. The sugar will be in-line only and will
    only use the exported N-API methods but is not part of the N-API
    itself. The current version is in:
    https://github.com/nodejs/node-api.
    
    This PR is a result of work in the abi-stable-node repo:
    https://github.com/nodejs/abi-stable-node/tree/doc,
    with this PR being the cumulative work on the api-prototype-8.x
    branch with the following contributors in alphabetical order:
    
    Author: Arunesh Chandra <[email protected]>
    Author: Gabriel Schulhof <[email protected]>
    Author: Hitesh Kanwathirtha <[email protected]>
    Author: Ian Halliday <[email protected]>
    Author: Jason Ginchereau <[email protected]>
    Author: Michael Dawson <[email protected]>
    Author: Sampson Gao <[email protected]>
    Author: Taylor Woll <[email protected]>
    PR-URL: nodejs/node#11975
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jasongin authored and addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    56e881d View commit details
    Browse the repository at this point in the history
  5. v8: fix offsets for TypedArray deserialization

    Fix the offset calculation for deserializing TypedArrays that are
    not aligned in their original buffer.
    
    Since `byteOffset` refers to the offset into the source `Buffer`
    instance, not its underlying `ArrayBuffer`, that is what should
    be passed to `buffer.copy`.
    
    PR-URL: nodejs/node#12143
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    33a19b4 View commit details
    Browse the repository at this point in the history
  6. url: change path parsing for non-special URLs

    This changes to the way path parsing for non-special URLs.
    It allows paths to be empty for non-special URLs and also
    takes that into account when serializing.
    
    Fixes: nodejs/node#11962
    Refs: whatwg/url#213
    PR-URL: nodejs/node#12058
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    watilde committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    f8f46f9 View commit details
    Browse the repository at this point in the history
  7. test: synchronize WPT url test data

    Refs: web-platform-tests/wpt#4586
    Refs: nodejs/node#11887
    PR-URL: nodejs/node#12058
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    watilde committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    50bfef6 View commit details
    Browse the repository at this point in the history
  8. test: synchronize WPT url setter test data

    Updates:
    + Bring tests url-setter-tests from WPT, and put it as JavaScript
    + Comment out unpassed tests
    
    Refs: web-platform-tests/wpt#5112
    Refs: nodejs/node#11887
    PR-URL: nodejs/node#12058
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    watilde committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    843b7e6 View commit details
    Browse the repository at this point in the history
  9. test: fix V8 test on big-endian machines

    Ref: nodejs/node#12143 (comment)
    PR-URL: nodejs/node#12186
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    9b05393 View commit details
    Browse the repository at this point in the history
  10. errors: add space between error name and code

    `Error[CODE]` becomes `Error [CODE]`
    
    PR-URL: nodejs/node#12099
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    jasnell committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    7b4a72d View commit details
    Browse the repository at this point in the history
  11. buffer: zero fill Buffer(num) by default

    PR-URL: nodejs/node#12141
    Ref: nodejs/CTC#89
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Prince John Wesley <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    jasnell committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    7eb1b46 View commit details
    Browse the repository at this point in the history
  12. test: extended test to makeCallback cb type check

    makeCallback and makeStatsCallback are both tested intedependently.
    
    PR-URL: nodejs/node#12140
    Fixes: nodejs/node#12136
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    lucamaraschi authored and mhdawson committed Apr 3, 2017
    Configuration menu
    Copy the full SHA
    53828e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2017

  1. lib: ensure --check flag works for piped-in code

    Previously, the --check CLI flag had no effect when run on code piped
    from stdin. This commit updates the bootstrap logic to handle the
    --check flag the same way regardless of whether the code is piped from
    stdin.
    
    PR-URL: nodejs/node#11689
    Fixes: nodejs/node#11680
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    not-an-aardvark committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    3209a8e View commit details
    Browse the repository at this point in the history
  2. src: throw when -c and -e are used simultaneously

    The -c flag ("check script syntax") and -e flag ("evaluate given code")
    have contradictory meanings. Make them mutually exclusive by throwing
    when both of them are provided.
    
    Fixes: nodejs/node#11680
    PR-URL: nodejs/node#11689
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    not-an-aardvark committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    a5f91ab View commit details
    Browse the repository at this point in the history
  3. child_process: improve killSignal validations

    As it is, the `killSignal` is just retrieved from an object and used.
    If the signal passed is actually one of the inherited properties of
    that object, Node.js will die. For example,
    
        ➜  node -e "child_process.spawnSync('ls', {killSignal: 'toString'})"
        Assertion failed: (0), function uv_close, file ....core.c, line 166.
        [1]    58938 abort      node -e "child_process.spawnSync(...)"
    
    1. This patch makes sure that the signal is actually a own property of
       the constants object.
    
    2. Extends the killSignal validation to all the other functions.
    
    PR-URL: nodejs/node#10423
    
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    thefourtheye committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    d75fdd9 View commit details
    Browse the repository at this point in the history
  4. doc: minor improvements in BUILDING.md

    1. necessarily reliably => necessarily reliable
    2. projects root directory => project's root directory
    3. remove `console` highlighting, as `test` alone is highlighted
    4. fix broken link for Android NDK
    5. highlight the directory location `/usr/local/ssl/fips-2.0`
    6. update expected output to an example for `process.versions.openssl` as the
       version displayed is not mentioned in the document
    
    PR-URL: nodejs/node#11963
    
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    thefourtheye committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    ba0e3ac View commit details
    Browse the repository at this point in the history
  5. test: reduce buffer size in buffer-creation test

    This test is allocating much more memory than necessary to actually
    reproduce the original problem. Lowering the amount of memory allocated
    increases performance at least in some cases and makes this test less
    likely to time out on SmartOS.
    
    PR-URL: nodejs/node#11177
    Ref: nodejs/node#10166
    
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    thefourtheye committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    d51f4f3 View commit details
    Browse the repository at this point in the history
  6. doc, inspector: note that the host is optional

    Document that `node --inspect=${port}` is also a viable option.
    
    PR-URL: nodejs/node#12149
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    gibfahn committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    2d2970e View commit details
    Browse the repository at this point in the history
  7. build: use $(RM) in Makefile for consistency

    Also allows someone to reassign `$RM`, e.g. with `RM=rm -v` instead of
    `rm -f` (the default) should they want to. We're currently using a
    mixture of `$(RM)` and `rm -f`.
    
    There are a couple of places which aren't doing -f, have them do it for
    consistency.
    
    PR-URL: nodejs/node#12157
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Johan Bergström <[email protected]>
    gibfahn committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    57b850e View commit details
    Browse the repository at this point in the history
  8. build: avoid passing kill empty input in Makefile

    Using `xargs -r` on some platforms and `xargs` on others doesn't work,
    we can't guarantee whether xargs is GNU or not. Avoid the issue by only
    running kill if there are processes to clean.
    
    PR-URL: nodejs/node#12158
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    gibfahn committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    d19809a View commit details
    Browse the repository at this point in the history
  9. 2017-04-04, Version 6.10.2 'Boron' (LTS)

    This is a special LTS to fix a number of regressions that were found
    on the 6.10.x release line.
    
    This includes:
    
     * a fix for memory leak in the crypto module that
       was introduced in 6.10.1
     * a fix for a regression introduced to the windows repl in 6.10.0
     * a backported fix for V8 to stop a segfault that could occur
       when using spread syntax
    
    It also includes an upgrade to zlib 1.2.11 to fix a numberof low
    severity CVEs that were present in zlib 1.2.8.
    
    http://seclists.org/oss-sec/2016/q4/602
    
    Notable changes
    
    * crypto:
      - fix memory leak if certificate is revoked (Tom Atkinson)
        nodejs/node#12089
    * deps:
      - upgrade zlib to 1.2.11 (Sam Roberts)
        nodejs/node#10980
      - backport V8 fixes for spread syntax regression causing segfaults
        (Michaël Zasso) nodejs/node#12037
    * repl:
      - Revert commit that broke REPL display on Windows (Myles Borins)
        nodejs/node#12123
    MylesBorins committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    28f8b17 View commit details
    Browse the repository at this point in the history
  10. 2017-04-04, Version 4.8.2 'Argon' (Maintenance)

    This is a maintenance release to fix a memory leak that was
    introduced in 4.8.1.
    
    It also includes an upgrade to zlib 1.2.11 to fix a number of low
    severity CVEs that were present in zlib 1.2.8.
    
    http://seclists.org/oss-sec/2016/q4/602
    
    Notable changes:
    
    * crypto:
      - fix memory leak if certificate is revoked (Tom Atkinson)
        nodejs/node#12089
    * deps:
      - upgrade zlib to 1.2.11 (Sam Roberts)
        nodejs/node#10980
    MylesBorins committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    f7a3118 View commit details
    Browse the repository at this point in the history
  11. test: fix flaky test-child-process-exec-timeout

    At least starting with Darwin Kernel Version 16.4.0, sending a SIGTERM
    to a process that is still starting up kills it with SIGKILL instead of
    SIGTERM.
    
    PR-URL: nodejs/node#12159
    Refs: libuv/libuv#1226
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    santigimeno committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    45c4ad5 View commit details
    Browse the repository at this point in the history
  12. doc: fix typo in CHANGELOG_V6.md

    PR-URL: nodejs/node#12206
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    l2dy authored and vsemozhetbyt committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    c79b081 View commit details
    Browse the repository at this point in the history
  13. test: fix test-cli-syntax assertions on windows

    The test introduced in a5f91ab
    accidentally introduced failures on some windows builds. Update the
    assertion that was causing the failures.
    
    PR-URL: nodejs/node#12212
    Ref: nodejs/node#11689
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    not-an-aardvark committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    9348f31 View commit details
    Browse the repository at this point in the history
  14. benchmark: replace [].join() with ''.repeat()

    Also add a benchmark to compare both ways to create strings.
    
    PR-URL: nodejs/node#12170
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    74dc3bf View commit details
    Browse the repository at this point in the history
  15. doc: fix and update examples in http.md

    * replace `var` by `const` in http.md
    * replace `let` by `const` in http.md
    * fix spaces in code examples of http.md
    * replace console.log() by .error() in http.md
    * make arrow function clearer in http.md
    * use object destructuring in http.md
    * update output examples in http.md
    
    PR-URL: nodejs/node#12169
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    vsemozhetbyt authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    b2ac3b6 View commit details
    Browse the repository at this point in the history
  16. test: increase querystring coverage

    PR-URL: nodejs/node#12163
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    DavidCai1111 authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    dc7d9eb View commit details
    Browse the repository at this point in the history
  17. buffer,util: refactor for performance

    internal/util.js definied toInteger() and toLength() but they were only
    used by buffer.js. Inlining these small functions results in a small but
    statistically-significant performance gain.
    
    PR-URL: nodejs/node#12153
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    1e6186e View commit details
    Browse the repository at this point in the history
  18. buffer: optimize decoding wrapped base64 data

    The fast base64 decoder used to switch to the slow one permanently when
    it saw a whitespace or other garbage character.  Since the most common
    situation such characters may be encountered in is line-wrapped base64
    data, a more profitable strategy is to decode a single 24-bit group with
    the slow decoder and then continue running the fast algorithm.
    
    PR-URL: nodejs/node#12146
    Ref: nodejs/node#12114
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    aqrln authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    e77a83f View commit details
    Browse the repository at this point in the history
  19. test: performance, remove Popen(shell=True) on Win

    not needed according to official python docs -
    https://docs.python.org/2/library/subprocess.html#index-2
    
    PR-URL: nodejs/node#12138
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Nikolai Vavilov <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    f6ddbaf View commit details
    Browse the repository at this point in the history
  20. url: error when domainTo*() is called w/o argument

    PR-URL: nodejs/node#12134
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    c4469c4 View commit details
    Browse the repository at this point in the history
  21. doc: add notes to http.get options

    Extra notes that options doesn't include the prototype when copied
    
    Fixes: nodejs/node#12092
    PR-URL: nodejs/node#12124
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    raphaelokon authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    e1161a3 View commit details
    Browse the repository at this point in the history
  22. linkedlist: remove public module

    PR-URL: nodejs/node#12113
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    mscdex authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    84a2339 View commit details
    Browse the repository at this point in the history
  23. doc: change Mac OS X to macOS

    This update changes references to "Mac OS X", "OS X", and "OSX" in
    markdown files to "macOS".
    
    PR-URL: nodejs/node#12106
    Fixes: nodejs/node#12086
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    JR McEntee authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    7a5d07c View commit details
    Browse the repository at this point in the history
  24. doc: correct markdown file line lengths

    This commit updates two paragraphs that exceeded the 80 line standard
    after updating to macOS.
    
    PR-URL: nodejs/node#12106
    Fixes: nodejs/node#12086
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    JR McEntee authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    6ebc806 View commit details
    Browse the repository at this point in the history
  25. doc: update Mac OS X references in releases.md

    This commit updates 3 additional references to Mac OS X in
    releases.md to macOS.
    
    PR-URL: nodejs/node#12106
    Fixes: nodejs/node#12086
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    JR McEntee authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    503342d View commit details
    Browse the repository at this point in the history
  26. test: add variable arguments support for Argv

    At the moment Argv only supports three arguments which fulfilled my
    requirements when working on #9163.
    
    This commit adds support for a variable number of arguments. There is
    also a no-args constructor that is the equivalent to running "node -p
    process.version" which is hopefully alright as a default.
    
    PR-URL: nodejs/node#12166
    Ref: nodejs/node#9163
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    5ccaba4 View commit details
    Browse the repository at this point in the history
  27. tools: update ESLint to 3.19.0

    PR-URL: nodejs/node#12162
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    3166652 View commit details
    Browse the repository at this point in the history
  28. tools: replace custom ESLint timers rule

    ESLint 3.19.0 allows the specification of selectors that represent
    disallowed syntax. Replace our custom rule for timer arguments with a
    pair of `no-restricted-syntax` option objects.
    
    PR-URL: nodejs/node#12162
    Reviewed-By: Teddy Katz <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    f637703 View commit details
    Browse the repository at this point in the history
  29. events: do not keep arrays with a single listener

    Use the remaining listener directly if the array of listeners has only
    one element after running `EventEmitter.prototype.removeListener()`.
    
    Advantages:
    
    - Better memory usage and better performance if no new listeners are
      added for the same event.
    
    Disadvantages:
    
    - A new array must be created if new listeners are added for the same
      event.
    
    PR-URL: nodejs/node#12043
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Ron Korving <[email protected]>
    lpinca authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    8d386ed View commit details
    Browse the repository at this point in the history
  30. doc: fix fs.read arg type

    About fs.read's 2nd argument, string is invalid.
    
    PR-URL: nodejs/node#12034
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    darai0512 authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    0844262 View commit details
    Browse the repository at this point in the history
  31. doc: fix the timing of setImmediate's execution

    About setImmediate, the execution timing is after timers currently.
    
    PR-URL: nodejs/node#12034
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    darai0512 authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    e9f2ec4 View commit details
    Browse the repository at this point in the history
  32. benchmark: avoid TurboFan deopt in arrays bench

    Something unidentified at the moment is causing the arrays benchmarks to
    deopt when run with the TurboFan compiler. Refactor the test to use an
    inner function that can be correctly optimized by TurboFan and
    Crankshaft.
    
    PR-URL: nodejs/node#11894
    Ref: nodejs/node#11851 (comment)
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    targos authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    eefdf45 View commit details
    Browse the repository at this point in the history
  33. test: add case for url.parse throwing a URIError

    The auth property of a URL is decoded via decodeURIComponent,
    which can throw a URIError. The test URL here will trigger this.
    
    Adds documentation on the possible errors url.parse can throw.
    
    PR-URL: nodejs/node#12135
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lovell authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    2ff107d View commit details
    Browse the repository at this point in the history
  34. test: more robust check for location of node.exe

    look for the actual produced `exe` not just the directory
    
    PR-URL: nodejs/node#12120
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Nikolai Vavilov <[email protected]>
    refack authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    394b6ac View commit details
    Browse the repository at this point in the history
  35. linkedlist: remove unused methods

    PR-URL: nodejs/node#11726
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Rod Vagg <[email protected]>
    mscdex authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    b40dab5 View commit details
    Browse the repository at this point in the history
  36. doc: add table of contents to README.md

    PR-URL: nodejs/node#11635
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Minimalistic authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    f62d9fc View commit details
    Browse the repository at this point in the history
  37. test: add Unicode characters regression test

    This test ensures that UTF-8 characters can be used in core JavaScript
    modules built into Node's binary.
    
    PR-URL: nodejs/node#11423
    Ref: nodejs/node#11129
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    aqrln authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    f4e8a6f View commit details
    Browse the repository at this point in the history
  38. test: refactor mkdtemp test and added async

    This test refactored the original test for mkdtempSync prefix validation
    and added the test also for the async function mkdtemp.
    
    PR-URL: nodejs/node#12080
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    lucamaraschi authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    085c1f8 View commit details
    Browse the repository at this point in the history
  39. test: increase coverage of internal/socket_list

    PR-URL: nodejs/node#12066
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    DavidCai1111 authored and jasnell committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    610ac7d View commit details
    Browse the repository at this point in the history
  40. doc: fix string interpolation in Stream 'finish'

    PR-URL: nodejs/node#12221
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    vhmth authored and vsemozhetbyt committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    82ef00c View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2017

  1. url: avoid instanceof for WHATWG URL

    PR-URL: nodejs/node#11690
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    mscdex authored and TimothyGu committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    b76a350 View commit details
    Browse the repository at this point in the history
  2. doc: modernize and fix code examples in https.md

    * Replace `var` by `const`.
    * Comment out ellipses.
    * Update code example (provide relevant file path, add missing option).
    
    PR-URL: nodejs/node#12171
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    5059363 View commit details
    Browse the repository at this point in the history
  3. build: make configure print statements consistent

    I noticed that few of the print statements in configure have a leading
    space with is not consistent with the rest of the file. Not sure if
    this intentional or not so creating this commit just to bring it up
    just in case.
    
    PR-URL: nodejs/node#12176
    
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: mhdawson - Michael Dawson <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    danbev committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    b3db917 View commit details
    Browse the repository at this point in the history
  4. build: add checks for openssl configure options

    Currently it is possible to configure using --without-ssl and
    --shared-openssl/--openssl-no-asm/openssl-fips without an error
    occuring.
    
    The commit add check for these combinations:
    
    $ ./configure --without-ssl --shared-openssl
    Error: --without-ssl is incompatible with --shared-openssl
    
    $ ./configure --without-ssl --openssl-no-asm
    Error: --without-ssl is incompatible with --openssl-no-asm
    
    $ ./configure --without-ssl --openssl-fips=dummy
    Error: --without-ssl is incompatible with --openssl-fips
    
    PR-URL: nodejs/node#12175
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    danbev committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    1f74b9f View commit details
    Browse the repository at this point in the history
  5. n-api: break dep between v8 and napi attributes

    The v8 n-api implementation had been depending on a one-to-one
    relationship between v8 and n-api v8 property attributes.
    Remove this dependency and fix coverity scan issue
    165845.
    
    PR-URL: nodejs/node#12191
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    mhdawson committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    4a21e39 View commit details
    Browse the repository at this point in the history
  6. napi: supress invalid coverity leak message

    Coverity was complaining that finalizer was being
    leaked in this method, however it should be
    freed when the buffer is finalized so I believe
    the message is invalid.
    
    Add the required comments to suppress the warning.
    
    PR-URL: nodejs/node#12192
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    mhdawson committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    491d59d View commit details
    Browse the repository at this point in the history
  7. n-api: create napi_env as a real structure

    1. We define struct napi_env__ to include the isolate, the last
    exception, and the info about the last error.
    
    2. We instantiate one struct napi_env__ during module registration and
    we pass it into the FunctionCallbackInfo for all subsequent entries into
    N-API when we create functions/accessors/finalizers.
    
    Once module unloading will be supported we shall have to delete the
    napi_env we create during module init.
    
    There is a clear separation between public and private API wrt. env:
    
    1. Public APIs assert that env is not nullptr as their first action.
    
    2. Private APIs need not validate env. They assume it's not nullptr.
    
    PR-URL: nodejs/node#12195
    Fixes: nodejs#198
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and mhdawson committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    0a5bf4a View commit details
    Browse the repository at this point in the history
  8. n-api: cache Symbol.hasInstance

    This improves the performance of napi_instanceof() by retrieving
    Symbol.hasInstance from the global object once and then storing a
    persistent reference to it in the env.
    
    Re nodejs#209
    Re nodejs#214
    Gabriel Schulhof committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    dbef608 View commit details
    Browse the repository at this point in the history