Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v10.7.0 proposal #21851

Merged
merged 116 commits into from Jul 18, 2018
Merged

v10.7.0 proposal #21851

merged 116 commits into from Jul 18, 2018

Commits on Jul 4, 2018

  1. test: add test for missing dynamic instantiate hook

    PR-URL: #21506
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    targos committed Jul 4, 2018
    Copy the full SHA
    9cd5c0e View commit details
    Browse the repository at this point in the history
  2. zlib: fix memory leak for unused zlib instances

    An oversight in an earlier commit led to a memory leak
    in the untypical situation that zlib instances are created
    but never used, because zlib handles no longer started
    out their life as weak handles.
    
    The bug was introduced in bd20110.
    
    Refs: #20455
    
    PR-URL: #21607
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    addaleax authored and targos committed Jul 4, 2018
    Copy the full SHA
    96dae83 View commit details
    Browse the repository at this point in the history
  3. src: add context-aware init macro and doc

    Introduces macros `NODE_MODULE_INITIALIZER` which expands to the name
    of the special symbol that process.dlopen() will look for to initialize
    an addon, and `NODE_MODULE_INIT()` which creates the boilerplate for
    a context-aware module which can be loaded multiple times via the
    special symbol mechanism.
    
    Additionally, provides an example of using the new macro to construct
    an addon which stores per-addon-instance data in a heap-allocated
    structure that gets passed to each binding, rather than in a collection
    of global static variables.
    
    Re: #21291 (comment)
    PR-URL: #21318
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Gabriel Schulhof authored and targos committed Jul 4, 2018
    Copy the full SHA
    3a627c8 View commit details
    Browse the repository at this point in the history
  4. messaging: use actual DOMException for DataCloneError

    PR-URL: #21540
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    TimothyGu authored and targos committed Jul 4, 2018
    Copy the full SHA
    221c8bd View commit details
    Browse the repository at this point in the history
  5. messaging: fix edge cases with transferring ports

    Currently, transferring the port on which postMessage is called causes a
    segmentation fault, and transferring the target port causes a subsequent
    port.onmessage setting to throw, or a deadlock if onmessage is set
    before the postMessage. Fix both of these behaviors and align the
    methods more closely with the normative definitions in the HTML
    Standard.
    
    Also, per spec postMessage must not throw just because the ports are
    disentangled. Implement that behavior.
    
    PR-URL: #21540
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    TimothyGu authored and targos committed Jul 4, 2018
    Copy the full SHA
    ed774b7 View commit details
    Browse the repository at this point in the history
  6. test: check type for Worker filename argument

    Add test to check type for first argument of Worker to increase
    coverage.
    
    PR-URL: #21620
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Masashi Hirano authored and targos committed Jul 4, 2018
    Copy the full SHA
    fe9888a View commit details
    Browse the repository at this point in the history
  7. test: fix args passed to strictEqual

    The third argument passed to asert.strictEqual() displays the message
    passed as third argument and does not report the difference between
    actual and expected if the test is failing.
    Hence, the third argument has been removed.
    
    PR-URL: #21584
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    aitchkhan authored and targos committed Jul 4, 2018
    Copy the full SHA
    25dac95 View commit details
    Browse the repository at this point in the history
  8. doc: unify spelling of backpressure

    PR-URL: #21630
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    watson authored and targos committed Jul 4, 2018
    Copy the full SHA
    6f8ebc0 View commit details
    Browse the repository at this point in the history
  9. fs: support pseudofiles in promises.readFile

    PR-URL: #21497
    Fixes: #21331
    Refs: http://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html
    Refs: https://groups.google.com/forum/#!topic/nodejs-dev/rxZ_RoH1Gn0
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    TimothyGu authored and targos committed Jul 4, 2018
    Copy the full SHA
    4fa7150 View commit details
    Browse the repository at this point in the history
  10. test: replace third argument with comment in strict equals

    PR-URL: #21603
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    developerdavo authored and targos committed Jul 4, 2018
    Copy the full SHA
    47b10e3 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2018

  1. console: implement timeLog method

    Refs: whatwg/console#138
    
    PR-URL: #21312
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    targos committed Jul 6, 2018
    Copy the full SHA
    f3c397c View commit details
    Browse the repository at this point in the history
  2. src: remove using directives from spawn_sync.h

    I noticed that there were a few using declarations what were unused and
    instead of just removing them, this commit removes all of them and uses
    qualified names instead since they are in a header.
    
    PR-URL: #21634
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    danbev authored and targos committed Jul 6, 2018
    Copy the full SHA
    ceec23e View commit details
    Browse the repository at this point in the history
  3. http2: pass incoming set-cookie header as array

    Incoming set-cookie headers should be passed to user as array like in
    http module.
    
    Besides improving compatibility between http and http2 it avoids the
    need to check if the type is an array or not in user code.
    
    PR-URL: #21360
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Flarna authored and targos committed Jul 6, 2018
    Copy the full SHA
    c88af23 View commit details
    Browse the repository at this point in the history
  4. test: remove unnecessary string literals

    PR-URL: #21638
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Jacek Pospychała authored and targos committed Jul 6, 2018
    Copy the full SHA
    021dd54 View commit details
    Browse the repository at this point in the history
  5. n-api: restrict exports by version

    * Move `napi_get_uv_event_loop` into the `NAPI_VERSION >= 2` section
    * Move `napi_open_callback_scope`, `napi_close_callback_scope`,
      `napi_fatal_exception`, `napi_add_env_cleanup_hook`, and
      `napi_remove_env_cleanup_hook` into the `NAPI_VERSION >= 3` section
    * Added a missing `added` property to `napi_get_uv_event_loop` in the
      docs
    * Added a `napiVersion` property to the docs and updated the parser and
      generator to use it.
    * Added usage documentation
    
    PR-URL: #19962
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    kfarnung authored and targos committed Jul 6, 2018
    Copy the full SHA
    cec166e View commit details
    Browse the repository at this point in the history
  6. deps: cherry-pick 477df06 from upstream v8

    Original commit message:
    
        [API] Expand BigInt API
    
        Provide a more complete BigInt API.
    
        Bug: v8:7712
        Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
        Change-Id: Ic8562d616f3125deabdf8b52c7019b191bef0e07
        Reviewed-on: chromium-review.googlesource.com/1101198
        Commit-Queue: Yang Guo <yangguo@chromium.org>
        Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
        Reviewed-by: Yang Guo <yangguo@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#54122}
    
    PR-URL: #21644
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    devsnek authored and targos committed Jul 6, 2018
    Copy the full SHA
    a5233c7 View commit details
    Browse the repository at this point in the history
  7. doc: improve guide text for CI runs

    Make the text about CI runs in the COLLABORATOR_GUIDE more concise. Add
    information about Resume Build which should generally be preferred over
    Rebuild.
    
    PR-URL: #21645
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and targos committed Jul 6, 2018
    Copy the full SHA
    f7aa22a View commit details
    Browse the repository at this point in the history
  8. benchmark: add n-api function args benchmark

    This benchmark suite is added to measure the performance of n-api
    function call with various type/number of arguments. The cases in
    this suite are carefully selected to efficiently show the performance
    trend.
    
    PR-URL: #21555
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    kenny-y authored and targos committed Jul 6, 2018
    Copy the full SHA
    9776f1c View commit details
    Browse the repository at this point in the history
  9. doc: fix doc for napi_create_function

    Merge the two duplicate entries for `napi_create_function()`.
    
    Fixes: #21606
    PR-URL: #21627
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Gabriel Schulhof authored and targos committed Jul 6, 2018
    Copy the full SHA
    c8d5bab View commit details
    Browse the repository at this point in the history
  10. doc: remove "note that" from fs doc

    Remove "note that" from the fs documentation, along with other minor
    nearby improvements.
    
    Before:
    
        Note that some characters are obscured by Strong Bad's head.
    
    After:
    
        Some characters are obscured by Strong Bad's head.
    
    PR-URL: #21646
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Trott authored and targos committed Jul 6, 2018
    Copy the full SHA
    04eed23 View commit details
    Browse the repository at this point in the history
  11. tools: lint doc code examples in strict mode

    PR-URL: #21615
    Refs: https://github.com/eslint/eslint-plugin-markdown#strict
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    vsemozhetbyt authored and targos committed Jul 6, 2018
    Copy the full SHA
    214c608 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2018

  1. doc: add links to inline HTML table

    Links in crypto.md table have been autolinking, but correct
    Markdown processing will not autolink in block elements like tables.
    Upcoming marked 0.4.0 will not autolink in this instance, so add the
    links as anchor elements.
    
    PR-URL: #21678
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and targos committed Jul 8, 2018
    Copy the full SHA
    034fe19 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2018

  1. test: fix pummel/test-net-connect-memleak

    A loop that generates a long array is resulting in a RangeError. Moving
    to Array.prototype.fill() along with the ** operator instead of using a
    loop fixes the issue.
    
    PR-URL: #21658
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Trott authored and targos committed Jul 9, 2018
    Copy the full SHA
    24f649c View commit details
    Browse the repository at this point in the history
  2. doc: add codebytere as collaborator

    PR-URL: #21700
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Bryan English <bryan@bryanenglish.com>
    codebytere authored and targos committed Jul 9, 2018
    Copy the full SHA
    9716793 View commit details
    Browse the repository at this point in the history
  3. doc: remove _Node.js style callback_

    We refer to them only as _error-first callbacks_ in our docs. We don't
    call them _Node.js style callbacks_ so let's take this opporutnity to
    keep things a bit more concise
    
    PR-URL: #21701
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Trott authored and targos committed Jul 9, 2018
    Copy the full SHA
    1044baf View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2018

  1. test,util: add missing tests and conditions

    1) Add missing unit tests by `ucs-2` in different kinds of cases.
    2) Add missing unit tests by `usc-2` in different kinds of cases.
    3) Fix a bug:We cannot find `ucs-2` in `case 5`'s `if` condition after
    `toLowerCase()`
    
    PR-URL: #21455
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    MaleDong authored and targos committed Jul 10, 2018
    Copy the full SHA
    dc84858 View commit details
    Browse the repository at this point in the history
  2. n-api: create functions directly

    Avoid using `v8::FunctionTemplate::New()` when using
    `v8::Function::New()` suffices. This ensures that individual functions
    can be gc-ed and that functions can be created dynamically without
    running out of memory.
    
    PR-URL: #21688
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Yang Guo <yangguo@chromium.org>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Gabriel Schulhof authored and targos committed Jul 10, 2018
    Copy the full SHA
    109c599 View commit details
    Browse the repository at this point in the history
  3. n-api: remove experimental gate from status codes

    Re: #21226 (comment)
    PR-URL: #21680
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Gabriel Schulhof authored and targos committed Jul 10, 2018
    Copy the full SHA
    b8ba003 View commit details
    Browse the repository at this point in the history
  4. doc: improve documentation of fs sync methods

    Add links to async methods and make wording consistent.
    
    PR-URL: #21243
    Refs: #21197
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Jamie Davis <davisjam@vt.edu>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    iwko authored and targos committed Jul 10, 2018
    Copy the full SHA
    cd77d87 View commit details
    Browse the repository at this point in the history
  5. test: fix test-tls-connect-memleak

    A loop that generates a long array is resulting in a RangeError. Moving
    to Array.prototype.fill() along with the ** operator instead of using a
    loop fixes the issue.
    
    PR-URL: #21681
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Trott authored and targos committed Jul 10, 2018
    Copy the full SHA
    194d195 View commit details
    Browse the repository at this point in the history
  6. test: swap arguments in strictEqual()

    This commit also comments the third argument
    
    PR-URL: #21660
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    sohailrajdev97 authored and targos committed Jul 10, 2018
    Copy the full SHA
    eda7fff View commit details
    Browse the repository at this point in the history
  7. test: fix parallel/test-tls-env-extra-ca.js

    fix args in final assert.strictEqual() call
    
    PR-URL: #21647
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Niicck authored and targos committed Jul 10, 2018
    Copy the full SHA
    11e9b4e View commit details
    Browse the repository at this point in the history
  8. lib: consolidate redundant require() calls

    PR-URL: #21699
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    cjihrig authored and targos committed Jul 10, 2018
    Copy the full SHA
    92d7921 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2018

  1. doc: update changelog with 9.x EOL

    This removes unsupported versions from the table, as those might confuse
    people, execially given the
      > Release versions displayed in **bold** text represent the most
      > recent actively supported release.
    remark below.
    
    It was inconsistent to keep some of the EOL entries in the table while
    removing others (v5.x, v7.x) -- this commit takes care of that.
    
    Instead, release status is hinted in the branch list above, highlighting
    two main branches -- Current and Active LTS.
    
    Also update the link to the Release repo.
    
    Refs: nodejs/Release#351
    PR-URL: #21612
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    ChALkeR authored and targos committed Jul 12, 2018
    Copy the full SHA
    6e1917a View commit details
    Browse the repository at this point in the history
  2. doc: fix http2stream.pushStream error doc

    The old error code `ERR_HTTP2_STREAM_CLOSED` was removed in commit
    0babd18 (pull request #17406), and the
    testcase for http2stream.pushStream was changed accordingly, but the
    documentation change was overlooked.
    
    This commit fixes it and aligns the documentation with the testcase.
    
    This is a part of the fixes hinted by #21470, which includes some tests
    for error codes usage and documentation and enforces a stricter format.
    
    Refs: #21470
    Refs: #17406
    PR-URL: #21487
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    ChALkeR authored and targos committed Jul 12, 2018
    Copy the full SHA
    51db88b View commit details
    Browse the repository at this point in the history
  3. fs: fix fsPromises.lchmod error on non-Mac

    On non-macOS, fsPromises.lchmod throws AssertionError.
    Expected behavior is `Error [ERR_METHOD_NOT_IMPLEMENTED]`.
    `ERR_METHOD_NOT_IMPLEMENTED()` requires argument, but it wasn't set.
    
    Fixes `ERR_METHOD_NOT_IMPLEMENTED()` to
    `ERR_METHOD_NOT_IMPLEMENTED('lchmod()')`.
    
    PR-URL: #21435
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Masashi Hirano authored and targos committed Jul 12, 2018
    Copy the full SHA
    b758006 View commit details
    Browse the repository at this point in the history
  4. http2: order declarations in core.js

    Order declarations:
    
    * public modules in alphabetical order
    * internal modules in alphabetical order
    * process.binding() calls in alphabetical order
    * exports in alphabetical order
    
    PR-URL: #21689
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and targos committed Jul 12, 2018
    Copy the full SHA
    07160cd View commit details
    Browse the repository at this point in the history
  5. zlib: track memory allocated by zlib

    Provide a custom memory allocator for zlib, and track
    memory allocated by the library with it.
    
    Right now this “only” makes reported external memory
    usage (much) more accurate and protects against zlib
    memory leaks, but it generally will enable us to give
    more accurate memory usage statistics for zlib.
    
    PR-URL: #21608
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jul 12, 2018
    Copy the full SHA
    dae7130 View commit details
    Browse the repository at this point in the history
  6. deps: icu 62.1 bump (Unicode 11, CLDR 33.1)

    - Full release notes: http://site.icu-project.org/download/62
    
    Fixes: #21452
    PR-URL: #21728
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    srl295 authored and targos committed Jul 12, 2018
    Copy the full SHA
    122ae24 View commit details
    Browse the repository at this point in the history
  7. workers: fix invalid exit code in parent upon uncaught exception

    Now worker.on('exit') reports correct exit code (1) if worker has exited
    with uncaught exception.
    
    Fixes: #21707
    
    PR-URL: #21713
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    lundibundi authored and targos committed Jul 12, 2018
    Copy the full SHA
    25fef3d View commit details
    Browse the repository at this point in the history
  8. doc: fix HTTP res 'finish' description

    PR-URL: #21670
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tadjik1 authored and targos committed Jul 12, 2018
    Copy the full SHA
    cd6601b View commit details
    Browse the repository at this point in the history
  9. doc: fix module.children description

    Updates the module.children description in the docs to match current
    functionality in that it will only contain the modules required for the
    first time by this module.
    
    Fixes: #9371
    
    PR-URL: #21672
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    transitive-bullshit authored and targos committed Jul 12, 2018
    Copy the full SHA
    577d24b View commit details
    Browse the repository at this point in the history
  10. test: add test for dns.promises.resolve .

    PR-URL: #21691
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    kakts authored and targos committed Jul 12, 2018
    Copy the full SHA
    f386c0a View commit details
    Browse the repository at this point in the history
  11. trace_events: add process_name metadata

    PR-URL: #21477
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and targos committed Jul 12, 2018
    Copy the full SHA
    c4d7413 View commit details
    Browse the repository at this point in the history
  12. src: add --title command line argument

    Simple utility command line argument for setting the process
    title on process startup.
    
    PR-URL: #21477
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and targos committed Jul 12, 2018
    Copy the full SHA
    d063056 View commit details
    Browse the repository at this point in the history
  13. deps: upgrade to libuv 1.22.0

    PR-URL: #21731
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    cjihrig authored and targos committed Jul 12, 2018
    Copy the full SHA
    6920091 View commit details
    Browse the repository at this point in the history
  14. src: make Environment::is_stopping_worker inline

    Fixes a TODO comment.
    
    PR-URL: #21720
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    maclover7 authored and targos committed Jul 12, 2018
    Copy the full SHA
    2770778 View commit details
    Browse the repository at this point in the history
  15. n-api: test uint32 truncation

    Re: nodejs/abi-stable-node#55 (comment)
    PR-URL: #21722
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof authored and targos committed Jul 12, 2018
    Copy the full SHA
    4f3bbfa View commit details
    Browse the repository at this point in the history
  16. tools: build all.json by combining generated JSON

    Notes:
    
    1) Removed a number of root properties that did not seem relevant:
       source, desc, and introduced_in.  There no longer is a source, and
       the other two are from the first include and do not reflect the
       entire API.
    
    2) As with #20100, the current
       "desc" properties sometimes contained in-page links, other times
       referenced another page, and often did not match the links in the
       original HTML or JSON file. I chose to standardize on external links
       as "desc" values are isolated snippets as opposed to all.html which
       can be viewed as a standalone and self contained document.
    
    3) Eliminated preprocessing for @include entirely, including the test
       case for this function.
    
    4) _toc.md was renamed to index.md.
    
    5) index comments no longer appear in embedded TOCs (left hand side
       column in the generated documentation.
    
    PR-URL: #21637
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    rubys authored and targos committed Jul 12, 2018
    Copy the full SHA
    b9bbbbe View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2018

  1. zlib: instance-ify two methods

    Both `Params` and `SetDictionary` take `ZCtx` as an arg, so just make
    them both instance methods on `ZCtx`.
    
    PR-URL: #21702
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    maclover7 authored and targos committed Jul 14, 2018
    Copy the full SHA
    48b16aa View commit details
    Browse the repository at this point in the history
  2. crypto: handle OpenSSL error queue in CipherBase

    This handles all errors produced by OpenSSL within the CipherBase
    class. API functions ensure that they do not add any new errors to the
    error queue. Also adds a couple of CHECKs and throws under certain
    conditions.
    
    PR-URL: #21288
    Fixes: #21281
    Refs: #21287
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    tniessen authored and targos committed Jul 14, 2018
    Copy the full SHA
    07cce88 View commit details
    Browse the repository at this point in the history
  3. trace_events: add traced_value.cc/traced_value.h

    Port of the V8 internal v8::tracing::TracedValue that allows
    structured data to be included in the trace event. The v8 class
    is not exported in the public API so we cannot use it directly.
    
    This is a simplified and slightly modified port. This commit only
    adds the class, it does not add uses of it. Those will come in
    separate PRs/commits.
    
    PR-URL: #21475
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    jasnell authored and targos committed Jul 14, 2018
    Copy the full SHA
    27d17d4 View commit details
    Browse the repository at this point in the history
  4. napi: add bigint support

    PR-URL: #21226
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    devsnek authored and targos committed Jul 14, 2018
    Copy the full SHA
    3096ee5 View commit details
    Browse the repository at this point in the history
  5. tools: add no-duplicate-requires rule

    PR-URL: #21712
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Weijia Wang <starkwang@126.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    devsnek authored and targos committed Jul 14, 2018
    Copy the full SHA
    e030dd7 View commit details
    Browse the repository at this point in the history
  6. tools: avoid global install of dmn for lint update

    When updating ESLint, use npx to run dmn rather than installing dmn
    globally.
    
    PR-URL: #21744
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jul 14, 2018
    Copy the full SHA
    c26ba08 View commit details
    Browse the repository at this point in the history
  7. errors: fix undefined HTTP2 and tls errors

    Includes implementation of tls, HTTP2 error with documentation.
    
    PR-URL: #21564
    Refs: #21440
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    thatshailesh authored and targos committed Jul 14, 2018
    Copy the full SHA
    3fffc7e View commit details
    Browse the repository at this point in the history
  8. doc: add OS X to instead of only macOS

    The last OS X version is 10.11 El Captian, and the first macOS version
    is 10.12 Sierra. So >= 10.8 < 10.10 is called OS X and >= 10.10 is
    called OS X or macOS.
    
    Refs: https://en.wikipedia.org/wiki/MacOS#Release_history
    
    PR-URL: #21033
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    XadillaX authored and targos committed Jul 14, 2018
    Copy the full SHA
    3d93273 View commit details
    Browse the repository at this point in the history
  9. http: fix request with option timeout and agent

    When request with both timeout and agent, timeout not
    work. This patch will fix it, socket timeout will set
    to request timeout before socket is connected, and
    socket timeout will reset to agent timeout after
    response end.
    
    Fixes: #21185
    
    PR-URL: #21204
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    killagu authored and targos committed Jul 14, 2018
    1
    Copy the full SHA
    bba500d View commit details
    Browse the repository at this point in the history
  10. repl: make own properties shadow prototype properties

    Previously, the code displayed properties backwards (e.g., showing
    prototype properties before own properties).  It also did uniqueness
    checks during this processing, so these checks were done backwards.
    
    After this change, the properties continue to be displayed backwards,
    but the uniqueness checks are done in the proper order.
    
    See also: #21586 which was
    discovered during the testing of this fix.
    
    Fixes: #15199
    PR-URL: #21588
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    rubys authored and targos committed Jul 14, 2018
    Copy the full SHA
    4b613d3 View commit details
    Browse the repository at this point in the history
  11. build: enabling lto at configure

    This modification allows for compiling with link time optimization (lto)
    using the flag --enable-lto.
    
    Refs: #7400
    
    PR-URL: #21677
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Octavian Soldea authored and targos committed Jul 14, 2018
    Copy the full SHA
    c02fb88 View commit details
    Browse the repository at this point in the history
  12. test: fix timeouts when running worker tests with --worker

    These tests have been added after the original workers PR and
    time out when run inside a worker by themselves.
    This is needed for enabling `--worker` tests in our regular CI.
    
    Refs: nodejs/build#1318
    
    PR-URL: #21791
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 14, 2018
    Copy the full SHA
    f46536b View commit details
    Browse the repository at this point in the history
  13. src: enable more detailed memory tracking

    This will enable more detailed heap snapshots based on
    a newer V8 API.
    
    This commit itself is not tied to that API and could
    be backported.
    
    PR-URL: #21742
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jul 14, 2018
    Copy the full SHA
    712809e View commit details
    Browse the repository at this point in the history
  14. test: fix weird string error

    Previously getting this error when running `tap2junit` (what parses our
    `.tap` files in CI):
    
    ```
    Traceback (most recent call last):
      File "/usr/local/bin/tap2junit", line 11, in <module>
        sys.exit(main())
      File "/usr/local/lib/python2.7/site-packages/tap2junit/__main__.py", line 46, in main
        result.to_file(args.output, [result], prettyprint=False)
      File "/usr/local/lib/python2.7/site-packages/junit_xml/__init__.py", line 289, in to_file
        test_suites, prettyprint=prettyprint, encoding=encoding)
      File "/usr/local/lib/python2.7/site-packages/junit_xml/__init__.py", line 257, in to_xml_string
        ts_xml = ts.build_xml_doc(encoding=encoding)
      File "/usr/local/lib/python2.7/site-packages/junit_xml/__init__.py", line 221, in build_xml_doc
        attrs['message'] = decode(case.skipped_message, encoding)
      File "/usr/local/lib/python2.7/site-packages/junit_xml/__init__.py", line 68, in decode
        ret = unicode(var)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 11: ordinal not in range(128)
    ```
    
    PR-URL: #21793
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    maclover7 authored and targos committed Jul 14, 2018
    Copy the full SHA
    ada3f34 View commit details
    Browse the repository at this point in the history
  15. doc: add policy for landing new npm releases

    This change in policy sets clear terms for when / how npm releases
    can be landed into master and how long they are expected to bake in the
    ecosystem. This is to cover all release types of npm including semver-major
    releases.
    
    What Node.js releases the updates land into are at the discretion of the
    release team.
    
    PR-URL: #21594
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    MylesBorins authored and targos committed Jul 14, 2018
    Copy the full SHA
    7ab6efd View commit details
    Browse the repository at this point in the history
  16. deps: patch V8 to 6.7.288.49

    PR-URL: #21727
    Refs: v8/v8@6.7.288.46...6.7.288.49
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    MylesBorins authored and targos committed Jul 14, 2018
    Copy the full SHA
    42d7539 View commit details
    Browse the repository at this point in the history
  17. inspector: split main thread interface from transport

    Workers debugging will require interfacing between the "main" inspector
    and per-worker isolate inspectors. This is consistent with what WS
    interface does. This change is a refactoring change and does not change
    the functionality.
    
    PR-URL: #21182
    Fixes: #21725
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    eugeneo authored and targos committed Jul 14, 2018
    Copy the full SHA
    b229129 View commit details
    Browse the repository at this point in the history
  18. test: fix flaky watchFile()

    The regression that test-fs-watch-file-enoent-after-deletion was written
    to test for involves whether or not the callback runs or not. Checking
    what the file watcher reports unfortunately is subject to race
    conditions on Windows (and possibly elsewhere) because the file watcher
    returns control to the event loop before it may be receiving data from
    the OS. So remove those assertions. The test still checks what it is
    supposed to check, but is no longer subject to race conditions.
    
    Fixes: #21692
    
    PR-URL: #21694
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jul 14, 2018
    Copy the full SHA
    ae5d565 View commit details
    Browse the repository at this point in the history
  19. test: remove timer in fs.watchFile() test

    The timer was there to address a race condition that has been removed
    from the test. Remove it.
    
    PR-URL: #21694
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Trott authored and targos committed Jul 14, 2018
    Copy the full SHA
    1502651 View commit details
    Browse the repository at this point in the history
  20. doc: add "Edit on GitHub" link

    Proof of concept for an "Edit on GitHub" link, inspired by the
    Serverless docs.
    
    One issue is that the link is to the version of the docs on the master
    branch even if the person was reading a different version of the doc. I
    don't consider that a big problem, although we can always remove the
    link if it turns out to be a big problem. I don't think there is a good
    solution. PRs need to be opened against the master branch generally.
    Having a bunch of PRs against staging branches is probably not what we
    want. If there's an update to one version of the doc, there will usually
    be an update to other versions.
    
    PR-URL: #21703
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Roman Reiss <me@silverwind.io>
    Trott authored and targos committed Jul 14, 2018
    Copy the full SHA
    0de0f89 View commit details
    Browse the repository at this point in the history
  21. src: add comment on CallbackScope exception behaviour

    PR-URL: #21743
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    addaleax authored and targos committed Jul 14, 2018
    Copy the full SHA
    cb69811 View commit details
    Browse the repository at this point in the history
  22. src,tools: use https://nodejs.org URL when possible.

    PR-URL: #21719
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    XhmikosR authored and targos committed Jul 14, 2018
    Copy the full SHA
    aa5994f View commit details
    Browse the repository at this point in the history
  23. process: fix process.exitCode handling for fatalException

    * set process.exitCode before calling 'exit' handlers so that there will
      not be a situation where process.exitCode !== code in 'exit' callback
      during uncaughtException handling
    * don't ignore process.exitCode set in 'exit' callback when failed with
      uncaughtException and there is no uncaughtException listener
    
    PR-URL: #21739
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lundibundi authored and targos committed Jul 14, 2018
    Copy the full SHA
    961f6e8 View commit details
    Browse the repository at this point in the history
  24. test: refactor process/worker exitCode tests

    PR-URL: #21739
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lundibundi authored and targos committed Jul 14, 2018
    Copy the full SHA
    600349a View commit details
    Browse the repository at this point in the history
  25. worker: exit after uncaught exception

    Previously even after uncaught exception the worker would continue to
    execute until there is no more work to do.
    
    PR-URL: #21739
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    lundibundi authored and targos committed Jul 14, 2018
    Copy the full SHA
    b0943a6 View commit details
    Browse the repository at this point in the history
  26. src: add node_process.cc

    Begin moving `process` object function definitions out of
    `node.cc` ... continuing the process of making `node.cc`
    smaller and easier to maintain.
    
    PR-URL: #21105
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    
    Backport-PR-URL: #21799
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    jasnell authored and targos committed Jul 14, 2018
    Copy the full SHA
    a68b7dd View commit details
    Browse the repository at this point in the history
  27. process: implement process.hrtime.bigint()

    PR-URL: #21256
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    joyeecheung authored and targos committed Jul 14, 2018
    Copy the full SHA
    f1b18ba View commit details
    Browse the repository at this point in the history
  28. lib: refactor cli table

    The cli table used multi line template strings which are normally
    not used in our code base and it also upper cased a regular function
    name. This is changed by this patch.
    
    PR-URL: #20960
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and targos committed Jul 14, 2018
    Copy the full SHA
    4433ecb View commit details
    Browse the repository at this point in the history
  29. test: improve console table error output

    The former error output was not readable in case of an error. This
    improves it by splitting the lines and therefore creating a nice and
    readable diff.
    
    PR-URL: #20960
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and targos committed Jul 14, 2018
    Copy the full SHA
    a09bdb5 View commit details
    Browse the repository at this point in the history
  30. src: remove .h if -inl.h is already included

    This commit removes the normal header file include if an internal one
    is specified as per the CPP_STYLE_GUIDE.
    
    PR-URL: #21381
    Reviewed-By: Matheus Marchini <matheus@sthima.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    danbev authored and targos committed Jul 14, 2018
    Copy the full SHA
    466601f View commit details
    Browse the repository at this point in the history
  31. src: start annotating native code side effect

    PR-URL: #21458
    Refs: #20977
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    TimothyGu authored and targos committed Jul 14, 2018
    Copy the full SHA
    51d613d View commit details
    Browse the repository at this point in the history
  32. src: add HandleWrap::AddWrapMethods

    Extracts common setters to a single location
    
    PR-URL: #21769
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    maclover7 authored and targos committed Jul 14, 2018
    Copy the full SHA
    4ed5d1a View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2018

  1. doc: prevent some redirections

    Replace some redirected URLs with the final ones.
    
    PR-URL: #21811
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    vsemozhetbyt authored and targos committed Jul 15, 2018
    Copy the full SHA
    d33281b View commit details
    Browse the repository at this point in the history
  2. doc: update readme with my pronouns

    PR-URL: #21818
    Refs: #21803
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    lance authored and targos committed Jul 15, 2018
    Copy the full SHA
    ca8c960 View commit details
    Browse the repository at this point in the history
  3. test: add filehandle sync() and datasync() tests

    To increase test coverage for fs.promises,
    added tests for filehandle.sync and filehandle.datasync.
    
    PR-URL: #20530
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Masashi Hirano authored and targos committed Jul 15, 2018
    Copy the full SHA
    678313d View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2018

  1. doc: add my pronoun

    PR-URL: #21813
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    BridgeAR authored and targos committed Jul 16, 2018
    Copy the full SHA
    0298299 View commit details
    Browse the repository at this point in the history
  2. src: add iteration over all base objects to Environment

    PR-URL: #21741
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    d42dbde View commit details
    Browse the repository at this point in the history
  3. deps: cherry-pick 555c811 from upstream V8

    Original commit message:
    
        [api] Switch from `SetBuildEmbedderGraphCallback` to `AddBuildEmbedderGraphCallback`
    
        `SetBuildEmbedderGraphCallback`, unlike `SetWrapperClassInfoProvider`,
        assumes a monolithic embedder that can provide all necessary information.
        That is not the case for e.g. Node.js, which can e.g. provide multiple Node.js
        instances per V8 Isolate, as well as native addons that may allocate resources
        on their own.
    
        Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
        Change-Id: Ib53dfde82416dd69934b08623e27d674a483ac2d
        Reviewed-on: https://chromium-review.googlesource.com/1082441
        Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
        Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
        Reviewed-by: Yang Guo <yangguo@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#53545}
    
    Refs: v8/v8@555c811
    
    PR-URL: #21741
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    355c5e3 View commit details
    Browse the repository at this point in the history
  4. src: use V8 graph heap snapshot API

    Transition to a newer, more flexible API for
    heap snapshot creation.
    
    This addresses a currently pending deprecation in the V8 API.
    
    PR-URL: #21741
    Fixes: #21633
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    5121278 View commit details
    Browse the repository at this point in the history
  5. src: make heap snapshot & embedder graph accessible for tests

    Add methods that allow inspection of heap snapshots and a JS
    version of our own embedder graph.
    
    These can be used in tests and might also prove useful for
    ad-hoc debugging. Usage requires `--expose-internals` and
    prints a warning similar to our other modules whose primary
    purpose is test support.
    
    PR-URL: #21741
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    a9a7186 View commit details
    Browse the repository at this point in the history
  6. test: add heap snapshot tests

    Add a number of tests that validate that heap snapshots
    contain what we expect them to contain, and cross-check
    against a JS version of our own embedder graphs.
    
    PR-URL: #21741
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    7352b72 View commit details
    Browse the repository at this point in the history
  7. doc: make markdown input compliant

    PR-URL: #21780
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    rubys authored and targos committed Jul 16, 2018
    Copy the full SHA
    10f9374 View commit details
    Browse the repository at this point in the history
  8. doc: fix vm.runInNewContext signature

    The `options` parameter cannot be passed without `sandbox`.
    
    PR-URL: #21824
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    targos committed Jul 16, 2018
    Copy the full SHA
    51dfebf View commit details
    Browse the repository at this point in the history
  9. src: fix async hooks crashing when there is no node context

    PR-URL: #19134
    Fixes: #19104
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    xaviergonz authored and targos committed Jul 16, 2018
    Copy the full SHA
    1019c2d View commit details
    Browse the repository at this point in the history
  10. http2: remove waitTrailers listener after closing a stream

    When `writeHeader` of `Http2ServerResponse` instance are called with
    204, 205 and 304 status codes an underlying stream closes.
    If call `end` method after sending any of these status codes it will
    cause an error `TypeError: Cannot read property 'Symbol(trailers)' of
    undefined` because a reference to `Http2ServerResponse` instance
    associated with Http2Stream already was deleted.
    The closing of stream causes emitting `waitTrailers` event and, when
    this event handles inside `onStreamTrailerReady` handler, there is
    no reference to Http2ServerResponse instance.
    
    Fixes: #21740
    PR-URL: #21764
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    RidgeA authored and targos committed Jul 16, 2018
    Copy the full SHA
    238ef58 View commit details
    Browse the repository at this point in the history
  11. test: add test of fs.promises write for non-string buffers

    PR-URL: #21708
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Shagamii authored and targos committed Jul 16, 2018
    Copy the full SHA
    32ad163 View commit details
    Browse the repository at this point in the history
  12. test: fix comment of fs.promises write

    PR-URL: #21708
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Shagamii authored and targos committed Jul 16, 2018
    Copy the full SHA
    a2edb59 View commit details
    Browse the repository at this point in the history
  13. test: fix flaky test-debug-prompt

    Be sure to send `.exit` only once to avoid spurious EPIPE and possibly
    other errors.
    
    Fixes: #21724
    
    PR-URL: #21826
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Trott authored and targos committed Jul 16, 2018
    Copy the full SHA
    4e60ce8 View commit details
    Browse the repository at this point in the history
  14. console,util: avoid pair array generation in C++

    Use a plain `[key, value, key, value]`-style list instead
    of an array of pairs for inspecting collections.
    
    This also fixes a bug with `console.table()` where
    inspecting a non-key-value `MapIterator` would have
    led to odd results.
    
    PR-URL: #20831
    Refs: #20719 (comment)
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    73cafd8 View commit details
    Browse the repository at this point in the history
  15. console: fix timeEnd() not coercing the input

    The input of console.timeEnd() was not coerced to a string. That way
    labels were not found and the entry was not removed anymore.
    
    PR-URL: #21779
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    BridgeAR authored and targos committed Jul 16, 2018
    Copy the full SHA
    2a0862c View commit details
    Browse the repository at this point in the history
  16. assert: improve simple assert

    1) If simple assert is called in the very first line of a file and
    it causes an error, it used to report the wrong code. The reason
    is that the column that is reported is faulty. This is fixed by
    subtracting the offset from now on in such cases.
    
    2) The actual code read is now limited to the part that is actually
    required to visualize the call site. All other code in e.g. minified
    files will not cause a significant overhead anymore.
    
    3) The number of allocations is now significantly lower than it used
    to be. The buffer is reused until the correct line in the code is
    found. In general the algorithm tries to safe operations where
    possible.
    
    4) The indentation is now corrected depending on where the statement
    actually beginns.
    
    5) It is now possible to handle `.call()` and `.apply()` properly.
    
    6) The user defined function name will now always be used instead of
    only choosing either `assert.ok()` or `assert()`.
    
    PR-URL: #21626
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    BridgeAR authored and targos committed Jul 16, 2018
    Copy the full SHA
    8c97ffb View commit details
    Browse the repository at this point in the history
  17. doc: add documentation for buffer.byteOffset

    Also document a common issue when casting a Buffer object to a
    TypedArray object.
    
    Fixes: #19301
    
    PR-URL: #21718
    Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    AndreasMadsen authored and targos committed Jul 16, 2018
    Copy the full SHA
    53b587a View commit details
    Browse the repository at this point in the history
  18. build: account for pure C sources in build-addons-napi

    PR-URL: #21797
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    6bb2b5a View commit details
    Browse the repository at this point in the history
  19. http2: fix issues with aborted respondWithFile()s

    PR-URL: #21561
    Fixes: #20824
    Fixes: #21560
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    0b3c80c View commit details
    Browse the repository at this point in the history
  20. test: add gc tracking to common API

    PR-URL: #21794
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    b338ff5 View commit details
    Browse the repository at this point in the history
  21. test: refactor test-net-connect-memleak, move to parallel

    This enables the test to run as part of the regular test suite.
    
    PR-URL: #21794
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    174a9db View commit details
    Browse the repository at this point in the history
  22. test: refactor test-tls-connect-memleak, move to parallel

    This enables the test to run as part of the regular test suite.
    
    PR-URL: #21794
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    6b72583 View commit details
    Browse the repository at this point in the history
  23. test: fix build warnings in bigint N-API test

    PR-URL: #21796
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and targos committed Jul 16, 2018
    Copy the full SHA
    67908e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2018

  1. lib: update punycode to 2.1.1

    PR-URL: #21768
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and targos committed Jul 17, 2018
    Copy the full SHA
    4ed4bf3 View commit details
    Browse the repository at this point in the history
  2. test: move inspector test back to parallel, unmark flaky

    After #21182, the test is
    no longer flaky.
    
    Since it doesn’t use a static port, moving it to parallel
    seems justified.
    
    PR-URL: #21806
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    addaleax authored and targos committed Jul 17, 2018
    Copy the full SHA
    eef975e View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2018

  1. process: split bootstrappers by threads that can run them

    This patch split part of the bootstrappers into three files:
    
    - `lib/internal/process/main_thread_only.js`: contains bootstrappers
      that can only be run in the main thread, including
      - `setupStdio` for the main thread that sets up `process.stdin`,
        `process.stdout`, `process.error` that may interact with external
        resources, e.g. TTY/File/Pipe/TCP sockets
      - `setupProcessMethods` that setup methods changing process-global
        states, e.g. `process.chdir`, `process.umask`, `process.setuid`
      - `setupSignalHandlers`
      - `setupChildProcessIpcChannel` that setup `process.send` for
        child processes.
    - `lib/internal/process/worker_thread_only.js`: contains bootstrappers
      that can only be run in the worker threads, including
      - `setupStdio` for the worker thread that are streams to be
        manipulated or piped to the parent thread
    - `lib/internal/process/per_thread.js`: contains bootstrappers
        that can be run in all threads, including:
      - `setupAssert` for `process.assert`
      - `setupCpuUsage` for `process.cpuUsage`
      - `setupHrtime` for `process.hrtime` and `process.hrtime.bigint`
      - `setupMemoryUsage` for `process.memoryUsage`
      - `setupConfig` for `process.config`
      - `setupKillAndExit` for `process.kill` and `process.exit`
      - `setupRawDebug` for `process._rawDebug`
      - `setupUncaughtExceptionCapture` for
        `process.setUncaughtExceptionCaptureCallback` and
        `process.hasUncaughtExceptionCaptureCallback`
    
    Hopefully in the future we can sort more bootstrappers in
    `boostrap/node.js` into these three files and further group
    them into functions that can be run before creating the
    snapshot / after loading the snapshot.
    
    This patch also moves most of the `isMainThread` conditionals
    into the main bootstrapper instead of letting them scattered around
    special-casing different implementations.
    
    PR-URL: #21378
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    
    Backport-PR-URL: #21866
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    joyeecheung authored and targos committed Jul 18, 2018
    Copy the full SHA
    581390c View commit details
    Browse the repository at this point in the history
  2. buffer: remove superfluous assignment

    PR-URL: #21844
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and targos committed Jul 18, 2018
    Copy the full SHA
    576f1ea View commit details
    Browse the repository at this point in the history
  3. crypto: prevent Sign::SignFinal from crashing

    The validation logic could be tricked into assuming an option was
    valid using malicious getters, leading to an invalid value being
    passed to the C++ layer, thus crashing the process.
    
    PR-URL: #21815
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    tniessen authored and targos committed Jul 18, 2018
    Copy the full SHA
    d9825c7 View commit details
    Browse the repository at this point in the history
  4. test: add support for NODE_TEST_DIR on a separate mount point

    Linux permits a filesystem to be mounted at multiple points, but
    `fs.renameSync` does not work across different mount points, even if the
    same filesystem is mounted on both.
    This fixes failing tests when NODE_TEST_DIR mount point is different
    from the one on which the tests are executed (E.G. on a separate
    partition).
    
    Ref: http://man7.org/linux/man-pages/man2/rename.2.html
    
    PR-URL: #21552
    Refs: http://man7.org/linux/man-pages/man2/rename.2.html
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    aduh95 authored and targos committed Jul 18, 2018
    Copy the full SHA
    0108ff6 View commit details
    Browse the repository at this point in the history
  5. inspector: expose original console

    Adds require('inspector').console, mapping it to the original
    global.console of V8. This enables applications to send messages to
    the inspector console programmatically.
    
    Fixes: #21651
    
    PR-URL: #21659
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    mcollina authored and targos committed Jul 18, 2018
    Copy the full SHA
    2922028 View commit details
    Browse the repository at this point in the history
  6. doc: fix structure and formatting in inspector.md

    1. Reorder some sections alphabetically.
    2. Fix some heading levels.
    3. Express a type of a property more formally.
    
    PR-URL: #21709
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
    Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
    vsemozhetbyt authored and targos committed Jul 18, 2018
    Copy the full SHA
    506631a View commit details
    Browse the repository at this point in the history
  7. 2018-07-18, Version 10.7.0 (Current)

    Notable changes:
    
    * console:
      * The `console.timeLog()` method has been implemented.
        (#21312)
    * deps:
      * Upgrade to libuv 1.22.0. (#21731)
      * Upgrade to ICU 62.1 (Unicode 11, CLDR 33.1).
        (#21728)
    * http:
      * Added support for passing both `timeout` and `agent` options to
        `http.request`. (#21204)
    * inspector:
      * Expose the original console API in `require('inspector').console`.
        (#21659)
    * napi:
      * Added experimental support for functions dealing with bigint numbers.
        (#21226)
    * process:
      * The `process.hrtime.bigint()` method has been implemented.
        (#21256)
      * Added the `--title` command line argument to set the process title on
        startup. (#21477)
    * trace_events:
      * Added process_name metadata.
        (#21477)
    * Added new collaborators
      * codebytere - Shelley Vohr
    
    PR-URL: #21851
    targos committed Jul 18, 2018
    Copy the full SHA
    991bb95 View commit details
    Browse the repository at this point in the history