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

v8.2.0 proposal #13744

Merged
merged 248 commits into from
Jul 19, 2017
Merged

v8.2.0 proposal #13744

merged 248 commits into from
Jul 19, 2017

Commits on Jul 11, 2017

  1. async_hooks: use resource objects for Promises

    Use `PromiseWrap` resource objects whose lifetimes are tied to
    the `Promise` instances themselves to track promises, and have
    a `.promise` getter that points to the `Promise` and a `.parent`
    property that points to the parent Promise’s resource object,
    if there is any.
    
    The properties are implemented as getters for internal fields
    rather than normal properties in the hope that it helps keep
    performance for the common case that async_hooks users will
    often not inspect them.
    
    PR-URL: #13452
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    a442603 View commit details
    Browse the repository at this point in the history
  2. Revert "async_hooks: only set up hooks if used"

    This reverts commit 410b141.
    
    PR-URL: #13509
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    trevnorris authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    8b57b09 View commit details
    Browse the repository at this point in the history
  3. async_wrap: expose enable/disablePromiseHook API

    Allow node::PromiseHook (src/async-wrap.cc) to be enabled/disabled from
    the JavaScript API.
    
    PR-URL: #13509
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    96279e8 View commit details
    Browse the repository at this point in the history
  4. async_wrap: use kTotals to enable PromiseHook

    Keep a total of enabled hook callbacks in kTotals. This value is used to
    track whether node::PromiseHook (src/async-wrap.cc) should be enabled or
    disabled.
    
    Don't enable node::PromiseHook, using enablePromiseHook(), until a hook
    has been added. Then, using disablePromiseHook(), disable
    node::PromiseHook when all hooks have been disabled.
    
    Need to use a native test in order to check the internal field of the
    Promise and check for a PromiseWrap.
    
    PR-URL: #13509
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    trevnorris authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    2122e2f View commit details
    Browse the repository at this point in the history
  5. http: always cork outgoing writes

    PR-URL: #13522
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    mscdex authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    b22a04b View commit details
    Browse the repository at this point in the history
  6. stream: improve Transform performance

    PR-URL: #13322
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    mscdex authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    6512fd7 View commit details
    Browse the repository at this point in the history
  7. async_hooks: rename currentId and triggerId

    currentId is renamed to executionAsyncId
    triggerId is renamed to triggerAsyncId
    AsyncResource.triggerId is renamed to AsyncResource.triggerAsyncId
    AsyncHooksGetCurrentId is renamed to AsyncHooksGetExecutionAsyncId
    AsyncHooksGetTriggerId is renamed to AsyncHooksGetTriggerAsyncId
    
    PR-URL: #13490
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    AndreasMadsen authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    3bb4ec8 View commit details
    Browse the repository at this point in the history
  8. https: make opts optional & immutable when create

    `opts` in `createServer` will be immutable that won't change origional
    opts value. What's more, it's optional which can make `requestListener`
    be the first argument.
    
    PR-URL: #13599
    Fixes: #13584
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yorkie Liu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    XadillaX authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    74741fa View commit details
    Browse the repository at this point in the history
  9. tls: add host and port info to ECONNRESET errors

    Add more information to the "ECONNRESET" errors generated when the
    socket hang ups before establishing the secure connection.
    
    These kind of errors are really hard to troubleshoot without this info.
    
    PR-URL: #7476
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Yazhong Liu <[email protected]>
    jfromaniello authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    e2d3254 View commit details
    Browse the repository at this point in the history
  10. net: return this from destroy()

    PR-URL: #13530
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    69f806c View commit details
    Browse the repository at this point in the history
  11. net: return this from getConnections()

    PR-URL: #13553
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    a839aed View commit details
    Browse the repository at this point in the history
  12. doc: update minimum g++ version to 4.9.4

    The 4.8.x releases don't fully support C++11.  Update the prerequisites
    for node.js 8 so that we won't have to work around compiler bugs in the
    future.
    
    To be decided if we should also update the minimum clang version.
    I believe clang 3.4.2 properly supports C++11 but am not 100% sure.
    
    PR-URL: #13466
    Ref: #11840
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Nikolai Vavilov <[email protected]>
    bnoordhuis authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    820b011 View commit details
    Browse the repository at this point in the history
  13. inspector: perform DNS lookup for host

    PR-URL: #13478
    Fixes: #13477
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Eugene Ostroukhov authored and addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    a45792a View commit details
    Browse the repository at this point in the history
  14. async_hooks: proper id stacking for Promises

    Until now, the async_hooks PromiseHook did not register the Promise’s
    async id and trigger id on the id stack, so inside the `.then()` handler
    those ids would be invalid.
    
    To fix this, add push and pop calls to its `before` and `after` parts,
    respectively. Some care needs to be taken for the cases that the
    Promise hook is being disabled or enabled during the execution
    of a Promise handler; in the former case, actually removing the hook
    is delayed by adding another task to the microtask queue, in the latter
    case popping the id off the async id stack is skipped if the ids don’t
    match.
    
    Fixes: #13583
    PR-URL: #13585
    Reviewed-By: Trevor Norris <[email protected]>
    addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    8f37f5d View commit details
    Browse the repository at this point in the history
  15. buffer: add constants object

    Add `buffer.constants`, containing length limits for `Buffer` and
    `string` instances.
    
    This could be useful for programmers to tell whether a value can
    be turned into a string or not.
    
    Ref: #13465
    PR-URL: #13467
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    addaleax committed Jul 11, 2017
    Configuration menu
    Copy the full SHA
    7794030 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2017

  1. util: add callbackify

    Add `util.callbackify(function)` for creating callback style functions
    from functions returning a `Thenable`
    
    Original-PR-URL: #12712
    Fixes: nodejs/CTC#109
    Original-Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Original-Reviewed-By: Teddy Katz <[email protected]>
    Original-Reviewed-By: Matteo Collina <[email protected]>
    Original-Reviewed-By: Colin Ihrig <[email protected]>
    Original-Reviewed-By: Timothy Gu <[email protected]>
    Original-Reviewed-By: Anna Henningsen <[email protected]>
    
    PR-URL: #13750
    Reviewed-By: Anna Henningsen <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    8cba959 View commit details
    Browse the repository at this point in the history
  2. errors: add missing ERR_ prefix on util.callbackify error

    The `FALSY_VALUE_REJECTION` error code added by
    #12712 did not have the `ERR_` prefix,
    nor was it added to the errors.md documentation. Add the prefix in for
    consistency.
    
    Original-PR-URL: #13604
    Original-Reviewed-By: Luigi Pinca <[email protected]>
    Original-Reviewed-By: Timothy Gu <[email protected]>
    Original-Reviewed-By: Gibson Fahnestock <[email protected]>
    Original-Reviewed-By: Anna Henningsen <[email protected]>
    Original-Reviewed-By: Refael Ackermann <[email protected]>
    Original-Reviewed-By: Colin Ihrig <[email protected]>
    Original-Reviewed-By: Benjamin Gruenbaum <[email protected]>
    
    PR-URL: #13750
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    e8780ba View commit details
    Browse the repository at this point in the history
  3. test: increase util.callbackify() coverage

    This commit adds coverage for util.callbackify() type checking.
    
    PR-URL: #13705
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    bf22514 View commit details
    Browse the repository at this point in the history
  4. test: add crypto check to test-tls-wrap-econnreset

    Currently, there are a few test-tls-wrap-econnreset test that fail when
    Node is configured --without-ssl:
    Error: Node.js is not compiled with openssl crypto support
    
    This commit adds crypto checks and skips these tests if no crypto
    support unavailable.
    
    PR-URL: #13691
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    022c6d0 View commit details
    Browse the repository at this point in the history
  5. src,lib,test,doc: correct misspellings

    PR-URL: #13719
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    silverwind authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    864abc5 View commit details
    Browse the repository at this point in the history
  6. process: improve nextTick() performance

    PR-URL: #13446
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    mscdex authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    e30fc2c View commit details
    Browse the repository at this point in the history
  7. test: remove needless RegExp flags

    * /m is needless if ^ and $ are not used
    * /g is needless in split()
    * /g is needless in test() with one-time RegExp/String
    
    PR-URL: #13690
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    0e857a5 View commit details
    Browse the repository at this point in the history
  8. test: use string instead of RegExp in split()

    PR-URL: #13710
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    vsemozhetbyt authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    7e3bab7 View commit details
    Browse the repository at this point in the history
  9. doc: fix api docs style

    doc/api/async_hooks.md
      + L198: Missing code-language flag
      + L239: Missing code-language flag
      + L317: Missing code-language flag
      + L347: Missing code-language flag
    
    doc/api/fs.md
      + L2857: Unused definition
    
    PR-URL: #13700
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    watilde authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    70f3935 View commit details
    Browse the repository at this point in the history
  10. buffer: support boxed strings and toPrimitive

    Add support for `Buffer.from(new String('...'))` and
    `Buffer.from({[Symbol.toPrimitive]() { return '...'; }})`
    
    PR-URL: #13725
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    jasnell authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    683f743 View commit details
    Browse the repository at this point in the history
  11. dns: make dns.setServers support customized port

    allow `dns.setServers` parameter to contain port
    
    e.g.
    
    ```
    dns.setServers([ '103.238.225.181:666' ]);
    ```
    
    And `dns.getServers` will return IP with port if not the default port.
    
    PR-URL: #13723
    Refs: #7903
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    XadillaX authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    ebe7bb2 View commit details
    Browse the repository at this point in the history
  12. inspector, test: Fix test bug detected by Coverity

    Error value was not checked. Turns out, uv_ip6_addr was actually called
    on malformed IP (square brackets should not have been included).
    
    PR-URL: #13799
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Eugene Ostroukhov authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    b0db2b9 View commit details
    Browse the repository at this point in the history
  13. dns: add resolveAny support

    `dns.resolveAny` and `dns.resolve` with `"ANY"` has the similar behavior
    like `$ dig <domain> any` and returns an array with several types of
    records.
    
    `dns.resolveAny` parses the result packet by several rules in turn.
    
    Supported types:
    
    * A
    * AAAA
    * CNAME
    * MX
    * NAPTR
    * NS
    * PTR
    * SOA
    * SRV
    * TXT
    
    Fixes: #2848
    PR-URL: #13137
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    XadillaX authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6e30e25 View commit details
    Browse the repository at this point in the history
  14. doc: document res.connection and res.socket

    Adds documentation and samples for the `connection` and
    `socket` properties available on the `http.serverResponse`
    and `http.clientRequest` objects.
    
    PR-URL: #13617
    Fixes: #12617
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    JustinBeckwith authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    46756ac View commit details
    Browse the repository at this point in the history
  15. test: improve async-hooks/test-callback-error

    PR-URL: #13559
    Fixes: #13527
    Reviewed-By: Andreas Madsen <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    b15378c View commit details
    Browse the repository at this point in the history
  16. doc: fix nits in guides/using-internal-errors.md

    PR-URL: #13820
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    vsemozhetbyt authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f1b7e8d View commit details
    Browse the repository at this point in the history
  17. doc: add missing zlib link to stream API docs

    This seems to have been removed inadvertently by
    330c8d7 in PR 12925.
    
    PR-URL: #13838
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Rob--W authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    04bca73 View commit details
    Browse the repository at this point in the history
  18. console: use a plain object for the the error stack

    Using a object instead of an Error is sufficient as the Error
    itself won't be used but only the stack trace that would
    otherwise be created twice.
    
    This improves the overall .trace() performance.
    
    PR-URL: #13743
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    816f98f View commit details
    Browse the repository at this point in the history
  19. errors: prevent stack recalculation

    Newer v8 versions exclude the constructor from the stack trace
    so the recalculation of the trace can be avoided.
    
    PR-URL: #13743
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    ad8b158 View commit details
    Browse the repository at this point in the history
  20. cluster: remove obsolete todo

    PR-URL: #13734
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    26f85e7 View commit details
    Browse the repository at this point in the history
  21. test: remove unnecessary Buffer import

    Removed require('buffer') from
    
    - test/disabled/test-sendfd.js
    - test/internet/test-dgram-broadcast-multi-process.js
    - test/pummel/test-https-no-reader.js
    
    PR-URL: #13860
    Refs: #13836
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    swinston1000 authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    76cdaec View commit details
    Browse the repository at this point in the history
  22. test: remove require('buffer') on 6 fs test files

    * test/parallel/test-fs-mkdtemp.js
    * test/parallel/test-fs-read-zero-length.js
    * test/parallel/test-fs-read.js
    * test/parallel/test-fs-whatwg-url.js
    * test/parallel/test-fs-write-string-coerce.js
    * test/parallel/test-fs-write.js
    
    PR-URL: #13845
    Refs: #13836
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    sallen450 authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4a66041 View commit details
    Browse the repository at this point in the history
  23. test: remove require('buffer') from 4 buffer tests

    Remove superfluous import from:
    
    * test/parallel/test-buffer-alloc.js
    * test/parallel/test-buffer-arraybuffer.js
    * test/parallel/test-buffer-badhex.js
    * test/parallel/test-buffer-bytelength.js
    
    Refs: #13836
    PR-URL: #13855
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    OriLev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    c3c6699 View commit details
    Browse the repository at this point in the history
  24. test: remove require('buffer') from 4 test files

    Remove superfluous import from:
    
    * test/parallel/test-buffer-fakes.js
    * test/parallel/test-buffer-includes.js
    * test/parallel/test-buffer-indexof.js
    * test/parallel/test-buffer-new.js
    
    Refs: #13836
    PR-URL: #13846
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jackson Tian <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    leizongmin authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    ec3761b View commit details
    Browse the repository at this point in the history
  25. test: remove unnecessary require('buffer').Buffer

    Remove unnecessary imports from:
    
    * test/parallel/test-buffer-nopendingdep-map.js
    * test/parallel/test-buffer-pending-deprecation.js
    * test/parallel/test-buffer-sharedarraybuffer.js
    * test/parallel/test-buffer-slow.js
    * test/parallel/test-buffer-tojson.js
    * test/parallel/test-buffer-zero-fill.js
    
    Refs: #13836
    PR-URL: #13851
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lenakaplan authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    df3c292 View commit details
    Browse the repository at this point in the history
  26. test: remove require('buffer') from 4 test files

    We don't use the global Buffer throughout the lib/ to avoid circular
    dependency issues in core, but we actually don't need to require it on
    test files. So remove them on:
    
    + test/parallel/test-stream-uint8array.js
    + test/parallel/test-stream2-finish-pipe.js
    + test/parallel/test-tls-session-cache.js
    + test/parallel/test-vm-cached-data.js
    
    Refs: #13836
    PR-URL: #13844
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    XadillaX authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    005e343 View commit details
    Browse the repository at this point in the history
  27. build: clean up config_fips.gypi

    Currently when configuring the project using --openssl-fips a gyp
    include file name config_fips.gypi will be created. If the project is
    later configured but without the --openssl-fips flag an error will
    occur. For example:
    
      $ ./configure --openssl-fips=bogus
      $ ./configure && make -j8
      ...
      /node/deps/openssl/fips/fipsld:
      line 8: /bin/fipsld: No such file or directory
      Error 127
    
    This commit suggests removing the generate config_fips.gypi when the
    --openssl-fips flag is not give on the command line.
    
    PR-URL: #13837
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f2d7b80 View commit details
    Browse the repository at this point in the history
  28. child_process: emit IPC messages on next tick

    This commit fixes a regression related to IPC 'message'
    events. When messages are not emitted in the next tick,
    a 'message' handler that throws can break the IPC read
    loop.
    
    Refs: #6909
    Refs: #13459
    Refs: #13648
    PR-URL: #13856
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    16f2600 View commit details
    Browse the repository at this point in the history
  29. build: remove dependency on icu io library

    The library is only used in a single build-time tool where it can be
    easily substituted by regular libc I/O functions.
    
    PR-URL: #13656
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    bnoordhuis authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    c972364 View commit details
    Browse the repository at this point in the history
  30. deps: delete deps/icu-small/source/io

    The previous commit removed the dependency on the code in that
    directory.  This commit removes the directory itself and shrinks
    the source tarball by about 200 kB.
    
    PR-URL: #13656
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    bnoordhuis authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    46cc80a View commit details
    Browse the repository at this point in the history
  31. test: check uv_ip4_addr return value

    Fixes Coverity errors.
    
    PR-URL: #13878
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Eugene Ostroukhov authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    587c905 View commit details
    Browse the repository at this point in the history
  32. test: make http(s)-set-timeout-server more similar

    Make test-http(s)-set-timeout-server tests more similar and resolve the
    following issues:
    
    * `test-https-set-timeout-server.js` was missing some `assert`
       statements, including with `http` module
    
    * Both files were missing some calls to `common.mustCall()`
    
    * Both files were calling `createServer()` in different ways
    
    PR-URL: #13822
    Refs: #13588
    Refs: #13625
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jklepatch authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    2659573 View commit details
    Browse the repository at this point in the history
  33. doc: fix link in async_hooks.md

    PR-URL: #13930
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Azard authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    12b6765 View commit details
    Browse the repository at this point in the history
  34. test: refactor test-tls-env-extra-ca

    * Use `common.mustCall()` to guarantee callback invocations
    * Order modules according to test writing guide
    
    PR-URL: #13886
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    a767367 View commit details
    Browse the repository at this point in the history
  35. test: refactor test-tls-invoked-queued

    * use common.mustCall()/common.mustNotCall() as appropriate
    * reorder require() statements per test writing guide
    * add comment
    
    PR-URL: #13893
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    74aed0b View commit details
    Browse the repository at this point in the history
  36. tools: update to ESLint 4.1.0

    Update ESLint to 4.1.0. This fixes a bug that previously prevented us
    from using the new and stricter indentation checking.
    
    Refs: eslint/eslint#8721
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6a5c376 View commit details
    Browse the repository at this point in the history
  37. tools: add script to update ESLint

    Provide a bash script for updating ESLint in the project.
    
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    c732bf6 View commit details
    Browse the repository at this point in the history
  38. tools,benchmark: use stricter indentation linting

    Enable stricter indentation rules for benchmark code.
    
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4ecff6c View commit details
    Browse the repository at this point in the history
  39. tools: disable legacy indentation linting in tools

    The tools directory has newer and stricter indentation enabled, but the
    legacy indentation rules were not disabled. This could potentitally
    result in a conflict between the two rule sets. Disable legacy linting.
    
    PR-URL: #13895
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    84b1641 View commit details
    Browse the repository at this point in the history
  40. src,fs: calculate times as unsigned long

    PR-URL: #13281
    Fixes: #13255
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    5579bc8 View commit details
    Browse the repository at this point in the history
  41. test: skip fips tests using OpenSSL config file

    The motivation for this commit is that we are building Node with
    --shared-openssl and in our case the system OpenSSL version
    supports FIPS.
    
    The tests in test-crypto-fips that toggle fips mode on/off using the
    config file option might succeed and return 1 instead of an error
    being thrown from OpenSSL (which is what happens for a default build
    but the error is not processed/displayed in any way at the moment):
    openssl config failed: error:060B10A7:digital envelope
    routines:ALG_MODULE_INIT:fips mode not supported
    
    Note that this only concerns the test that use the configuration file
    option which is different from when calling the fips setter as
    the handling of the configuration file is handled by OpenSSL, so it
    is not possible for us to try to call the fips setter as that would
    throw an error ("Error: Cannot set FIPS mode in a non-FIPS build.").
    
    The suggestion is to skips these tests when --shared-openssl is used.
    
    PR-URL: #13786
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6120a0d View commit details
    Browse the repository at this point in the history
  42. doc: fixed formatting issue in cli docs

    Removed some bad escape characters
    
    PR-URL: #13808
    Fixes: #13805
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Chris Young authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    502be7c View commit details
    Browse the repository at this point in the history
  43. test: remove unneeded HandleScope usage

    These methods are Javascript-accessible so they get an implicit
    HandleScope. The extra scope is unneeded and can be dropped.
    
    PR-URL: #13859
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Signed-off-by: Ezequiel Garcia <[email protected]>
    ezequielgarcia authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    c4018e8 View commit details
    Browse the repository at this point in the history
  44. doc: unify ERR_FALSY_VALUE_REJECTION description

    PR-URL: #13869
    Refs: #13604
    Refs: #13627
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    tniessen authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    0fc7a50 View commit details
    Browse the repository at this point in the history
  45. doc: fix mistake in path.relative

    The docs implied that the parameters `from` and `to` are invalid only
    if neither of them is a string; in fact, they are invalid as soon as one
    of them is not a string.
    
    PR-URL: #13912
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    tniessen authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    9ff5212 View commit details
    Browse the repository at this point in the history
  46. build,windows: implement PEP514 python detection

    PR-URL: #13900
    Fixes: #13882
    Reviewed-By: Tobias Nießen <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    949f7be View commit details
    Browse the repository at this point in the history
  47. doc: add gireeshpunathil to collaborators

    PR-URL: #13967
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    gireeshpunathil authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    7332e7e View commit details
    Browse the repository at this point in the history
  48. doc: doc lifetime of n-api last error info

    Document the lifetime of the structure returned
    by napi_get_last_error_info
    
    PR-URL: #13939
    Fixes: nodejs/abi-stable-node#251
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    mhdawson authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4c43ff2 View commit details
    Browse the repository at this point in the history
  49. doc: add @nodejs/documentation to CC table

    PR-URL: #13952
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    8fe7722 View commit details
    Browse the repository at this point in the history
  50. test: refactor test-tls-two-cas-one-string

    * order require() statements per test writing guide
    * add keydir variable to make readFileSync() calls more readable
    * make `next` argument to test() optional
    * use common.mustCall() to guarantee second test runs
    
    PR-URL: #13896
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    949d1b1 View commit details
    Browse the repository at this point in the history
  51. test: refactor test-vm-sigint

    * Use common.mustNotCall() to confirm SIGINT listeners are not being
      invoked.
    * Improve assertion check on integer child argument.
    * Add blank line per test writing guide.
    
    PR-URL: #13902
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    98ec8aa View commit details
    Browse the repository at this point in the history
  52. tools: remove comment in eslint rule

    I noticed this comment while working on a different task and could not
    find any reason for it being there. Just bringing this up in case it was
    overlooked.
    
    PR-URL: #13945
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    42ef8f9 View commit details
    Browse the repository at this point in the history
  53. tools: update to ESLint 4.1.1

    PR-URL: #13946
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    17636f6 View commit details
    Browse the repository at this point in the history
  54. test: refactor test-cluster-basic

    * Use common.mustNotCall() to check that callback is not invoked.
    * Add space per test writing guide.
    
    PR-URL: #13905
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    b43547a View commit details
    Browse the repository at this point in the history
  55. doc: note that fs.futimes only works on AIX >7.1

    PR-URL: #13659
    Fixes: #12609
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]> i
    gibfahn authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    adb0f46 View commit details
    Browse the repository at this point in the history
  56. n-api: fix section title typo

    PR-URL: #13972
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    kfarnung authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4843d4d View commit details
    Browse the repository at this point in the history
  57. readline: properly handle 0-width characters

    PR-URL: #13918
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    b4b27b2 View commit details
    Browse the repository at this point in the history
  58. src: revise character width calculation

    - Categorize all nonspacing marks (Mn) and enclosing marks (Me) as
      0-width
    - Categorize all spacing marks (Mc) as non-0-width.
    - Treat soft hyphens (a format character Cf) as non-0-width.
    - Do not treat all unassigned code points as 0-width; instead, let ICU
      select the default for that character per UAX #11.
    - Avoid getting the General_Category of a character multiple times as it
      is an intensive operation.
    
    Refs: http://unicode.org/reports/tr11/
    PR-URL: #13918
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    98cb59e View commit details
    Browse the repository at this point in the history
  59. src: add missing new line to printed message

    PR-URL: #13940
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    TimothyGu authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    dff506c View commit details
    Browse the repository at this point in the history
  60. test: fix failure in test-icu-data-dir.js

    This fixes a broken test on Windows caused by EOL conversion.
    
    PR-URL: #13987
    Refs: #13940
    Refs: #13986
    Reviewed-By: Refael Ackermann <[email protected]>
    tniessen authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    fa9e647 View commit details
    Browse the repository at this point in the history
  61. test: mark test-fs-readdir-ucs2 flaky

    PR-URL: #13989
    Reviewed-By: Refael Ackermann <[email protected]>
    joaocgreis authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    e5d32b8 View commit details
    Browse the repository at this point in the history
  62. benchmark,lib,test: use braces for multiline block

    For if/else and loops where the bodies span more than one line, use
    curly braces.
    
    Original-PR-URL: #13828
    Ref: #13623 (comment)
    Original-Reviewed-By: Anna Henningsen <[email protected]>
    Original-Reviewed-By: Colin Ihrig <[email protected]>
    Original-Reviewed-By: Michaël Zasso <[email protected]>
    Original-Reviewed-By: James M Snell <[email protected]>
    
    PR-URL: #13995
    Reviewed-By: Anna Henningsen <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    3d0b66a View commit details
    Browse the repository at this point in the history
  63. doc: use stricter indentation checking for docs

    Use stricter ESLint indent checking for sample code in docs.
    
    PR-URL: #13950
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f53bfe4 View commit details
    Browse the repository at this point in the history
  64. doc: fix indentation issues in sample code

    In preparation for stricter ESLint indentation checking, fix a few
    issues in sample code.
    
    PR-URL: #13950
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f1d92fb View commit details
    Browse the repository at this point in the history
  65. test: refactor test-child-process-send-type-error

    * Add exit listener to child process to check return code. Previously,
      child process faiilure would not cause the test to fail.
    * Use common.mustNotCall() to guarantee callback is not invoked.
    * Insert blank line per test writing guide.
    
    PR-URL: #13904
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    071ecb0 View commit details
    Browse the repository at this point in the history
  66. src: move crypto_bio/clienthello to crypto ns

    Currently, node_crypto_bio and node_crypto_clienthello are not in the
    crypto namespace but simply in the node namespace. Not sure if this was
    intentional or not, but I think it would make sense to move them to be
    consistent.
    
    PR-URL: #13957
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    ef67f7c View commit details
    Browse the repository at this point in the history
  67. lib: fix typos

    Original-PR-URL: #13741
    Original-Reviewed-By: Colin Ihrig <[email protected]>
    Original-Reviewed-By: Roman Reiss <[email protected]>
    Original-Reviewed-By: James M Snell <[email protected]>
    Original-Reviewed-By: Luigi Pinca <[email protected]>
    Original-Reviewed-By: Gibson Fahnestock <[email protected]>
    
    PR-URL: #14044
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    BridgeAR authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4bb1a3a View commit details
    Browse the repository at this point in the history
  68. test: verify isNativeError accepts internal errors

    This commit verifies that Node's internal errors are recognized
    by V8's IsNativeError(), which is exposed in Node as
    process.binding('util').isNativeError().
    
    PR-URL: #13965
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f7383eb View commit details
    Browse the repository at this point in the history
  69. doc: move module-specific "globals" to modules.md

    PR-URL: #13962
    Fixes: #13953
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    e36561a View commit details
    Browse the repository at this point in the history
  70. test: refactor test-fs-watchfile

    * use `common.mustNotCall()` to confirm callback is not called
    * reorder modules to conform with test-writing guide
    * match full error message in `assert.throws()`
    
    PR-URL: #13721
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    100ccf9 View commit details
    Browse the repository at this point in the history
  71. stream: avoid possible slow path w UInt8Array

    A chunk validity checks verifie if a chunk is a UInt8Array.
    We should defer it as it might be very expensive in older Node.js
    platforms.
    
    PR-URL: #13956
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    mcollina authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6eb53e5 View commit details
    Browse the repository at this point in the history
  72. build,win: use latest installed VS by default

    vcbuild.bat should detect what version of Visual Studio to use, it
    should simply work without any parameter if any supported version is
    installed. It should default to the latest version, to match the
    behavior of `node-gyp`.
    
    PR-URL: #13911
    Fixes: #13641
    Reviewed-By: Refael Ackermann <[email protected]>
    joaocgreis authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    cd9ef93 View commit details
    Browse the repository at this point in the history
  73. build,win: respect VS version for building addons

    When building in machines with multiple versions of Visual Studio
    installed, node-gyp should respect the vs2015/vs2017 arguments passed
    to vcbuild.bat instead of relying on its own detection mechanism.
    
    PR-URL: #13911
    Reviewed-By: Refael Ackermann <[email protected]>
    joaocgreis authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    dc0ae8b View commit details
    Browse the repository at this point in the history
  74. test: verify napi_get_property() walks prototype

    Refs: #13925
    PR-URL: #13961
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f400939 View commit details
    Browse the repository at this point in the history
  75. build,windows: restore DISTTYPEDIR

    * rename :exit to :distexit
    
    PR-URL: #13969
    Refs: #13900 (review)
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Rod Vagg <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    79ead79 View commit details
    Browse the repository at this point in the history
  76. n-api: add napi_delete_element()

    Refs: #13924
    PR-URL: #13949
    Reviewed-By: Jason Ginchereau <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6316c9a View commit details
    Browse the repository at this point in the history
  77. n-api: add napi_delete_property()

    Fixes: #13924
    PR-URL: #13934
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    cjihrig authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    820d97d View commit details
    Browse the repository at this point in the history
  78. child_process: fix handleless NODE_HANDLE handling

    It is possible that `recvmsg()` may return an error on ancillary data
    reception when receiving a `NODE_HANDLE` message (for example
    `MSG_CTRUNC`). This would end up, if the handle type was `net.Socket`,
    on a `message` event with a non null but invalid `sendHandle`. To
    improve the situation, send a `NODE_HANDLE_NACK` that'll cause the
    sending process to retransmit the message again. In case the same
    message is retransmitted 3 times without success, close the handle and
    print a warning.
    
    PR-URL: #13235
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    santigimeno authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    09eb588 View commit details
    Browse the repository at this point in the history
  79. test,async_hooks: stabilize tests on Windows

    PR-URL: #13381
    Reviewed-By: Andreas Madsen <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    3d9bc01 View commit details
    Browse the repository at this point in the history
  80. build: add async-hooks testing to vcbuild.bat

    PR-URL: #13381
    Reviewed-By: Andreas Madsen <[email protected]>
    refack authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    651af59 View commit details
    Browse the repository at this point in the history
  81. test: remove undef NDEBUG from at-exit addons test

    The at-exit addons test uses asserts like the other addons tests,
    but at-exit is the only one that undefines NDEBUG to make sure
    that asserts are enabled. This commit removes the undef for
    consistency.
    
    PR-URL: #13998
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    4ba1d32 View commit details
    Browse the repository at this point in the history
  82. test: refactor test-crypto-pbkdf2

    * re-order require() and crypto check per test writing guide
    * use common.mustNotCall() to confirm callback is not invoked
    
    PR-URL: #13975
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    bb198dc View commit details
    Browse the repository at this point in the history
  83. test: refactor test-fs-options-immutable

    * Reorder require() statements per test-writing guide
    * Use common.mustNotCall() to check that callback is not invoked
    * Use common.mustCall() to check that callback is invoked
    
    PR-URL: #13977
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and addaleax committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    f1ef692 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2017

  1. doc: fix some broken references

    PR-URL: #13811
    Reviewed-By: Jackson Tian <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    gromnitsky authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    49b5720 View commit details
    Browse the repository at this point in the history
  2. test: replace indexOf with includes and startsWith

    PR-URL: #13852
    Refs: #12586
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Nataly Shrits authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e0e1831 View commit details
    Browse the repository at this point in the history
  3. doc: add default values to functions in fs.md

    PR-URL: #13767
    Refs: #11135
    Refs: #13769
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    matejkrajcovic authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    ee5ed6e View commit details
    Browse the repository at this point in the history
  4. test: mark test-npm-install flaky on arm

    PR-URL: #14035
    Refs: #14015
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    66a6a5e View commit details
    Browse the repository at this point in the history
  5. doc: fix example in child_process.md

    PR-URL: #13716
    Reviewed-By: Refael Ackermann <[email protected]>
    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: Tobias Nießen <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    rus0000 authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    759d6a8 View commit details
    Browse the repository at this point in the history
  6. tools: change var to const in ./doc/addon-verify

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7de10a2 View commit details
    Browse the repository at this point in the history
  7. tools: change var to const in ./doc/json

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    6dc3f98 View commit details
    Browse the repository at this point in the history
  8. tools: change var to const in ./doc/preprocess

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5ece9c7 View commit details
    Browse the repository at this point in the history
  9. tools: change var to const in ./license2rtf

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e959e2f View commit details
    Browse the repository at this point in the history
  10. test: change var to const in ./common

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    ea63d7f View commit details
    Browse the repository at this point in the history
  11. tools: change var to const in ./doc/html

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    9559c89 View commit details
    Browse the repository at this point in the history
  12. tools: change var to const in ./eslint-rules

    PR-URL: #13732
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1aa6bcd View commit details
    Browse the repository at this point in the history
  13. test: refactor test-http-invalidheaderfield

    * use common.mustNotCall() to confirm callback is not invoked
    * whitespace change per test-writing guide
    
    PR-URL: #13996
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    602dd03 View commit details
    Browse the repository at this point in the history
  14. doc: add CTC members to Collaborators list

    For simplicity and clarity (if not brevity), add CTC and CTC Emeriti to
    Collaborators list in README. This will avoid confusion about who is and
    isn't a Collaborator.
    
    PR-URL: #13284
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d174264 View commit details
    Browse the repository at this point in the history
  15. http: guard against failed sockets creation

    PR-URL: #13839
    Fixes: #13045
    Fixes: #13831
    Refs: #13352
    Refs: #13548 (comment)
    Reviewed-By: Trevor Norris <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    959bdfd View commit details
    Browse the repository at this point in the history
  16. test: refactor test-http(s)-set-timeout-server

    * Make changes to `test-https-set-timeout-server` to resolve
      inconsistencies with its http counterpart:
    
      - Apply the changes analogous to those in GH-13802 to the https test.
      - Add a missing `common.mustCall()` wrapper.
      - Make small stylistic changes (e.g., remove unnecessary line breaks
        in comments) to make it visually consistent with the http test.
    
    * Use arrow functions.
    
    PR-URL: #13935
    Fixes: #13588
    Refs: #13802
    Refs: #13625
    Refs: #13822
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    aqrln authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    16a2f68 View commit details
    Browse the repository at this point in the history
  17. test: refactor test-http-hostname-typechecking

    * Use common.mustCall() to confirm callback is invoked.
    * Change spacing of require statements to conform to test-writing guide.
    
    PR-URL: #13993
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1058556 View commit details
    Browse the repository at this point in the history
  18. test,fs: delay unlink in test-regress-GH-4027.js

    The sequential/test-regress-GH-4027 test is flaky with an increased
    system load, failing when the watched file is unlinked before the
    first state of the watched file is retrieved.
    
    After increasing the delay before unlinking and calling setTimeout
    after watchFile, the flakiness stopped reproducing.
    
    PR-URL: #14010
    Fixes: #13800
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    jaimecbernardo authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    95ed925 View commit details
    Browse the repository at this point in the history
  19. test: fix require nits in some test-tls-* tests

    * Do not require if test is skipped.
    * Do not re-require without need.
    * Sort requiring by module names.
    
    PR-URL: #14008
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    898fe61 View commit details
    Browse the repository at this point in the history
  20. test: simplify test skipping

    * Make common.skip() exit.
    
      Also add common.printSkipMessage() for partial skips.
    
    * Don't make needless things before skip
    
    PR-URL: #14021
    Fixes: #14016
    Reviewed-By: Refael Ackermann <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    bc99efc View commit details
    Browse the repository at this point in the history
  21. test: skip test-fs-readdir-ucs2 if no support

    If the filesystem does not support UCS2, do not run the test.
    
    PR-URL: #14029
    Fixes: #14028
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e583e3b View commit details
    Browse the repository at this point in the history
  22. test: restore no-op function in test

    Remove common.mustCall() in test that might connect to a server already
    running on the local host.
    
    PR-URL: #14065
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5abe8c0 View commit details
    Browse the repository at this point in the history
  23. doc, util, console: clarify ambiguous docs

    Add clarification to the documentation on util.format()
    and console.log() regarding how excessive arguments are treated
    when the first argument is a non-format string
    compared to when it is not a string at all.
    
    PR-URL: #14027
    Fixes: #13908
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    nattelog authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1ff5aea View commit details
    Browse the repository at this point in the history
  24. doc: fix padding mode of crypto.publicDecrypt

    PR-URL: #14036
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    MoonBall authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1ccec0e View commit details
    Browse the repository at this point in the history
  25. tools: use no-use-before-define ESLint rule

    Also fix repl and url libs for the rule.
    
    PR-URL: #14032
    Refs: http://eslint.org/docs/rules/no-use-before-define
    Reviewed-By: Daijiro Wachi <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7e8283c View commit details
    Browse the repository at this point in the history
  26. tools: update: [email protected]

    * Remove pinning of eslint-plugin-markdown
    
      An issue affecting Node.js source has been fixed in
      eslint-plugin-markdown so we don't need to pin it to beta-4 anymore.
    
      Refs: eslint/markdown#69
    
    * Update eslint-plugin-markdown up to 1.0.0-beta.7
    
    * Fix docs for [email protected]
    
    PR-URL: #14047
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3bc72ab View commit details
    Browse the repository at this point in the history
  27. url: normalize port on scheme change

    PR-URL: #13997
    Refs: whatwg/url#328
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    TimothyGu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c83b3ae View commit details
    Browse the repository at this point in the history
  28. benchmark: Improve event performance tests.

    Currently most of the event tests only test a single event type,
    which might let those benchmark take fast-paths (in V8) that aren't
    taken in realistic use cases, and thus the benchmarks are not good
    proxies of real world uses.
    
    PR-URL: #14052
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bmeurer authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    9dbeea0 View commit details
    Browse the repository at this point in the history
  29. async_hooks: reduce duplication with factory

    PR-URL: #13755
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    70dad23 View commit details
    Browse the repository at this point in the history
  30. async-hooks,net: ensure asyncId=null if no handle

    If the .listen() hasn't been called on the server, there is no handle
    object. In this case use null as the triggerAsyncId.
    
    Fixes: #13548
    PR-URL: #13938
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Matt Sergeant authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3556031 View commit details
    Browse the repository at this point in the history
  31. async_hooks: fix default nextTick triggerAsyncId

    In the case where triggerAsyncId is null it should default to the
    current executionAsyncId. This worked but as a side-effect the resource
    object was changed too.
    
    This fix also makes the null check more strict. EmitInitS is not a
    documented API, thus there is no reason to be flexible in its input.
    
    Ref: #13548 (comment)
    PR-URL: #14026
    Reviewed-By: Refael Ackermann <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    796881d View commit details
    Browse the repository at this point in the history
  32. n-api: use Maybe version of Object::SetPrototype()

    Fixes the following deprecation warning:
    
        ../src/node_api.cc:2020:30: warning: 'bool
        v8::Object::SetPrototype(v8::Local<v8::Value>)' is deprecated: Use
        maybe version [-Wdeprecated-declarations]
           wrapper->SetPrototype(proto);
        ../src/node_api.cc:2021:28: warning: 'bool
        v8::Object::SetPrototype(v8::Local<v8::Value>)' is deprecated: Use
        maybe version [-Wdeprecated-declarations]
           obj->SetPrototype(wrapper);
    
    PR-URL: #14053
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    010e466 View commit details
    Browse the repository at this point in the history
  33. n-api: fix -Wmaybe-uninitialized compiler warning

    Not an actual bug, as far as I can tell, the compiler is simply not
    smart enough to figure out that the offending code path isn't reached
    with an uninitialized value.
    
    PR-URL: #14053
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    dbd629e View commit details
    Browse the repository at this point in the history
  34. tools: eslint - use error and off

    PR-URL: #14061
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    20c7b58 View commit details
    Browse the repository at this point in the history
  35. src: --abort-on-uncaught-exception in NODE_OPTIONS

    Allow --abort-on-uncaught-exception in NODE_OPTIONS, its useful to
    enable for post-mortem debugging.
    
    PR-URL: #13932
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a4f67f9 View commit details
    Browse the repository at this point in the history
  36. test: add coverage for napi_typeof

    We had some, but not complete coverage indirectly through
    other tests.  Add test to validate it specifically and
    covers cases that were not being covered.
    
    PR-URL: #13990
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mhdawson authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e479bff View commit details
    Browse the repository at this point in the history
  37. doc: add documentation on ICU

    PR-URL: #13916
    Refs: #13644 (comment)
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    TimothyGu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7894578 View commit details
    Browse the repository at this point in the history
  38. test: check and fail inspector-cluster-port-clash

    Currently this test fail when configured --without-inspector or
    --without-ssl as it is expected to fail but the skipIfInspectorDisabled
    check will exit as if the test was sucessful.
    
    This commit checks if inspector support is available and fails the test
    allowing the test to be skipped.
    
    PR-URL: #14074
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    danbev authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    94706ee View commit details
    Browse the repository at this point in the history
  39. N-API: Reuse ObjectTemplate instances

    V8 caches and does not subsequently release `ObjectTemplate` instances.
    Thus, we need to store the `ObjectTemplate` from which we derive object
    instances we use for `napi_wrap()` and function/accessor context in a
    persistent in the `napi_env`.
    
    nodejs/node-addon-api#70 (comment)
    
    PR-URL: #13999
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    Gabriel Schulhof authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    0bce0ab View commit details
    Browse the repository at this point in the history
  40. n-api: add napi_has_own_property()

    Refs: #13925
    PR-URL: #14063
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    cjihrig authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1b7a0cd View commit details
    Browse the repository at this point in the history
  41. src: document --abort-on-uncaught-exception

    Its important for post-mortem diagnostics and should be more prominently
    documented.
    
    PR-URL: #13931
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    sam-github authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    253f65b View commit details
    Browse the repository at this point in the history
  42. async_hooks: use common emitBefore and emitAfter

    Timers and nextTick have special emitBefore and emitAfter functions for
    historic reasons. These function are not needed any more, thus the
    public emitBefore and emitAfter function can be used.
    
    PR-URL: #14050
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8d3b34b View commit details
    Browse the repository at this point in the history
  43. async_hooks: require parameter in emitBefore

    Using asyncId as the default triggerAsyncId is wrong. The triggerAsyncId
    can actually never be the asyncId.
    
    PR-URL: #14050
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f14ad7d View commit details
    Browse the repository at this point in the history
  44. tools: remove align-multiline-assignment lint rule

    In preparation for stricter indentation linting, remove the
    align-multiline-assignment custom rule, as it may conflict with the
    ESLint stricter indentation linting.
    
    PR-URL: #14079
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    24950ea View commit details
    Browse the repository at this point in the history
  45. repl: fix crash with large buffer tab completion

    If the buffer or array is too large to completion, make a dummy smallest
    substitute object for it and emit a warning.
    
    PR-URL: #13817
    Fixes: #3136
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    XadillaX authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    768ae55 View commit details
    Browse the repository at this point in the history
  46. n-api: fix warning in test_general

    Currently the following warning is issued when buildning:
    
    Building addon
    /work/nodejs/node/test/addons-napi/test_general/
      CC(target) Debug/obj.target/test_general/test_general.o
    ../test_general.c:116:14: warning: variable 'result' is used
    uninitialized whenever 'if' condition is false
    [-Wsometimes-uninitialized]
      } else if (argument_type == napi_null) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
    ../test_general.c:119:10: note: uninitialized use occurs here
      return result;
             ^~~~~~
    ../test_general.c:116:10: note: remove the 'if' if its condition is
    always true
      } else if (argument_type == napi_null) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../test_general.c:101:20: note: initialize the variable 'result' to
    silence this warning
      napi_value result;
                       ^
                        = NULL
    
    This commit simply initializes result to NULL to avoid this warning.
    
    PR-URL: #14104
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7d610d4 View commit details
    Browse the repository at this point in the history
  47. lib: use consistent indentation for ternaries

    In anticipation of stricter linting for indentation issues, modify
    ternary operators in lib that do not conform with the expected ESLint
    settings.
    
    PR-URL: #14078
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a1c342d View commit details
    Browse the repository at this point in the history
  48. tools: fix error in eslintrc comment

    46d7cb8 introduced an error in a
    comment in `.eslintrc.yaml`. The second option needs to be an integer
    specifying the number of spaces per level of indentation.
    
    PR-URL: #14108
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3a80508 View commit details
    Browse the repository at this point in the history
  49. lib: remove excess indentation

    In anticipation of stricter linting for indentation, remove instances of
    extra indentation that will be flagged by the new rules.
    
    PR-URL: #14090
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d9c3cca View commit details
    Browse the repository at this point in the history
  50. tools: generate template literal for addon tests

    Instead of generating string concatenation, generate a template literal.
    This is mostly useful as a pre-emptive measure for avoiding problems
    when (if?) we enable the prefer-template lint rule in the test
    directory.
    
    PR-URL: #14094
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    b492a40 View commit details
    Browse the repository at this point in the history
  51. doc: match debugger output & instructions to master behavior

    PR-URL: #13885
    Reviewed-By: Colin Ihrig <[email protected]>
    Jan Krems authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c4b6059 View commit details
    Browse the repository at this point in the history
  52. doc,test: fs - reserved characters under win32

    Explain the behavior of `fs.open()` under win32 that file path contains
    some characters and add some test cases for them.
    
    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)
    
    PR-URL: #13875
    Refs: #13868
    Refs: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    Refs: https://msdn.microsoft.com/en-us/library/windows/desktop/bb540537.aspx
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    XadillaX authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    fa3694f View commit details
    Browse the repository at this point in the history
  53. doc: fix mistake in http.md

    If the first parameter of `request.end` `data` is specified, it should
    be equivalent to calling `request.write(data, encoding)` (not
    `response.write(data, encoding)`) followed by `request.end(callback)`.
    
    This mistake was introduced in commit
    14b3aab:
    
        date: 28 November 2015 at 7:30:32 AM GMT+8
        author: jpersson <[email protected]>
        committer: James M Snell <[email protected]>
        summary: doc: add links and backticks around names
    
    PR-URL: #14126
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    galeo authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    0c7f572 View commit details
    Browse the repository at this point in the history
  54. build,win: skip vcvarsall.bat if env is set

    PR-URL: #13806
    Fixes: #13765
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Kunal Pathak <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    9675734 View commit details
    Browse the repository at this point in the history
  55. build: split up cpplint to avoid long cmd lines

    Refactors cpplint slightly to allow multiple runs of it. This allows
    downstream projects to run cpplint on their dependencies.
    
    PR-URL: #14116
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Kunal Pathak <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    kfarnung authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    23a66b2 View commit details
    Browse the repository at this point in the history
  56. fs: two minor optimizations

    * tryStatSync should not return any value
      If the function threw, it would never reach that code path.
    
    * only use try catch if necessary
      lchmodSync does not need the second try catch in most cases.
    
    PR-URL: #14055
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    0a462fb View commit details
    Browse the repository at this point in the history
  57. test: ignore connection errors for hostname check

    PR-URL: #14073
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    628fc49 View commit details
    Browse the repository at this point in the history
  58. doc: note 'resize' event conditions on Windows

    PR-URL: #13576
    Fixes: #13197
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Dean-Coakley authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    45234c1 View commit details
    Browse the repository at this point in the history
  59. test: fix cctest failure on Windows

    Linux converts the ipv6 address "::" to "::1", while windows does not.
    By explicitly using "::1" in the test we allow it to succeed on windows.
    
    PR-URL: #14111
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Kunal Pathak <[email protected]>
    Reviewed-By: João Reis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    MSLaguana authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    65ab656 View commit details
    Browse the repository at this point in the history
  60. lib: normalize indentation in parentheses

    In anticipation of stricter indentation linting, normalize indentation
    of code in parentheses.
    
    PR-URL: #14125
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    4d41502 View commit details
    Browse the repository at this point in the history
  61. src: whitelist v8 options with '_' or '-'

    V8 options allow either '_' or '-' to be used in options as a seperator,
    such as "--abort-on_uncaught-exception". Allow these case variations
    when used with NODE_OPTIONS.
    
    PR-URL: #14093
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3cdaae2 View commit details
    Browse the repository at this point in the history
  62. doc: correct stream Duplex allowHalfOpen doc

    If allowHalfOpen is set to false, the stream will automatically end the
    writable side when the readable side ends, but not the other way around.
    
    PR-URL: #14127
    Fixes: #4044
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    ef3d622 View commit details
    Browse the repository at this point in the history
  63. test: add get/set effective uid/gid tests

    3c92ca2 should have had tests
    to go along with it. This adds tests for the following functions:
    
    * `process.geteuid()`
    * `process.seteuid()`
    * `process.getegid()`
    * `process.setegid()`
    
    PR-URL: #14091
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Claudio Rodriguez <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    evanlucas authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8887a57 View commit details
    Browse the repository at this point in the history
  64. doc: removed redundant mentions to error codes

    PR-URL: #13627
    Backport-PR-URL: #14175
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    jklepatch authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    229748c View commit details
    Browse the repository at this point in the history
  65. async_hooks: C++ Embedder API overhaul

    * Fix AsyncHooksGetTriggerAsyncId such it corresponds to
    async_hooks.triggerAsyncId and not async_hooks.initTriggerId.
    * Use an async_context struct instead of two async_uid values.
      This change was necessary since the fixing
      AsyncHooksGetTriggerAsyncId otherwise makes it impossible to
      get the correct default trigger id. It also prevents an invalid
      triggerAsyncId in MakeCallback.
    * Rename async_uid to async_id for consistency
    * Rename get_uid to get_async_id
    * Add get_trigger_async_id to AsyncResource class
    
    PR-URL: #14040
    Backport-PR-URL: #14109
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3faeb49 View commit details
    Browse the repository at this point in the history
  66. test: remove common.noop

    This change removes `common.noop` from the Node.js internal testing
    common module.
    
    Over the last few weeks, I've grown to dislike the `common.noop`
    abstraction.
    
    First, new (and experienced) contributors are unaware of it and so it
    results in a large number of low-value nits on PRs. It also increases
    the number of things newcomers and infrequent contributors have to be
    aware of to be effective on the project.
    
    Second, it is confusing. Is it a singleton/property or a getter? Which
    should be expected? This can lead to subtle and hard-to-find bugs. (To
    my knowledge, none have landed on master. But I also think it's only a
    matter of time.)
    
    Third, the abstraction is low-value in my opinion. What does it really
    get us? A case could me made that it is without value at all.
    
    Lastly, and this is minor, but the abstraction is wordier than not using
    the abstraction. `common.noop` doesn't save anything over `() => {}`.
    
    So, I propose removing it.
    
    PR-URL: #12822
    Backport-PR-URL: #14174
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7f2b5d3 View commit details
    Browse the repository at this point in the history
  67. test: fix flaky test-https-set-timeout-server

    Because of a race condition, connection listener may not be invoked if
    test is run under load. Remove `common.mustCall()` wrapper from the
    listener. Move the test to `parallel` because it now works under load.
    Make similar change to http test to keep them in synch even though it is
    much harder to trigger the race in http.
    
    PR-URL: #14134
    Fixes: #14133
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    07a5b15 View commit details
    Browse the repository at this point in the history
  68. buffer: remove MAX_SAFE_INTEGER check on length

    MAX_SAFE_INTEGER is millions of times larger than the largest buffer
    allowed in Node.js. There is no need to squash the length down to
    MAX_SAFE_INTEGER. Removing that check results in a small but
    statistically significant increase for Buffer.from() operating on
    ArrayBuffers in some situations.
    
    PR-URL: #14131
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    14dbecb View commit details
    Browse the repository at this point in the history
  69. querystring: fix up lastPos usage

    Use lastPos ONLY for tracking what has been .slice()'d, never as an
    indication of if key/value has been seen, since lastPos is updated on
    seeing + as well.
    
    PR-URL: #14151
    Fixes: #13773
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    TimothyGu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    6ddc0d6 View commit details
    Browse the repository at this point in the history
  70. doc: add missing space

    PR-URL: #14181
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    TimothyGu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    33003bf View commit details
    Browse the repository at this point in the history
  71. test: reduce test-benchmark-net run duration

    Set configuration option to reduce combinations of benchmark settings
    tried in test, reducing execution time by about 50%.
    
    PR-URL: #14183
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    6c23e0a View commit details
    Browse the repository at this point in the history
  72. test: reduce run time for test-benchmark-http

    Specify more configuration options to reduce run time by about a third.
    
    PR-URL: #14180
    Fixes: #14177
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f23d533 View commit details
    Browse the repository at this point in the history
  73. test: reduce run time for test-benchmark-crypto

    Specify options to reduce combinations of benchmarks run during testing.
    This reduces the run time by approximately 30% and will hopefully allow
    Raspberry Pi 1 devices in CI to finish the test.
    
    PR-URL: #14189
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7827aa9 View commit details
    Browse the repository at this point in the history
  74. n-api: Implement stricter wrapping

    Use a stronger criterion to identify objects in the prototype chain that store
    pointers to native data that were added by previous calls to `napi_wrap()`.
    
    Whereas the old criterion for identifying `napi_wrap()`-injected prototype
    chain objects was to consider an object with an internal field
    count of 1 to be such an object, the new criterion is to consider an object
    with an internal field count of 2 such that the second field holds a
    `v8::External` which itself contains a pointer to a global static string unique
    to N-API to be a `napi_wrap()`-injected prototype chain object.
    
    This greatly reduces the possibility of returning a pointer that was not
    previously added with `napi_wrap()`, and it allows us to recognize that an
    object has already undergone `napi_wrap()` and we can thus prevent a chain of
    wrappers only the first of which is accessible from appearing in the prototype
    chain, as would be the result of multiple calls to `napi_wrap()` using the same
    object.
    
    PR-URL: #13872
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Gabriel Schulhof authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    2a3a6f1 View commit details
    Browse the repository at this point in the history
  75. n-api: wrap test macros in do/while

    PR-URL: #14095
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    kfarnung authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e5e8291 View commit details
    Browse the repository at this point in the history
  76. test,async_hooks: skip whether TTY is available

    If TTY isn't available then the test will always fail. Also use the
    already available process.stdin instead of opening another ReadStream.
    
    PR-URL: #13991
    Fixes: #13984
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    trevnorris authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    fc74f0e View commit details
    Browse the repository at this point in the history
  77. test,async_hooks: match test-ttywrap.readstream

    Match changes made to test-ttywrap.readstream for consistency.
    
    PR-URL: #13991
    Fixes: #13984
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    trevnorris authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    292ad30 View commit details
    Browse the repository at this point in the history
  78. doc: prefix of the stacktrace in errors.md

    PR-URL: #14150
    Fixes: #5675
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Kunal Pathak <[email protected]>
    romanshoryn authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1a27ffd View commit details
    Browse the repository at this point in the history
  79. child_process: refactor normalizeSpawnArguments()

    Code is not in hot path. Refactor ternary to be more readable if/else
    block that mirrors analogous code elsewhere in the function. Change
    string concatenation to template literal.
    
    PR-URL: #14149
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    fe3833e View commit details
    Browse the repository at this point in the history
  80. tools: update ESLint to 4.2.0

    ESLint 4.2.0 contains a fix for a bug that is blocking us from moving to
    the non-legacy stricter indentation linting. Update to 4.2.0 to remove
    the blocking issue.
    
    PR-URL: #14155
    Ref: eslint/eslint#8882
    Ref: eslint/eslint#8885
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c8f2d26 View commit details
    Browse the repository at this point in the history
  81. tools: increase test timeouts

    At least temporarily until snapshots are restored, increase timeout for
    tests. Tests that spawn many processes are timing out across many
    platforms on CI.
    
    PR-URL: #14197
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    43c614e View commit details
    Browse the repository at this point in the history
  82. async_hooks: move restoreTmpHooks call to init

    This fixes an error that could occure by nesting async_hooks calls
    
    PR-URL: #14054
    Ref: #13755 (comment)
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    BridgeAR authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3388e31 View commit details
    Browse the repository at this point in the history
  83. async_hooks: fix nested hooks mutation

    In some cases restoreTmpHooks is called too early, this causes
    active_hooks_array to change during execution of the init hooks.
    
    PR-URL: #14143
    Ref: #14054 (comment)
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    90a3b86 View commit details
    Browse the repository at this point in the history
  84. async_hooks: rename internal emit functions

    There are two categories of emit functions in async_hooks, those used by
    c++ (native) and those used by JavaScript (script). Previously these
    were named N for native and S for script. Finally, there was an odd case
    where emitInitN was called just init. This makes it more explicit by
    using the names emitInitNative and emitInitScript. The other emit
    functions are also renamed.
    
    PR-URL: #14152
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5436111 View commit details
    Browse the repository at this point in the history
  85. async_hooks: make AsyncResource match emitInit

    AsyncResource previously called emitInitNative. Since AsyncResource is
    just an abstraction on top of the emitEventScript functions, it should
    call emitInitScript instead.
    
    PR-URL: #14152
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Trevor Norris <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    AndreasMadsen authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7f87876 View commit details
    Browse the repository at this point in the history
  86. deps: upgrade libuv to 1.13.1

    PR-URL: #14117
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a3dc3f7 View commit details
    Browse the repository at this point in the history
  87. test: handle missing V8 tests in n-api test

    The N-API test testInstanceOf.js relies on several V8 test files
    which may not exist in downloadable archives. If the files are
    missing, this commit causes a warning to be emitted rather than
    failing the test.
    
    Refs: #14113
    Fixes: #13344
    PR-URL: #14123
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3ffd938 View commit details
    Browse the repository at this point in the history
  88. test: decrease duration of test-cli-syntax

    Previously, test/parallel/test-cli-syntax.js was spawning a lot of child
    processes, but using spawnSync, which made the test run each child
    process serially. This switches most of the test cases to use exec so
    that they are asynchronous. Locally, the test went from > 5 seconds to
    under 2 seconds.
    
    PR-URL: #14187
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    evanlucas authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e726f52 View commit details
    Browse the repository at this point in the history
  89. n-api: add napi_fatal_error API

    PR-URL: #13971
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jason Ginchereau <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    kfarnung authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d001c36 View commit details
    Browse the repository at this point in the history
  90. build: allow enabling the --trace-maps flag in V8

    This can be useful for tracing map creation.
    
    Backport-PR-URL: #14344
    Backport-Reviewed-By: Ben Noordhuis <[email protected]>
    Backport-Reviewed-By: Refael Ackermann <[email protected]>
    PR-URL: #14018
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    evanlucas authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    dfff625 View commit details
    Browse the repository at this point in the history
  91. build: run test-hash-seed at the end of test-v8

    The v8 and test-hash-seed targets cannot be run in parallel because they
    need different copies of the deps/v8 directory.
    
    Ref: #14004 (comment)
    PR-URL: #14219
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    targos authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8243ddc View commit details
    Browse the repository at this point in the history
  92. tools: update package.json engine field

    PR-URL: #14165
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    strugee authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    014f514 View commit details
    Browse the repository at this point in the history
  93. doc: add notice about useGlobal option in repl docs

    PR-URL: #13866
    Fixes: #13827
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    starkwang authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    361c35e View commit details
    Browse the repository at this point in the history
  94. doc: update umask for clarity

    PR-URL: #14170
    Fixes: #14169
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    jsumners authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    b344687 View commit details
    Browse the repository at this point in the history
  95. benchmark: fix typo in inspect-proxy

    PR-URL: #14237
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e28c9e8 View commit details
    Browse the repository at this point in the history
  96. util: remove redundant declaration

    This module is already required in the top scope (Line 3).
    
    PR-URL: #14199
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8490176 View commit details
    Browse the repository at this point in the history
  97. test: http outgoing _renderHeaders

    PR-URL: #13981
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    peteyycz authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7a654eb View commit details
    Browse the repository at this point in the history
  98. doc: fixes in cluster.md

    * Capitalization and punctuation.
    
    * `setupMaster` contained info about `settings` which where incomplete.
    
    PR-URL: #14140
    Fixes: #8495
    Fixes: #12941
    Refs: #9659
    Refs: #13761
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mutantcornholio authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    b45e255 View commit details
    Browse the repository at this point in the history
  99. test: reduce offset in test-inspector-port-cluster

    10 ports for each test-case is too much.
    Not enough ports for new test cases, considering ~100 ports per file.
    
    PR-URL: #14140
    Fixes: #8495
    Fixes: #12941
    Refs: #9659
    Refs: #13761
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mutantcornholio authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    06ff0fc View commit details
    Browse the repository at this point in the history
  100. cluster: overriding inspector port

    Added an option to override inspector port for workers using
    `settings.inspectPort` will override default port incrementing behavior.
    Also, using this option allows to set 0 port for the whole cluster.
    
    PR-URL: #14140
    Fixes: #8495
    Fixes: #12941
    Refs: #9659
    Refs: #13761
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    mutantcornholio authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    05707a9 View commit details
    Browse the repository at this point in the history
  101. test: make common.PIPE process unique

    * includes a tiny bit of refactoring in adjacent lines.
    * fixes 1 test and 1 benchmark that depended on PIPE being constant.
    
    PR-URL: #14168
    Fixes: #14128
    Reviewed-By: James M Snell <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7163e40 View commit details
    Browse the repository at this point in the history
  102. test: disable MultipleEnvironmentsPerIsolate

    This is a temporary measure until the issue is fixed.
    
    PR-URL: #14246
    Refs: #14206
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    refack authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d2e0f70 View commit details
    Browse the repository at this point in the history
  103. test: fix flaky test-net-can-reset-timeout

    Use `.once()` rather than `.on()` for timeout listener.
    
    Add comment with URL for issue explaining the purpose of the test. (h/t
    refack)
    
    PR-URL: #14257
    Fixes: #14241
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    b2ac926 View commit details
    Browse the repository at this point in the history
  104. test: check complete error message

    In test-stream-writable-change-default-encoding, use a regular
    expression to match the complete error message.
    
    PR-URL: #14264
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Bryan English <[email protected]>
    fraserxu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7eafd96 View commit details
    Browse the repository at this point in the history
  105. test: replace string concat with template literal

    Replace the string concat at test/addons-napi/test_reference/test.js.
    
    PR-URL: #14269
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    4garfield authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    253e4d0 View commit details
    Browse the repository at this point in the history
  106. test: use regular expression to match error msg

    PR-URL: #14265
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Amunu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    cb92035 View commit details
    Browse the repository at this point in the history
  107. test: use regluar expression in vm test

    update test/parallel/test-vm-create-context-arg.js
    in line 27 to change `TypeError` to the regular expression
    with the `/^TypeError: sandbox must be an object$/`.
    
    PR-URL: #14266
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    AkiraXue authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8756686 View commit details
    Browse the repository at this point in the history
  108. test: use regexp to confir error message

    In test/parallel/test-stream-writable-null.js, use a regular expression
    to validate error message in assert.throws() call.
    
    PR-URL: #14268
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    bangwu authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1205b12 View commit details
    Browse the repository at this point in the history
  109. util: delete unused argument 'depth'

    In lib/util.js, Line 1056, there is a 'depth' argument that is unused
    for 'process.versions[exports.inspect.custom]', so delete it.
    
    PR-URL: #14267
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    kadoufall authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7945deb View commit details
    Browse the repository at this point in the history
  110. test: simplify string concatenation

    Replace string concatenation with template literals.
    Updated `test/parallel/test-http-multi-line-headers.js`
    
    PR-URL: #14278
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: David Cai <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    jiangplus authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    36ef7e0 View commit details
    Browse the repository at this point in the history
  111. test: use template literal for string concat

    In test/parallel/test-repl-persistent-history.js, replace string
    concatenation with a template literal.
    
    PR-URL: #14288
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    whatwewant authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    b0946d0 View commit details
    Browse the repository at this point in the history
  112. test: use template literals as appropriate

    Replace string concatenation with template string literals in
    test-graph.signal.js.
    
    PR-URL: #14289
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    blade254353074 authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7c74402 View commit details
    Browse the repository at this point in the history
  113. test: replace string concatenation with template

    Replace string concatenation with template literals in
    test/async-hooks/verify-graph.js.
    
    PR-URL: #14279
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    miccycn authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d02f2b9 View commit details
    Browse the repository at this point in the history
  114. test: improve regexps for error checking

    test/parallel/test-catpto-random.js contains an object called
    errorMesssage that contains regular expressions.They are only partially
    matching regular expressions. Make them match the entire error message.
    
    PR-URL: #14271
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    hacke2 authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    cb1c134 View commit details
    Browse the repository at this point in the history
  115. test: use template literals in test-writewrap

    Use template literals instead of string concatenation in
    test/async-hooks/test-writewrap.js.
    
    PR-URL: #14292
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    vercentdeng authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    bf55439 View commit details
    Browse the repository at this point in the history
  116. test: change style in test-cli-bad-options

    Replace string concatenation in test/parallel/test-cli-bad-options.js
    with template literal. Adjust argument layout for readability.
    
    PR-URL: #14274
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    boydfd authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5d06d0b View commit details
    Browse the repository at this point in the history
  117. test: use regex error checks in test-util-format

    Replace constructor with regular expression for second argument
    to assert.throws() in test-util-format.
    
    PR-URL: #14299
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    superwoods authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7fc04ae View commit details
    Browse the repository at this point in the history
  118. url: do not use HandleScope in ToObject

    It is not needed / invalidates the returned value unlike EscapableHandleScope
    
    PR-URL: #14096
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bmeck authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    fd17f08 View commit details
    Browse the repository at this point in the history
  119. deps: upgrade npm to 5.3.0

    PR-URL: #14235
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    zkat authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    900c2b4 View commit details
    Browse the repository at this point in the history
  120. build: add npx to installers

    PR-URL: #14235
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    zkat authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    32f02ab View commit details
    Browse the repository at this point in the history
  121. deps: hotfix to bump npx version

    This includes a critical fix to get npx working on Windows
    
    PR-URL: #14235
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    zkat authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    51da7a1 View commit details
    Browse the repository at this point in the history
  122. doc: move LTS README link to increase prominence

    PR-URL: #14259
    Fixes: #10718
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    gibfahn authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    abd901d View commit details
    Browse the repository at this point in the history
  123. http: OutgoingMessage change writable after end

    When an OutgoingMessage is closed (for example, using the `end`
    method), its 'writable' property should be changed to false - since it
    is not writable anymore. The 'writable' property should have the
    opposite value of the 'finished' property.
    
    PR-URL: #14024
    Fixes: #14023
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Kasher authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    442aa9e View commit details
    Browse the repository at this point in the history
  124. gyp: implement LD/LDXX for ninja and FIPS

    The ability to set the link rule is used for FIPS, and needs to set
    both the `ld =` and `ldxx =` variables in the ninja build file to link
    c++ (node) and c (openssl-cli, etc.) executables.
    
    URL: #14227
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    sam-github authored and Fishrock123 committed Jul 19, 2017
    1 Configuration menu
    Copy the full SHA
    2b86e6b View commit details
    Browse the repository at this point in the history
  125. build: prevent VsDevCmd.bat from changing cwd

    VsDevCmd.bat changes the current working directory to
    "%USERPROFILE%\Source" if it exists. Setting VSCMD_START_DIR overrides
    this behavior.
    
    PR-URL: #14303
    Fixes: #14300
    Refs: https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    seishun authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5ed2b79 View commit details
    Browse the repository at this point in the history
  126. src: remove extra heap allocations in CipherBase

    Don't allocate + copy + free; allocate and fill in place, then hand off
    the pointer to Buffer::New().
    
    Avoids unnecessary heap allocations in the following methods:
    
    - crypto.Cipher#final()
    - crypto.Cipher#update()
    - crypto.Cipheriv#final()
    - crypto.Cipheriv#update()
    - crypto.Decipher#final()
    - crypto.Decipher#update()
    - crypto.Decipheriv#final()
    - crypto.Decipheriv#update()
    - crypto.privateDecrypt()
    - crypto.privateEncrypt()
    - crypto.publicDecrypt()
    - crypto.publicEncrypt()
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5f57b89 View commit details
    Browse the repository at this point in the history
  127. src: remove unneeded const_cast

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    63a640c View commit details
    Browse the repository at this point in the history
  128. src: avoid heap allocation in sign.final()

    Put the 8 kB initial buffer on the stack first and don't copy it to the
    heap until its exact size is known (which is normally much smaller.)
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3d4692b View commit details
    Browse the repository at this point in the history
  129. src: don't heap allocate GCM cipher auth tag

    Fix a memory leak by removing the heap allocation altogether.
    
    Fixes: #13917
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c84d0cd View commit details
    Browse the repository at this point in the history
  130. src: remove superfluous cipher_ data member

    The EVP_CIPHER can be reconstructed from the EVP_CIPHER_CTX instance,
    no need to store it separately.
    
    This brought to light the somewhat dubious practice of accessing the
    EVP_CIPHER after the EVP_CIPHER_CTX instance had been destroyed.
    
    It's mostly harmless due to the static nature of built-in EVP_CIPHER
    instances but it segfaults when the cipher is provided by an ENGINE
    and the ENGINE is unloaded because its reference count drops to zero.
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8826617 View commit details
    Browse the repository at this point in the history
  131. src: remove unused Local

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e59858b View commit details
    Browse the repository at this point in the history
  132. src: make CipherBase::kind_ const

    The cipher kind doesn't change over the lifetime of the cipher so make
    it const.
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    fc7d8c0 View commit details
    Browse the repository at this point in the history
  133. src: remove extra heap allocation in GetSession()

    Don't allocate + copy + free; allocate and fill in place, then hand off
    the pointer to Buffer::New().
    
    Avoids unnecessary heap allocations in the following methods:
    
    - crypto.CryptoStream#getSession()
    - tls.TLSSocket#getSession()
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    23d9e7e View commit details
    Browse the repository at this point in the history
  134. src: avoid heap allocation in hmac.digest()

    Add a test that ensures the second call to .digest() returns an empty
    HMAC, like it did before.  No comment on whether that is the right
    behavior or not.
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    814f4f1 View commit details
    Browse the repository at this point in the history
  135. src: remove extra heap allocations in DH functions

    Replace allocate + Encode() + free patterns by calls to Malloc +
    the Buffer::New() overload that takes ownership of the pointer.
    Avoids unnecessary heap allocations and copying around of data.
    
    DRY the accessor functions for the prime, generator, public key and
    private key properties; deletes about 40 lines of quadruplicated code.
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    27efc1a View commit details
    Browse the repository at this point in the history
  136. src: refactor PBKDF2Request

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3286f6a View commit details
    Browse the repository at this point in the history
  137. src: make array arg length compile-time checkable

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    36e1351 View commit details
    Browse the repository at this point in the history
  138. src: avoid heap allocation in crypto.pbkdf2()

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    2d2d759 View commit details
    Browse the repository at this point in the history
  139. src: remove PBKDF2Request::release()

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7d44590 View commit details
    Browse the repository at this point in the history
  140. src: simplify PBKDF2Request

    This also renames a misnamed variable `error_` to `success_`.
    
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    5caaf83 View commit details
    Browse the repository at this point in the history
  141. src: guard against double free in randomBytes()

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    62be8ef View commit details
    Browse the repository at this point in the history
  142. src: reduce allocations in exportPublicKey()

    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    83234db View commit details
    Browse the repository at this point in the history
  143. src: fix memory leak in DH key setters

    Fix a memory leak in dh.setPublicKey() and dh.setPrivateKey() where the
    old keys weren't freed.
    
    Fixes: #8377
    PR-URL: #14122
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e3ed425 View commit details
    Browse the repository at this point in the history
  144. doc: add guidance on testing new errors

    PR-URL: #14207
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    48c6dbd View commit details
    Browse the repository at this point in the history
  145. lib: update indentation of ternaries

    In preparation for stricter indentation linting and to increase code
    clarity, update indentation for ternaries in lib.
    
    PR-URL: #14247
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    8010b21 View commit details
    Browse the repository at this point in the history
  146. test: check error with regex in test-signal-safety

    Change TypeError to a regular expression in assert.throws() in
    test/parallel/test-signal-safety.js.
    
    PR-URL: #14285
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    shaman2009 authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e650fe0 View commit details
    Browse the repository at this point in the history
  147. test: use regex error check in test-crypto-random

    Replace constructor in assert.throws() to a regular expression to check
    the error thrown in a test in test-crypto-random.
    
    PR-URL: #14273
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    f48vj authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    7936f91 View commit details
    Browse the repository at this point in the history
  148. test: add test for http outgoing internal headers

    PR-URL: #13980
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    gergelyke authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    740ab3d View commit details
    Browse the repository at this point in the history
  149. doc: fix inspectPort documentation in cluster.md

    - Add missing `changes:` entry
    - Use full sentences
    - Use proper indentation
    
    Ref: #14140
    PR-URL: #14349
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    64867a9 View commit details
    Browse the repository at this point in the history
  150. 2017-07-19, Version 8.2.0 (Current)

    Big thanks to @addaleax who prepared the vast majority of this release.
    
    Notable changes:
    
    * **Async Hooks**
      * Multiple improvements to Promise support in `async_hooks` have been made.
    
    * **Build**
      * The compiler version requirement to build Node with GCC has been raised to
        GCC 4.9.4.
        [[`820b011ed6`](820b011ed6)]
        [#13466](#13466)
    
    * **Cluster**
      * Users now have more fine-grained control over the inspector port used by
        individual cluster workers. Previously, cluster workers would simply
        increment from the master's debug port.
        [[`dfc46e262a`](dfc46e262a)]
        [#14140](#14140)
    
    * **DNS**
      * The server used for DNS queries can now use a custom port.
        [[`ebe7bb29aa`](ebe7bb29aa)]
        [#13723](#13723)
      * Support for `dns.resolveAny()` has been added.
        [[`6e30e2558e`](6e30e2558e)]
        [#13137](#13137)
    
    * **npm**
      * The `npm` CLI has been updated to version 5.3.0. In particular, it now comes
        with the `npx` binary, which is also shipped with Node.
        [[`dc3f6b9ac1`](dc3f6b9ac1)]
        [#14235](#14235)
      * `npm` Changelogs:
          - [v5.0.4](https://github.com/npm/npm/releases/tag/v5.0.4)
          - [v5.1.0](https://github.com/npm/npm/releases/tag/v5.1.0)
          - [v5.2.0](https://github.com/npm/npm/releases/tag/v5.2.0)
          - [v5.3.0](https://github.com/npm/npm/releases/tag/v5.3.0)
    
    PR-URL: #13744
    Fishrock123 committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    eb66efd View commit details
    Browse the repository at this point in the history