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.11.2 proposal #20478

Merged
merged 218 commits into from
May 15, 2018
Merged

v8.11.2 proposal #20478

merged 218 commits into from
May 15, 2018

Commits on Mar 30, 2018

  1. benchmark: fix punycode test for --without-intl

    PR-URL: #16251
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    18be476 View commit details
    Browse the repository at this point in the history
  2. fs: fix createReadStream(…, {end: n}) for non-seekable fds

    82bdf8f fixed an issue by silently modifying the `start`
    option for the case when only `end` is passed, in order to perform
    reads from a specified range in the file.
    
    However, that approach does not work for non-seekable files, since
    a numeric `start` option means that positioned reads will be used
    to read data from the file.
    
    This patch fixes that, and instead ends reading after a specified
    size by adjusting the read buffer size.
    
    This way we avoid re-introducing the bug that 82bdf8f fixed,
    and align behaviour with the native file stream mechanism
    introduced in #18936 as well.
    
    Backport-PR-URL: #19410
    PR-URL: #19329
    Fixes: #19240
    Refs: #18121
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Chen Gang <[email protected]>
    addaleax authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    a653f23 View commit details
    Browse the repository at this point in the history
  3. util: escaping object keys in util.inspect()

    PR-URL: #16986
    Fixes: #16979
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    ah-yu authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e0e0ef7 View commit details
    Browse the repository at this point in the history
  4. http: free the parser before emitting 'upgrade'

    Ensure that the parser is freed before emitting the 'connect' or
    'upgrade' event.
    
    PR-URL: #18209
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    lpinca authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    1d88266 View commit details
    Browse the repository at this point in the history
  5. stream: remove unreachable code

    To avoid a function call `BufferList.prototype.concat()` is not called
    when there is only a buffer in the list. That buffer is instead
    accessed directly.
    
    PR-URL: #18239
    Reviewed-By: Matteo Collina <[email protected]>
    lpinca authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    37e594e View commit details
    Browse the repository at this point in the history
  6. test: use correct size in test-stream-buffer-list

    The `n` argument of `BufferList.prototype.concat()` is not the number
    of `Buffer` instances in the list, but their total length when
    concatenated.
    
    PR-URL: #18239
    Reviewed-By: Matteo Collina <[email protected]>
    lpinca authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    6f3fb46 View commit details
    Browse the repository at this point in the history
  7. stream: simplify src._readableState to state

    PR-URL: #18264
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    陈刚 authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    bf52382 View commit details
    Browse the repository at this point in the history
  8. doc: capitalize non-primitive types

    Backport-PR-URL: #18465
    PR-URL: #18111
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e84e9db View commit details
    Browse the repository at this point in the history
  9. doc: warn about GCM authenticity

    PR-URL: #18376
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    5209f9e View commit details
    Browse the repository at this point in the history
  10. doc: fix manpage warnings

    Fixes: #18434
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    silverwind authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    39ea4f1 View commit details
    Browse the repository at this point in the history
  11. doc: reorder section on updating PR branch

    It makes more sense to provide instructions on how to update the PR
    branch before instructions on pushing the commit.
    
    PR-URL: #18355
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[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]>
    Reviewed-By: Jon Moss <[email protected]>
    ofrobots authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    142ad8d View commit details
    Browse the repository at this point in the history
  12. url: simplify loop in parser

    PR-URL: #18468
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    5d03c82 View commit details
    Browse the repository at this point in the history
  13. doc: add Gibson Fahnestock to TSC

    Welcome Gibson to the TSC!
    
    PR-URL: #18481
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    7feeb15 View commit details
    Browse the repository at this point in the history
  14. test: fix flaky test-http-dns-error

    Under some conditions, the error received from getaddrinfo might
    actually be EAGAIN, meaning the request should be retried. Allowing for
    5 retries before erroring out.
    
    Also replace one-off function with common.mustNotCall().
    
    PR-URL: #16534
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bengl authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    a1fb263 View commit details
    Browse the repository at this point in the history
  15. src: free memory before re-setting URLHost value

    Fixes: #18302
    
    PR-URL: #18357
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    prog1dev authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    c0f40be View commit details
    Browse the repository at this point in the history
  16. tools: auto fix custom eslint rule

    1. Extends tests
    2. Refactors code
    3. Adds fixer
    
    Refs: #16636
    
    PR-URL: #16652
    Refs: #16636
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    shobhitchittora authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    a8b5a96 View commit details
    Browse the repository at this point in the history
  17. doc: improve stream documentation

    PR-URL: #18375
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    陈刚 authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    ac41aac View commit details
    Browse the repository at this point in the history
  18. test: speed up parallel/test-tls-session-cache

    This test had some unnecessary timeouts that made it run for a
    much longer time than necessary (about 9 s rather than 0.2 s).
    
    PR-URL: #18424
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    d630874 View commit details
    Browse the repository at this point in the history
  19. lib: remove debugger dead code

    PR-URL: #18426
    Refs: 719247f
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    liqyan authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    20844d1 View commit details
    Browse the repository at this point in the history
  20. deps: update node-inspect to 1.11.3

    Highlights:
    
    * Using a random port works (`node inspect --port=0 script.js`)
    * `takeHeapSnapshot()` creates valid snapshots again
    
    PR-URL: #18354
    Reviewed-By: Richard Lau <[email protected]>
    Jan Krems authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    79a7a17 View commit details
    Browse the repository at this point in the history
  21. async_hooks: clean up comments

    With some of the recent work, some of the comments were no longer
    representative of the code, or were otherwise unclear. This commit
    fixes some obvious issues I found.
    
    Ref: 83e5215
    Ref: 0784b04
    PR-URL: #18467
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    ofrobots authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    ce3866b View commit details
    Browse the repository at this point in the history
  22. doc: move Brian White to TSC Emeriti list

    PR-URL: #18482
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    eec9334 View commit details
    Browse the repository at this point in the history
  23. v8: add missing ',' in OpenBSD's 'sources' section.

    Add stack_trace_posix to 'sources' as well.
    
    Fixes #15784
    Fixes nodejs/help#992
    
    add stack_trace_posix to OpenBSD's sources
    
    PR-URL: #18448
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    qbit authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    8ac69c4 View commit details
    Browse the repository at this point in the history
  24. build: add cflags for OpenBSD, remove stray comma.

    PR-URL: #18448
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    qbit authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    424703a View commit details
    Browse the repository at this point in the history
  25. doc: streamline README intro

    Shorten text that is duplicated from website and supply link.
    
    PR-URL: #18483
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Trott authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e5d5137 View commit details
    Browse the repository at this point in the history
  26. string_decoder: reset decoder on end

    This resets the StringDecoder's state after calling `#end`. Further
    writes to the decoder will act as if it were a brand new instance,
    allowing simple reuse.
    
    PR-URL: #18494
    Fixes: #16564
    Refs: #16594
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    jridgewell authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    f96b0bf View commit details
    Browse the repository at this point in the history
  27. test: add test for tls benchmarks

    PR-URL: #18489
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    apapirovski authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    0cf9d04 View commit details
    Browse the repository at this point in the history
  28. test: verify the shell option works properly on execFile

    Useful for executing in a shell because it accepts arguments as
    an array instead of a string as exec does.
    Depending on the circumstances,
    that can prove to be useful if the arguments are already prepared.
    
    PR-URL: #18384
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    jvelezpo authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e55e08c View commit details
    Browse the repository at this point in the history
  29. win, build: fix intl-none option

    Like #17614, but for the `intl-none` option.
    
    Refs: #17614
    PR-URL: #18292
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    poiru authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    c61754f View commit details
    Browse the repository at this point in the history
  30. doc: improve http.request documentation

    PR-URL: #18289
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Zarel authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    36ea472 View commit details
    Browse the repository at this point in the history
  31. doc: shell option for the execFile and execFileSync functions

    Useful for executing in a shell because it accepts arguments as
    an array instead of a string as exec does.
    Depending on the circumstances,
    that can prove to be useful if the arguments are already prepared.
    
    PR-URL: #18237
    Fixes: #18199
    Reviewed-By: Julian Duque <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Adrian Estrada <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    jvelezpo authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    1107a49 View commit details
    Browse the repository at this point in the history
  32. build: allow x86_64 as a dest_cpu alias for x64

    x86_64 is a standard arch descriptor on Linux, allow it as an alias for
    our preferred descriptor: x64
    
    PR-URL: #18052
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    rvagg authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    659b2a1 View commit details
    Browse the repository at this point in the history
  33. test: remove destructor from node_test_fixture

    This commit removes the destructor from node_test_fixture.h which calls
    the TearDown function causing TearDown to be called twice. This also
    allows us to remove the check of the platform_ in TearDown.
    
    Also the Setup/TearDown functions in AliasBufferTest are removed as they
    are not necessary.
    
    PR-URL: #18524
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    fdb4dbc View commit details
    Browse the repository at this point in the history
  34. net: remove redundant code from _writeGeneric()

    The encoding is already handled by `Writable.prototype.write()`.
    
    PR-URL: #18429
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    lpinca authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    35aaee1 View commit details
    Browse the repository at this point in the history
  35. tools: add check for using process.binding crypto

    Currently, when configuring --without-ssl any tests that use
    process.binding('crypto') will not report a lint warning. This is
    because the eslint check only generates a warning when using require.
    
    This commit adds a check for using binding in addition to require.
    
    PR-URL: #17867
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    danbev authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e0d2842 View commit details
    Browse the repository at this point in the history
  36. build: refine static and shared lib build

    Refine the static and shared lib build process in order
    to integrate static and shared lib verfication into CI.
    When building both static and shared lib, we still build
    node executable now and it uses the shared and static lib.
    
    Signed-off-by: Yihong Wang <[email protected]>
    
    Refs: #14158
    PR-URL: #17604
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    yhwang authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    658dd40 View commit details
    Browse the repository at this point in the history
  37. errors: remove ERR_OUTOFMEMORY

    Backport-PR-URL: #19117
    PR-URL: #17877
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    cbc8561 View commit details
    Browse the repository at this point in the history
  38. test: fix spelling in test case comments

    Backport-PR-URL: #19118
    PR-URL: #18018
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    1043b6f View commit details
    Browse the repository at this point in the history
  39. lib: fix spelling in comments

    Backport-PR-URL: #19118
    PR-URL: #18018
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    3df0570 View commit details
    Browse the repository at this point in the history
  40. test: update references to archived repository

    Backport-PR-URL: #19119
    PR-URL: #17924
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    5155d8e View commit details
    Browse the repository at this point in the history
  41. readline: update references to archived repository

    Backport-PR-URL: #19119
    PR-URL: #17924
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    965b56a View commit details
    Browse the repository at this point in the history
  42. test: move tmpdir to submodule of common

    Move tmpdir functionality to its own module (common/tmpdir).
    
    Backport-PR-URL: #19488
    PR-URL: #17856
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Trott authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    a1b0d5d View commit details
    Browse the repository at this point in the history
  43. tools: add .mjs linting for Windows

    Backport-PR-URL: #19496
    PR-URL: #18569
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    a0a45fc View commit details
    Browse the repository at this point in the history
  44. test: add assertions for TextEncoder/Decoder

    Backport-PR-URL: #19358
    PR-URL: #18132
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Sho Miyamoto authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    e42ab10 View commit details
    Browse the repository at this point in the history
  45. doc: linkify missing types

    Also, alphabetize all types in type-parser.js
    and fix some nits in type formats.
    
    Backport-PR-URL: #19498
    PR-URL: #18444
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    1091dfc View commit details
    Browse the repository at this point in the history
  46. deps: V8: backport 596d55a from upstream

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

    Backport-PR-URL: #19114
    PR-URL: #17735
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and MylesBorins committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    16bf5fe View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2018

  1. test: remove orphaned entries from status

    PR-URL: #18092
    Backport-PR-URL: #19043
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    kfarnung authored and BethGriggs committed Apr 10, 2018
    Configuration menu
    Copy the full SHA
    745600a View commit details
    Browse the repository at this point in the history
  2. tools: non-Ascii linter for /lib only

    Non-ASCII characters in /lib get compiled into the node binary,
    and may bloat the binary size unnecessarily. A linter rule may
    help prevent this.
    
    PR-URL: #18043
    Backport-PR-URL: #19499
    Fixes: #11209
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Teddy Katz <[email protected]>
    SirR4T authored and BethGriggs committed Apr 10, 2018
    Configuration menu
    Copy the full SHA
    016a28a View commit details
    Browse the repository at this point in the history
  3. build: make lint-md independent of local node

    PR-URL: #18272
    Backport-PR-URL: #19190
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and BethGriggs committed Apr 10, 2018
    Configuration menu
    Copy the full SHA
    d537f45 View commit details
    Browse the repository at this point in the history
  4. build: make lint-js independent of local node

    PR-URL: #18272
    Backport-PR-URL: #19190
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and BethGriggs committed Apr 10, 2018
    Configuration menu
    Copy the full SHA
    333d7dd View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2018

  1. doc: fix various nits

    * Replace 2 hyphens (--) by spaced m-dashes (—) as per STYLE_GUIDE.md.
    * Space infix operators.
    * Unify quotes in inline code spans (use only single quotes).
    * Unify `* Returns:` (eliminate deviations).
    * Dedupe spaces.
    
    PR-URL: #19743
    Backport-PR-URL: #19753
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    vsemozhetbyt authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    c897815 View commit details
    Browse the repository at this point in the history
  2. http: fix parsing of binary upgrade response body

    Fix a bug where a connection upgrade response with a Transfer-Encoding
    header and a body whose first byte is > 127 causes said byte to be
    dropped on the floor when passing the remainder of the message to
    the 'upgrade' event listeners.
    
    Fixes: #17789
    
    PR-URL: #17806
    Fixes: #17789
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    bnoordhuis authored and MylesBorins committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    d2a884e View commit details
    Browse the repository at this point in the history
  3. test: introduce test/common/internet.addresses

    This commit introduces test/common/internet.address, which
    includes a set of addresses for doing internet tests.
    These addresses can be overriden using NODE_TEST_* environment
    variables.
    
    PR-URL: #16390
    Backport-PR-URL: #19706
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    7813a0d View commit details
    Browse the repository at this point in the history
  4. test: use internet.addresses in internet tests

    PR-URL: #16390
    Backport-PR-URL: #19706
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    daeb6de View commit details
    Browse the repository at this point in the history
  5. test: do not check TXT content in test-dns-any

    google.com added another TXT record which broke this test.
    This removes the check on the content of the TXT record
    since that depends on an external state subject to change.
    
    PR-URL: #18547
    Backport-PR-URL: #19706
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    bff7258 View commit details
    Browse the repository at this point in the history
  6. test: add common.dns.errorLookupMock

    PR-URL: #17296
    Backport-PR-URL: #19706
    Refs: nodejs/help#687
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    34af494 View commit details
    Browse the repository at this point in the history
  7. test: mock the lookup function in parallel tests

    These tests should not make any DNS calls. The lookup would fail
    when the DNS requests are hijacked and time out instead of erroring
    out.
    
    PR-URL: #17296
    Backport-PR-URL: #19706
    Refs: nodejs/help#687
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    da16227 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2018

  1. test: remove common.PORT from parallel tests

    `common.PORT` should not be used in parallel tests because another test
    may experience a collision with `common.PORT` when using port 0 to get
    an open port. This has been observed to result in test failures in CI.
    
    PR-URL: #17410
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Lance Ball <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and gibfahn committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    53b702f View commit details
    Browse the repository at this point in the history
  2. deps: cherry-pick a4bddba from upstream V8

    Original commit message:
    
        [Runtime] Use platform specific value for JSReceiver::HashMask
    
        This allows us to remove the loop while calculating the hash value and
        just use the HashMask as the mask for ComputeIntegerHash. This
        previously overflowed on 32-bit systems failing the Smi::IsValid
        check.
    
        Bug: v8:6404
        Change-Id: I84610a7592fa9d7ce4fa5cef7903bd50b8e8a4df
        Reviewed-on: https://chromium-review.googlesource.com/702675
        Reviewed-by: Adam Klein <[email protected]>
        Commit-Queue: Sathya Gunasekaran <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#48319}
    
    PR-URL: #19824
    Refs: v8/v8@a4bddba
    Fixes: #19769
    Reviewed-By: Yang Guo <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    targos authored and gibfahn committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    c97237b View commit details
    Browse the repository at this point in the history
  3. deps: cherry-pick 7abdadc from upstream V8

    Original commit message:
    
        Sprinkle some DisallowHeapAllocation
    
        Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
        Change-Id: I7d34ccddeea08f5935e360e8c36791365f27f89e
        Reviewed-on: https://chromium-review.googlesource.com/647706
        Reviewed-by: Michael Lippautz <[email protected]>
        Commit-Queue: Camillo Bruni <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#47804}
    
    PR-URL: #19824
    Refs: v8/v8@7abdadc
    Fixes: #19769
    Reviewed-By: Yang Guo <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    targos authored and gibfahn committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    09f5e25 View commit details
    Browse the repository at this point in the history
  4. deps: cherry-pick a803fad from upstream V8

    Original commit message:
    
        Make sure the identity hash is uniform (at least in the lower bits).
    
        In the current implementation of hash code for objects (identity hash),
        we do not bother to shift the hash when we retrieve it from the
        hash-length bitfield in a property array. (Even worse, we store shifted
        value even if we do not have property array or inside dictionaries.)
        That means that the hash-code for objects is always divisible by 1024.
        Since our hash table uses a simple masking with (2^logsize - 1) to
        obtain the bucket, we get terrible hash collisions - essentially, our
        hash table degenerates to a linked list for fewer than 1024 elements.
    
        This CL always shifts the hash code so that the value in the lowest
        21 bits is uniformly distributed.
    
        This results in big improvements on medium to large hash tables.
        A program storing 1M elements into a WeakMap gets roughly
        17x faster.  A program retrieving 1M elements from a Map
        improves even more dramatically (>100x).
    
        const a = [];
        for (let i = 0; i < 1e6; i++) a[i] = {};
    
        const m = new Map();
        console.time("Map.set");
        for (let i = 0; i < 1e6; i++) {
          m.set(a[i], i);
        }
        console.timeEnd("Map.set");
    
        console.time("Map.get");
        let s = 0;
        for (let i = 0; i < 1e6; i++) {
          s += m.get(a[i]);
        }
        console.timeEnd("Map.get");
    
        const w = new WeakMap();
        console.time("WeakMap.set");
        for (let i = 0; i < 1e6; i++) {
          w.set(a[i], i);
        }
        console.timeEnd("WeakMap.set");
    
        Before the fix:
    
        Map.set: 157.575000
        Map.get: 28333.182000
        WeakMap.set: 6923.826000
    
        After the fix:
    
        Map.set: 178.382000
        Map.get: 185.930000
        WeakMap.set: 409.529000
    
        Note that Map does not suffer from the hash collision on insertion because
        it uses chaining (insertion into linked list is fast regardless of size!), and
        we cleverly avoid lookup in the hash table on update if the key does not have
        identity hash yet. This is in contrast to the WeakMap, which uses
        open-addressing, and deals with collisions on insertion.
    
        Bug: v8:6916
        Change-Id: Ic5497bd4501e3b767b3f4acb7efb4784cbb3a2e4
        Reviewed-on: https://chromium-review.googlesource.com/713616
        Reviewed-by: Benedikt Meurer <[email protected]>
        Commit-Queue: Benedikt Meurer <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#48480}
    
    PR-URL: #19824
    Refs: v8/v8@a803fad
    Fixes: #19769
    Reviewed-By: Yang Guo <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    targos authored and gibfahn committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    f12db24 View commit details
    Browse the repository at this point in the history
  5. lib: refactor ES module loader for readability

    PR-URL: #16579
    Backport-PR-URL: #18085
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and gibfahn committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    2019b02 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2018

  1. src: fix util abort

    This makes sure util.isRegExp and util.isDate will not abort in case
    more than one argument is passed to the function.
    
    PR-URL: #19224
    Reviewed-By: Gibson Fahnestock <[email protected]>
    BridgeAR authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    9ac91b1 View commit details
    Browse the repository at this point in the history
  2. doc: fix description of createDecipheriv

    PR-URL: #18651
    Refs: #12223
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    tniessen authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    0071560 View commit details
    Browse the repository at this point in the history
  3. doc: add missing meta for createCipheriv

    PR-URL: #18651
    Refs: #8281
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    tniessen authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    f8ad381 View commit details
    Browse the repository at this point in the history
  4. test: fix flaky timers-block-eventloop test

    Due to extensive reliance on timings and the fs module, this test
    is currently inherently flaky. Refactor it to simply use setImmediate
    and only one busy loop.
    
    PR-URL: #18567
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    apapirovski authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    ab8edc9 View commit details
    Browse the repository at this point in the history
  5. benchmark: improve compare output

    The current output uses JSON.stringify to escape the config values.
    This switches to util.inspect to have a better readable output.
    
    PR-URL: #18597
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Andreas Madsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    BridgeAR authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    86e3c89 View commit details
    Browse the repository at this point in the history
  6. build: do not suppress output in make doc-only

    This helps to show the cause of errors in the CI.
    
    PR-URL: #18507
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    joyeecheung authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    9bce141 View commit details
    Browse the repository at this point in the history
  7. test: refactor test-http-abort-before-end

    This test was added over six years ago, and the behavior
    seems to have changed since then. When the test was originally
    written, common.mustCall() did not exist. The only assertion
    in this test was not actually executing. Instead of an 'error'
    event being emitted as expected, an 'abort' event was emitted.
    
    PR-URL: #18508
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    cbd698a View commit details
    Browse the repository at this point in the history
  8. readline: use Date.now() and move test to parallel

    The readline module wants a truthy time while using Timer.now() doesn't
    necessarily guarantee that early on in the process' life. It also
    doesn't actually resolve the timing issues experienced in an earlier
    issue. Instead, this PR fixes the related tests and moves them back
    to parallel.
    
    Refs: #14674
    
    PR-URL: #18563
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    apapirovski authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    1faae90 View commit details
    Browse the repository at this point in the history
  9. doc: be more explicit in the sypnosis

    Assuming less knowledge on the part of the reader, making it easier
    to get start using Node.js.
    
    PR-URL: #17977
    Fixes: #17970,
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    timotew authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    50bdf0e View commit details
    Browse the repository at this point in the history
  10. tools: add fixer for prefer-assert-iferror.js

    PR-URL: #16648
    Refs: #16636
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    shobhitchittora authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    d4bcccc View commit details
    Browse the repository at this point in the history
  11. doc: modify the return value of request.write()

    PR-URL: #18526
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    陈刚 authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    1ea1970 View commit details
    Browse the repository at this point in the history
  12. build: add doc linting when runnning make lint

    Fixes: #18466
    
    PR-URL: #18472
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    camilo86 authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    7b6d93c View commit details
    Browse the repository at this point in the history
  13. doc: add introduce about cli options

    PR-URL: #18475
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    starkwang authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    8ca6d34 View commit details
    Browse the repository at this point in the history
  14. doc: add section for strategic initiatives

    Add reference to strategic initiatives on core README.md
    in order to ensure broarder visibility.
    
    PR-URL: #17104
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    mhdawson authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    73adadd View commit details
    Browse the repository at this point in the history
  15. doc: expand on promises and async_hooks

    AsyncHooks have a few subtleties with being able to track promises.
    This commit adds a section to the docs that explains things the issues.
    
    PR-URL: #18540
    Fixes: #18520
    Reviewed-By: James M Snell <[email protected]>
    ofrobots authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    25db460 View commit details
    Browse the repository at this point in the history
  16. stream: cleanup() when unpiping all streams.

    This PR makes sure the object emitted as the 'unpipe'
    event in the destination stream is not shared between
    destination, as it would be muted.
    
    Refs: #12746
    PR-URL: #18266
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    陈刚 authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    10231a9 View commit details
    Browse the repository at this point in the history
  17. doc: add devsnek to collaborators

    PR-URL: #18679
    Fixes: #18544
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    devsnek authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    176ed1e View commit details
    Browse the repository at this point in the history
  18. doc: fix links to Style Guide and CPP Style Guide

    PR-URL: #18683
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    justin0022 authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    d30c353 View commit details
    Browse the repository at this point in the history
  19. src: replace var for let / const.

    Replace var for let or const.
    
    PR-URL: #18649
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Julian Duque <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    estrada9166 authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    973488b View commit details
    Browse the repository at this point in the history
  20. fs: fix stack overflow in fs.readdirSync

    Previously, fs.readdirSync calls the function returned by
    env->push_values_to_array_function() in batch and check the returned
    Maybe right away in C++, which can lead to assertions if the call stack
    already reaches the maximum size. This patch fixes that by returning
    early the call fails so the stack overflow error will be properly
    thrown into JS land.
    
    PR-URL: #18647
    Fixes: #18645
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    2995506 View commit details
    Browse the repository at this point in the history
  21. doc: add history for url.parse

    PR-URL: #18685
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    styfle authored and gibfahn committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    16f9631 View commit details
    Browse the repository at this point in the history
  22. src: fix crypto.pbkdf2 callback error argument

    Callbacks should always return `null` instead of `undefined` if no
    error occurred.
    
    PR-URL: #18458
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    BufoViridis authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    b48ca0a View commit details
    Browse the repository at this point in the history
  23. build: no longer have v8-debug.h as dependency.

    Ref: #18643
    
    PR-URL: #18677
    Refs: #18643
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    hashseed authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    88d3028 View commit details
    Browse the repository at this point in the history
  24. doc: add mmarchini to collaborators

    PR-URL: #18740
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Matheus Marchini authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    b8f2acd View commit details
    Browse the repository at this point in the history
  25. doc: move Fedor to TSC Emeritus

    In a conversation Fedor requested that this PR be made. They plan
    to continue working on core as a Collaborator. It is this committers
    belief that if Fedor would like to join the TSC again in the future
    there is no reason that could not be made possible.
    
    Thanks for all the hard work!
    
    PR-URL: #18752
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    f4ddaae View commit details
    Browse the repository at this point in the history
  26. lib: set process.execPath on OpenBSD

    PR-URL: #18543
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    qbit authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    9129bc4 View commit details
    Browse the repository at this point in the history
  27. test: update a few tests to work on OpenBSD

    PR-URL: #18543
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    qbit authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    9236332 View commit details
    Browse the repository at this point in the history
  28. deps: V8: backport 76c3ac5 from upstream

    This fixes a bug in the CPU profiler where some ticks were attributed
    to the wrong file.
    
    Original commit message:
      [cpu-profiler] Fix script name when recording inlining info
    
      Use the script name from the shared function info to create an
      inline entry. Otherwise functions are attributed to the wrong file
      in the CpuProfileNode.
    
      See googleapis/cloud-profiler-nodejs#89
    
      Bug: v8:7203, v8:7241
      Change-Id: I8ea31943741770e6611275a9c93375922b934547
      Reviewed-on: https://chromium-review.googlesource.com/848093
      Reviewed-by: Jaroslav Sevcik <[email protected]>
      Commit-Queue: Franziska Hinkelmann <[email protected]>
      Cr-Commit-Position: refs/heads/master@{#50339}
    
    Refs: v8/v8@76c3ac5
    PR-URL: #18298
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    ofrobots authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    ab00559 View commit details
    Browse the repository at this point in the history
  29. cluster: fix inspector port assignment

    Make sure that inspector ports in cluster are inside the valid range:
    `[1024, 65535]`.
    Fixes flaky `test-inspector-port-zero-cluster`.
    
    PR-URL: #18696
    Fixes: #18303
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    santigimeno authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    bf4d074 View commit details
    Browse the repository at this point in the history
  30. http: allow _httpMessage to be GC'ed

    Set `socket._httpMessage` to `null` before emitting the `'connect'` or
    `'upgrade'` event.
    
    PR-URL: #18865
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    lpinca authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    29c395d View commit details
    Browse the repository at this point in the history
  31. src: fix abort when taking a heap snapshot

    Remove an erroneous CHECK that asserted the persistent object's internal
    field pointer still pointed to a valid object.  If ClearWrap() has been
    called, the field pointer equals nullptr and that is expected behavior.
    
    PR-URL: #18898
    Fixes: #18256
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    bnoordhuis authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    42b4f3c View commit details
    Browse the repository at this point in the history
  32. http: remove default 'drain' listener on upgrade

    Ensure that the default `'drain'` listener is removed before the
    `'connect'` or `'upgrade'` event is emitted.
    
    PR-URL: #18866
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    lpinca authored and MylesBorins committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    6bfdba1 View commit details
    Browse the repository at this point in the history
  33. doc: fix MDN links to avoid redirections

    developer.mozilla.org/en/... -> developer.mozilla.org/en-US/...
    
    PR-URL: #18631
    Backport-PR-URL: #20005
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    vsemozhetbyt authored and BethGriggs committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    b221379 View commit details
    Browse the repository at this point in the history
  34. net: remove Socket.prototoype.read

    Unused since 34b535f.
    
    PR-URL: #18568
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and BethGriggs committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    3225601 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2018

  1. test: add unhandled rejection guard

    Add an unhandled rejection function in
    addons-napi/test_promise/test.js. Also, add a
    rejection handler to catch the unhandled rejection
    after introducing the guard and test the reason
    code.
    
    Backport-PR-URL: #19265
    PR-URL: #17275
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    babygoat authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    077e187 View commit details
    Browse the repository at this point in the history
  2. test: remove literals that obscure assert messages

    Remove string literals as messages to `assert.strictEqual()`. They can
    be misleading here (where perhaps the reason an assertino failed isn't
    that the deleter wasn't called but rather was called too many times.
    
    Backport-PR-URL: #19265
    PR-URL: #17642
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Trott authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    2e100c8 View commit details
    Browse the repository at this point in the history
  3. n-api: fix memory leak in napi_async_destroy()

    Backport-PR-URL: #19265
    PR-URL: #17714
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    alnyan authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    a744535 View commit details
    Browse the repository at this point in the history
  4. test: remove ambiguous error messages from test_error

    assert.strictEqual accepts 3 arguments, the last of which allows for
    user-specified error message to be thrown when the assertion fails.
    Unfortunately, this error message is less helpful than the default when
    it is vague. This commit removes vague, user-specified error messages,
    instead relying on clearer, default error messages.
    
    Backport-PR-URL: #19265
    PR-URL: #17812
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    nadrane authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    ad8c079 View commit details
    Browse the repository at this point in the history
  5. doc: updates examples to use NULL

    Examples in the N-API doc used a mix of nullptr and NULL.
    We should be consistent and because N-API is a 'C' API I believe
    using NULL is better.  This will avoid any potential confusion
    as to whether N-API can be used with plain C.
    
    Backport-PR-URL: #19265
    PR-URL: #18008
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    79ecc2c View commit details
    Browse the repository at this point in the history
  6. n-api: throw RangeError in napi_create_dataview() with invalid range

    The API is required that `byte_length + byte_offset` is less than or
    equal to the size in bytes of the array passed in. If not, a RangeError
    exception is raised[1].
    
    [1] https://nodejs.org/api/n-api.html#n_api_napi_create_dataview
    
    Backport-PR-URL: #19265
    PR-URL: #17869
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    romandev authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    48be8a4 View commit details
    Browse the repository at this point in the history
  7. n-api: expose n-api version in process.versions

    Expose n-api version in process.versions so that it is
    available for use in javascript by external modules
    like node-pre-gyp. It was previously accessible through
    a functon available in the N-API.
    
    Backport-PR-URL: #19265
    PR-URL: #18067
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießn <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    853b4d5 View commit details
    Browse the repository at this point in the history
  8. doc: napi: fix unbalanced emphasis

    Some of the section headers had unbalanced emphasis.
    
    Backport-PR-URL: #19265
    PR-URL: #18122
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Kyle Farnung <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    ofrobots authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    02ae329 View commit details
    Browse the repository at this point in the history
  9. doc: napi: make header style consistent

    Some of the API section headers had emphasis, while others did not.
    Use a consistent style (no emphasis) for all of them, as that matches
    our other API docs.
    
    Backport-PR-URL: #19265
    PR-URL: #18122
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Kyle Farnung <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    ofrobots authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    51513fd View commit details
    Browse the repository at this point in the history
  10. n-api: throw RangeError napi_create_typedarray()

    According to the ECMA spec, we should throw a RangeError in the
    following cases:
      - `(length * elementSize) + offset` > the size of the array passed in
      - `offset % elementSize` != `0`
    
    In the current implementation, this check was omitted. So, the following
    code will cause a crash.
      ```
      napi_create_typedarray(env, napi_uint16_array, 2 /* length */,
                             buffer, 1 /* byte_offset */, &output_array);
      ```
    
    This change fixes the problem and write some related tests.
    
    Refs:
    https://tc39.github.io/ecma262/#sec-typedarray-buffer-byteoffset-length
    
    Backport-PR-URL: #19265
    PR-URL: #18037
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    romandev authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    ca10fda View commit details
    Browse the repository at this point in the history
  11. test: fixed typos in napi test

    Backport-PR-URL: #19265
    PR-URL: #18148
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    furstenheim authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    8cfa878 View commit details
    Browse the repository at this point in the history
  12. doc: remove uannecessary Require

    This was the only instance were we said a parameter
    was required.  It is assumed parameters are required unless
    the doc says they are option.  Remove `Required` to make
    consistent with the rest of the doc
    
    Backport-PR-URL: #19265
    PR-URL: #18184
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    84e0a03 View commit details
    Browse the repository at this point in the history
  13. timers: allow Immediates to be unrefed

    Refactor Immediates handling to allow for them to be unrefed, similar
    to setTimeout, but without extra handles.
    
    Document the new `immediate.ref()` and `immediate.unref()` methods.
    
    Add SetImmediateUnref on the C++ side.
    
    Backport-PR-URL: #19265
    PR-URL: #18139
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    apapirovski authored and MylesBorins committed May 1, 2018
    1 Configuration menu
    Copy the full SHA
    e15f577 View commit details
    Browse the repository at this point in the history
  14. test: refactor addons-napi/test_exception/test.js

    * provide block scoping to prevent unintended side effects
    * remove confusing and unnecessary assertion message
    * use consisitent `actual, expected` argument order for assertions
    
    Backport-PR-URL: #19265
    PR-URL: #18340
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    5b1b74c View commit details
    Browse the repository at this point in the history
  15. n-api: change assert ok check to notStrictEqual.

    Backport-PR-URL: #19265
    PR-URL: #18414
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    nbdaaron authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    af655f5 View commit details
    Browse the repository at this point in the history
  16. test: show pending exception error in napi tests

    Shows the result of the wasPending in the error message if the
    assertion fails.
    
    Backport-PR-URL: #19265
    PR-URL: #18413
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    reccanti authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    bebcdfe View commit details
    Browse the repository at this point in the history
  17. n-api: implement wrapping using private properties

    Backport-PR-URL: #19265
    PR-URL: #18311
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Fixes: #14367
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    d89f593 View commit details
    Browse the repository at this point in the history
  18. n-api: wrap control flow macro in do/while

    Make CHECK_ENV() safe to use in the following context:
    
        if (condition)
          CHECK_ENV(env);
        else
          something_else();
    
    Backport-PR-URL: #19265
    PR-URL: #18532
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    bnoordhuis authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    969a520 View commit details
    Browse the repository at this point in the history
  19. doc: remove usage of you in n-api doc

    We avoid using 'you' in the documentation based on our
    guidelines. Remove usage in the n-api doc.
    
    Backport-PR-URL: #19265
    PR-URL: #18528
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    7ed1dfe View commit details
    Browse the repository at this point in the history
  20. doc: small typo in n-api.md

    Backport-PR-URL: #19265
    PR-URL: #18555
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    iSkore authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    9729278 View commit details
    Browse the repository at this point in the history
  21. n-api: add methods to open/close callback scope

    Add support for the following methods;
      napi_open_callback_scope
      napi_close_callback_scope
    
    These are needed when running asynchronous methods directly
    using uv.
    
    Backport-PR-URL: #19265
    PR-URL: #18089
    Fixes: #15604
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    927fc0b View commit details
    Browse the repository at this point in the history
  22. n-api: remove extra reference from test

    Backport-PR-URL: #19265
    PR-URL: #18542
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    9244e1d View commit details
    Browse the repository at this point in the history
  23. doc: fix typo in n-api.md

    Backport-PR-URL: #19265
    PR-URL: #18590
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    4d43607 View commit details
    Browse the repository at this point in the history
  24. test: improve error message output

    Backport-PR-URL: #19265
    PR-URL: #18498
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    bshankar authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    5c0983e View commit details
    Browse the repository at this point in the history
  25. test: convert new tests to use error types

    Backport-PR-URL: #19265
    PR-URL: #18581
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    jackhorton authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    2838f9b View commit details
    Browse the repository at this point in the history
  26. doc: fix exporting a function example

    Missing the length argument in napi_create_function.
    
    Backport-PR-URL: #19265
    PR-URL: #18661
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Aonghus O Nia authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    58688d9 View commit details
    Browse the repository at this point in the history
  27. doc: mark NAPI_AUTO_LENGTH as code

    Backport-PR-URL: #19265
    PR-URL: #18697
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jeremiah Senkpiel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    tniessen authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    87d0fd8 View commit details
    Browse the repository at this point in the history
  28. test: remove unnecessary timer

    The timer in NAPI's test_callback_scope/test-resolve-async.js
    can be removed. If the test fails, it will timeout on its own.
    The extra timer increases the chances of the test being
    flaky.
    
    Backport-PR-URL: #19265
    PR-URL: #18719
    Fixes: #18702
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    6129ff4 View commit details
    Browse the repository at this point in the history
  29. n-api: fix object test

    Passing a pointer to a static integer is sufficient for the test.
    
    Backport-PR-URL: #19265
    PR-URL: #19039
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Hitesh Kanwathirtha <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    cb3f90a View commit details
    Browse the repository at this point in the history
  30. doc: fix n-api asynchronous threading docs

    Documentation for N-API Custom Asynchronous Operations incorrectly
    stated that async execution happens on the main event loop.
    Added details to napi_create_async_work about which threads are
    used to invoke the execute and complete callbacks.
    
    Changed 'async' to 'asynchronous' in the documentation for Custom
    Asynchronous Operations. Changed "executes in parallel" to "can
    execute in parallel" for the documentation of napi_create_async_work
    execute parameter.
    
    Backport-PR-URL: #19265
    PR-URL: #19073
    Fixes: #19071
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    ebickle authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    1abb168 View commit details
    Browse the repository at this point in the history
  31. n-api: update reference test

    Remove the necessity for allocating on the heap, and assert that the
    correct pointer gets passed to the finalizer.
    
    Backport-PR-URL: #19265
    PR-URL: #19086
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    b26410e View commit details
    Browse the repository at this point in the history
  32. n-api: update documentation

    Document which APIs work while an exception is pending. This is the
    list of all APIs which do not start with `NAPI_PREAMBLE(env)`.
    
    Fixes: nodejs/abi-stable-node#257
    Backport-PR-URL: #19265
    PR-URL: #19078
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    df63adf View commit details
    Browse the repository at this point in the history
  33. n-api: resolve promise in test

    The last promise created by the test for the purposes of making sure
    that its type is indeed a promise needs to be resolved so as to avoid
    having it left in the pending state at the end of the test.
    
    Backport-PR-URL: #19265
    PR-URL: #19245
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    faf94b1 View commit details
    Browse the repository at this point in the history
  34. n-api,test: add a new.target test to addons-napi

    Added a N-API test to verify new.target behavior.
    
    Backport-PR-URL: #19265
    PR-URL: #19236
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    boingoing authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    4c1181d View commit details
    Browse the repository at this point in the history
  35. n-api,test: add int64 bounds tests

    Added some simple tests to verify that the int64 API is correctly
    handling numbers greater than 32-bits. This is a basic test, but
    verifies that an implementer hasn't truncated back to 32-bits.
    
    Refs: nodejs/node-chakracore#496
    
    Backport-PR-URL: #19265
    PR-URL: #19309
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gabriel Schulhof <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    kfarnung authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    584fadc View commit details
    Browse the repository at this point in the history
  36. doc: fix typos on n-api

    Backport-PR-URL: #19265
    PR-URL: #19385
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    shama authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    7c6fa18 View commit details
    Browse the repository at this point in the history
  37. n-api: add missing exception checking

    Add checks for a pending exception in napi_make_callback
    after the callback has been invoked.  If there is a pending
    exception then we need to avoid checking the result as that
    will not be able to complete properly.
    
    Add additional checks to the unit test for napi_make_callback
    to catch this case.
    
    Backport-PR-URL: #19265
    PR-URL: #19362
    Fixes: nodejs/node-addon-api#235
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    f29d8e0 View commit details
    Browse the repository at this point in the history
  38. n-api: separate out async_hooks test

    Place the test_make_callback async_hooks-related test into its own file.
    
    Backport-PR-URL: #19265
    PR-URL: #19392
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    9949d55 View commit details
    Browse the repository at this point in the history
  39. n-api: add napi_fatal_exception

    Add function to trigger and uncaught exception.
    Useful if an async callback throws an exception with
    no way to recover.
    
    Backport-PR-URL: #19265
    PR-URL: #19337
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    mafintosh authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    3a6b7e6 View commit details
    Browse the repository at this point in the history
  40. n-api: re-write test_make_callback

    This re-writes the test in C by dropping std::vector<napi_value> in
    favour of a C99 variable length array, and by dropping the anonymous
    namespace in favour of static function declarations.
    
    Backport-PR-URL: #19265
    PR-URL: #19448
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    24b8bb6 View commit details
    Browse the repository at this point in the history
  41. doc: Add a missing comma

    Backport-PR-URL: #19265
    PR-URL: #19555
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    leaves4j authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    f0ba2c6 View commit details
    Browse the repository at this point in the history
  42. n-api: bump version of n-api supported

    Bump the version due to additions to the api.
    
    Backport-PR-URL: #19265
    PR-URL: #19497
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    mhdawson authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    367113f View commit details
    Browse the repository at this point in the history
  43. n-api: ensure in-module exceptions are propagated

    Whenever we call into an addon, whether it is for a callback, for
    module init, or for async work-related reasons, we should make sure
    that
    
    * the last error is cleared,
    * the scopes before the call are the same as after, and
    * if an exception was thrown and captured inside the module, then it is
      re-thrown after the call.
    
    Therefore we should call into the module in a unified fashion. This
    change introduces the macro NAPI_CALL_INTO_MODULE() which should be
    used whenever invoking a callback provided by the module.
    
    Fixes: #19437
    Backport-PR-URL: #19265
    PR-URL: #19537
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    92f699e View commit details
    Browse the repository at this point in the history
  44. n-api: back up env before finalize

    Heed the comment to not use fields of a Reference after calling its
    finalize callback, because such a call may destroy the Reference.
    
    Fixes: #19673
    Backport-PR-URL: #19265
    PR-URL: #19718
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Gabriel Schulhof authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    8b3ef46 View commit details
    Browse the repository at this point in the history
  45. n-api: add more int64_t tests

    * Updated tests for `Number` and `int32_t`
    * Added new tests for `int64_t`
    * Updated N-API `int64_t` behavior to return zero for all non-finite
      numbers
    * Clarified the documentation for these calls.
    
    Backport-PR-URL: #19265
    PR-URL: #19402
    Refs: nodejs/node-chakracore#500
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    kfarnung authored and MylesBorins committed May 1, 2018
    Configuration menu
    Copy the full SHA
    07a6770 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2018

  1. src: minor refactoring to StreamBase writes

    Instead of having per-request callbacks, always call a callback
    on the `StreamBase` instance itself for `WriteWrap` and `ShutdownWrap`.
    
    This makes `WriteWrap` cleanup consistent for all stream classes,
    since the after-write callback is always the same now.
    
    If special handling is needed for writes that happen to a sub-class,
    `AfterWrite` can be overridden by that class, rather than that
    class providing its own callback (e.g. updating the write
    queue size for libuv streams).
    
    If special handling is needed for writes that happen on another
    stream instance, the existing `after_write_cb()` callback
    is used for that (e.g. custom code after writing to the
    transport from a TLS stream).
    
    As a nice bonus, this also makes `WriteWrap` and `ShutdownWrap`
    instances slightly smaller.
    
    Backport-PR-URL: #20456
    PR-URL: #17564
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    45e28a8 View commit details
    Browse the repository at this point in the history
  2. src: replace SetAccessor w/ SetAccessorProperty

    Backport-PR-URL: #20456
    PR-URL: #17665
    Fixes: #17636
    Refs: #16482
    Refs: #16860
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    jure authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    f3e082c View commit details
    Browse the repository at this point in the history
  3. test: add hasCrypto when using binding('crypto')

    Currently, when configured --without-ssl tests that use
    process.binding('crypto') fail with the following error:
    
    === release test-accessor-properties ===
    Path: parallel/test-accessor-properties
    node/test/parallel/test-accessor-properties.js:16
    const crypto = process.binding('crypto');
                           ^
    
    Error: No such module: crypto
        at Object.<anonymous> (test-accessor-properties.js:16:24)
        at Module._compile (module.js:660:30)
        at Object.Module._extensions..js (module.js:671:10)
        at Module.load (module.js:577:32)
        at tryModuleLoad (module.js:517:12)
        at Function.Module._load (module.js:509:3)
        at Function.Module.runMain (module.js:701:10)
        at startup (bootstrap_node.js:194:16)
        at bootstrap_node.js:645:3
    
    This commit adds a hasCrypto check.
    
    Backport-PR-URL: #20456
    PR-URL: #17867
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    danbev authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9e68947 View commit details
    Browse the repository at this point in the history
  4. test: make test-tls-external-accessor agnostic

    Remove reliance on V8-specific error messages in
    test/parallel/test-tls-external-accessor.js.
    
    Check that the error is a `TypeError`.
    
    The test should now be successful without modification using ChakraCore.
    
    Backport-PR-URL: #20456
    PR-URL: #16272
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Trott authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    7eba62e View commit details
    Browse the repository at this point in the history
  5. perf_hooks: refactor internals

    Refactor and simplify the perf_hooks native internals.
    
    Backport-PR-URL: #20456
    PR-URL: #17822
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    54442ef View commit details
    Browse the repository at this point in the history
  6. http2: simplify onSelectPadding

    `OnCallbackPadding` on the native side already clamps
    the return value into the right range, so there’s not need
    to also do that on the JS side.
    
    Also, use `>>> 0` instead of `| 0` to get an uint32, since
    the communication with C++ land happens through an Uint32Array.
    
    Backport-PR-URL: #20456
    PR-URL: #17717
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    a1539e5 View commit details
    Browse the repository at this point in the history
  7. deps: update nghttp2 to 1.29.0

    Backport-PR-URL: #20456
    PR-URL: #17908
    Refs: #17746
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9acc7f3 View commit details
    Browse the repository at this point in the history
  8. src: add optional keep-alive object to SetImmediate

    Adds the possibility to keep a strong persistent reference to
    a JS object while a `SetImmediate()` call is in effect.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17183
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    2b77327 View commit details
    Browse the repository at this point in the history
  9. http2: don't call into JS from GC

    Calling into JS land from GC is not allowed, so delay
    the resolution of pending pings when a session is destroyed.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17183
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    38cfb70 View commit details
    Browse the repository at this point in the history
  10. http2: only schedule write when necessary

    Introduce an `Http2Scope` class that, when it goes out of scope,
    checks whether a write to the network is desired by nghttp2.
    If that is the case, schedule a write using `SetImmediate()`
    rather than a custom per-session libuv handle.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17183
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    8431b42 View commit details
    Browse the repository at this point in the history
  11. http2: be sure to destroy the Http2Stream

    Backport-PR-URL: #20456
    PR-URL: #17406
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    
    Backport-PR-URL: #18050
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    1d65f2b View commit details
    Browse the repository at this point in the history
  12. http2: cleanup Http2Stream/Http2Session destroy

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17406
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    
    This is a significant cleanup and refactoring of the
    cleanup/close/destroy logic for Http2Stream and Http2Session.
    There are significant changes here in the timing and ordering
    of cleanup logic, JS apis. and various related necessary edits.
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    fc40b7d View commit details
    Browse the repository at this point in the history
  13. http2: remove redundant write indirection

    `nghttp2_stream_write_t` was not a necessary redirection layer
    and came with the cost of one additional allocation per stream write.
    
    Also, having both `nghttp2_stream_write` and `nghttp2_stream_write_t`
    as identifiers did not help with readability.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17718
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    05b823d View commit details
    Browse the repository at this point in the history
  14. http2: refactor outgoing write mechanism

    - Only finish outgoing `WriteWrap`s once data has actually been
      passed to the underlying socket.
      - This makes HTTP2 streams respect backpressure
    - Use `DoTryWrite` as a shortcut for sending out as much of
      the data synchronously without blocking as possible
    - Use `NGHTTP2_DATA_FLAG_NO_COPY` to avoid copying DATA frame
      contents into nghttp2’s buffers before sending them out.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17718
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    ea98fd5 View commit details
    Browse the repository at this point in the history
  15. http2: convert Http2Settings to an AsyncWrap

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17763
    Refs: #17746
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    0463221 View commit details
    Browse the repository at this point in the history
  16. http2: fix compiling with --debug-http2

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17863
    Fixes: #17840
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    c61a54e View commit details
    Browse the repository at this point in the history
  17. http2: keep session objects alive during Http2Scope

    Keep a local handle as a reference to the JS `Http2Session`
    object so that it will not be garbage collected
    when inside an `Http2Scope`, because the presence of the
    latter usually indicates that further actions on
    the session object are expected.
    
    Strictly speaking, storing the `session_handle_` as a
    property on the scope object is not necessary, but
    this is not very costly and makes the code more
    obviously correct.
    
    Fixes: #17840
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17863
    Fixes: #17840
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    55f6bdb View commit details
    Browse the repository at this point in the history
  18. http2: implement ref() and unref() on client sessions

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17620
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    kjin authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    72b42de View commit details
    Browse the repository at this point in the history
  19. http2: perf_hooks integration

    Collect and report basic timing information about `Http2Session`
    and `Http2Stream` instances.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17906
    Refs: #17746
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    dcc7f4d View commit details
    Browse the repository at this point in the history
  20. http2,perf_hooks: perf state using AliasedBuffer

    This is the portion of be2cbcc that is not in dea44b9.
    
    Update performance_state to use AliasedBuffer and update usage sites.
    
    Backport-PR-URL: #20456
    PR-URL: #18300
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    kfarnung authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9a4bac2 View commit details
    Browse the repository at this point in the history
  21. http2: strictly limit number on concurrent streams

    Strictly limit the number of concurrent streams based on the
    current setting of the MAX_CONCURRENT_STREAMS setting
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #16766
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Sebastiaan Deckers <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    c915bc5 View commit details
    Browse the repository at this point in the history
  22. http2: add altsvc support

    This commit also includes prerequisite error definitions
    from c75f87c and 1698c8e.
    
    Add support for sending and receiving ALTSVC frames.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17917
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    1a24fec View commit details
    Browse the repository at this point in the history
  23. tls: set servername on client side too

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17935
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Sebastiaan Deckers <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    95c1e2d View commit details
    Browse the repository at this point in the history
  24. http2: add initial support for originSet

    Add new properties to `Http2Session` to identify alpnProtocol,
    and indicator about whether the session is TLS or not, and
    initial support for origin set (preparinng for `ORIGIN` frame
    support and the client-side `Pool` implementation.
    
    The `originSet` is the set of origins for which an `Http2Session`
    may be considered authoritative. Per the `ORIGIN` frame spec,
    the originSet is only valid on TLS connections, so this is only
    exposed when using a `TLSSocket`.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17935
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Sebastiaan Deckers <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    1c313e0 View commit details
    Browse the repository at this point in the history
  25. http2: add aligned padding strategy

    Add a padding strategy option that makes a best attempt to ensure
    that total frame length for DATA and HEADERS frames are aligned
    on multiples of 8-bytes.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17938
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    0078a97 View commit details
    Browse the repository at this point in the history
  26. http2: properly handle already closed stream error

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17942
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9a6ea7e View commit details
    Browse the repository at this point in the history
  27. doc: add docs for common/http2.js utility

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17942
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    35ee894 View commit details
    Browse the repository at this point in the history
  28. src: silence http2 -Wunused-result warnings

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17954
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cjihrig authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    3766e04 View commit details
    Browse the repository at this point in the history
  29. http2: implement maxSessionMemory

    The maxSessionMemory is a cap for the amount of memory an
    Http2Session is permitted to consume. If exceeded, new
    `Http2Stream` sessions will be rejected with an
    `ENHANCE_YOUR_CALM` error and existing `Http2Stream`
    instances that are still receiving headers will be
    terminated with an `ENHANCE_YOUR_CALM` error.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17967
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9c85ada View commit details
    Browse the repository at this point in the history
  30. http2: verify that a dependency cycle may exist

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17968
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    a85518e View commit details
    Browse the repository at this point in the history
  31. doc: grammar fixes in http2.md

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17972
    Reviewed-By: Weijia Wang <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Trott authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    591f78b View commit details
    Browse the repository at this point in the history
  32. http2: verify flood error and unsolicited frames

    * verify protections against ping and settings flooding
    * Strictly handle and verify handling of unsolicited ping and
      settings frame acks.
    
    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17969
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    46d1b33 View commit details
    Browse the repository at this point in the history
  33. doc: correct spelling

    Backport-PR-URL: #18050
    Backport-PR-URL: #20456
    PR-URL: #17911
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Weijia Wang <[email protected]>
    sreepurnajasti authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    0205b3f View commit details
    Browse the repository at this point in the history
  34. doc: fix code nits in common/README

    1. Sync comments and code
    2. Fix typos
    
    Backport-PR-URL: #20456
    PR-URL: #17971
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 2, 2018
    1 Configuration menu
    Copy the full SHA
    c924adf View commit details
    Browse the repository at this point in the history
  35. doc: re-alphabetise sections in common/README.md

    Backport-PR-URL: #20456
    PR-URL: #17971
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    e9de5a9 View commit details
    Browse the repository at this point in the history
  36. doc: compact eslint directives in common/README

    Backport-PR-URL: #20456
    PR-URL: #17971
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9404573 View commit details
    Browse the repository at this point in the history
  37. http2: use aliased buffer for perf stats, add stats

    Add an aliased buffer for session and stream statistics,
    add a few more metrics
    
    Backport-PR-URL: #20456
    PR-URL: #18020
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    3cd2054 View commit details
    Browse the repository at this point in the history
  38. doc: update pushStream docs to use err first

    Refs: #17406 (comment)
    
    Backport-PR-URL: #20456
    PR-URL: #18088
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    d9d0d0e View commit details
    Browse the repository at this point in the history
  39. doc: fix s/rstStream/close in example

    Backport-PR-URL: #20456
    PR-URL: #18088
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    88babd5 View commit details
    Browse the repository at this point in the history
  40. perf_hooks,http2: add performance.clear()

    Add missing clear() method to `perf_hooks.performance` to
    remove the entries from the master timeline to prevent
    that from being a memory leak.
    
    Backport-PR-URL: #20456
    PR-URL: #18046
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    6bdfb1f View commit details
    Browse the repository at this point in the history
  41. http2: remember sent headers

    Add sentHeaders, sentTrailers, and sentInfoHeaders properties
    on `Http2Stream`.
    
    Backport-PR-URL: #20456
    PR-URL: #18045
    Fixes: #16619
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    a4d910c View commit details
    Browse the repository at this point in the history
  42. src: remove declarations for missing functions

    Backport-PR-URL: #20456
    PR-URL: #18134
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    0b828e5 View commit details
    Browse the repository at this point in the history
  43. src,doc,test: Fix common misspellings

    Backport-PR-URL: #20456
    PR-URL: #18151
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    silverwind authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    5e4f9b3 View commit details
    Browse the repository at this point in the history
  44. doc: fix typo in http2stream.close param default

    Backport-PR-URL: #20456
    PR-URL: #18166
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    maritz authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    fac76f9 View commit details
    Browse the repository at this point in the history
  45. src: introduce internal buffer slice constructor

    Add a C++ variant of `Buffer.from(arrayBuffer, offset, length)`.
    
    Backport-PR-URL: #20456
    PR-URL: #18030
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    4e807d6 View commit details
    Browse the repository at this point in the history
  46. http2: refactor read mechanism

    Refactor the read mechanism to completely avoid copying.
    
    Instead of copying individual `DATA` frame contents into buffers,
    create `ArrayBuffer` instances for all socket reads and emit
    slices of those `ArrayBuffer`s to JS.
    
    Backport-PR-URL: #20456
    PR-URL: #18030
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    8b0a1b3 View commit details
    Browse the repository at this point in the history
  47. http2: add checks for server close callback

    Verify that server close callbacks are being called
    
    Backport-PR-URL: #20456
    PR-URL: #18182
    Refs: #18176
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    jasnell authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    ac64b4f View commit details
    Browse the repository at this point in the history
  48. doc: fix documentation of http2Stream.pushstream()

    Improve documentation of callback signature of
    http2Stream.pushStream() function to align with
    the changes made in #17406.
    
    Backport-PR-URL: #20456
    PR-URL: #18258
    Fixes: #18198
    Refs: #17406
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    nephross authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    15023c7 View commit details
    Browse the repository at this point in the history
  49. doc: unify type linkification

    Backport-PR-URL: #20456
    PR-URL: #18407
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    9a4a8c1 View commit details
    Browse the repository at this point in the history
  50. doc: remove removed apis from http2 docs

    Backport-PR-URL: #20456
    PR-URL: #18439
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    kjin authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    2da965c View commit details
    Browse the repository at this point in the history
  51. doc: fix typo in http2.md

    Backport-PR-URL: #20456
    PR-URL: #18602
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 2, 2018
    Configuration menu
    Copy the full SHA
    39267e8 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2018

  1. http2: use _final instead of on('finish')

    Backport-PR-URL: #20456
    PR-URL: #18609
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    20fb59f View commit details
    Browse the repository at this point in the history
  2. doc: warn against concurrent http2stream.respondWithFD

    Upcoming changes to move away from synchronous I/O on the main
    thread will imply that using the same file descriptor to
    respond on multiple HTTP/2 streams at the same time is invalid,
    because at least on Windows `uv_fs_read()` is race-y.
    
    Therefore, warn against such usage.
    
    Backport-PR-URL: #20456
    PR-URL: #18762
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    30070c7 View commit details
    Browse the repository at this point in the history
  3. src: add nullptr check for session in DEBUG macro

    Currenlty when configuring --debug-http2
    /test/parallel/test-http2-getpackedsettings.js will segment fault:
    
    $ out/Debug/node test/parallel/test-http2-getpackedsettings.js
    Segmentation fault: 11
    
    This is happening because the settings is created with the Environment in
    PackSettings:
    Http2Session::Http2Settings settings(env);
    This will cause the session to be set to nullptr. When the init
    function is later called the expanded DEBUG_HTTP2SESSION macro will
    cause the segment fault when the session is dereferenced.
    
    Backport-PR-URL: #20456
    PR-URL: #18815
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    801a499 View commit details
    Browse the repository at this point in the history
  4. deps,src: align ssize_t ABI between Node & nghttp2

    Previously, we performed casts that are considered undefined behavior.
    Instead, just define `ssize_t` for nghttp2 the same way we define it
    for the rest of Node.
    
    Also, remove a TODO comment that would probably also be *technically*
    correct but shouldn’t matter as long as nobody is complaining.
    
    Backport-PR-URL: #20456
    PR-URL: #18565
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    5394bc5 View commit details
    Browse the repository at this point in the history
  5. http2: fix condition where data is lost

    Backport-PR-URL: #20456
    PR-URL: #18895
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    mcollina authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    f366373 View commit details
    Browse the repository at this point in the history
  6. http2: send error text in case of ALPN mismatch

    Send a human-readable HTTP/1 response in case of an unexpected
    ALPN protocol. This helps with debugging this condition,
    since previously the only result of it would be a closed socket.
    
    Backport-PR-URL: #20456
    PR-URL: #18986
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    2a04f57 View commit details
    Browse the repository at this point in the history
  7. http2: use original error for cancelling pending streams

    Previously, if `session.destroy()` was called with an error object,
    the information contained in it would be discarded and a generic
    `ERR_HTTP2_STREAM_CANCEL` would be used for all pending streams.
    
    Instead, make the information from the original error object
    available.
    
    Backport-PR-URL: #20456
    PR-URL: #18988
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    7e4a9c9 View commit details
    Browse the repository at this point in the history
  8. http2: fix endless loop when writing empty string

    Backport-PR-URL: #20456
    PR-URL: #18924
    Fixes: #18169
    Refs: #18673
    Refs: https:/nodejs/node/blob/v9.5.0/src/node_http2.cc#L1481-L1484
    Refs: https:/nodejs/node/blob/v9.5.0/lib/_http_outgoing.js#L659-L661
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    b75897f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b066442 View commit details
    Browse the repository at this point in the history
  10. http2: fix flaky test-http2-https-fallback

    The test was flaky because it relied on a specific order of
    asynchronous operation that were fired paralellely. This was true
    on most platform and conditions, but not all the time.
    
    See: #18986
    
    Backport-PR-URL: #20456
    PR-URL: #19093
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    mcollina authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    bfd7d6d View commit details
    Browse the repository at this point in the history
  11. http2: no stream destroy while its data is on the wire

    This fixes a crash that occurred when a `Http2Stream` write
    is completed after it is already destroyed.
    
    Instead, don’t destroy the stream in that case and wait for
    GC to take over.
    
    Backport-PR-URL: #19185
    Backport-PR-URL: #20456
    PR-URL: #19002
    Fixes: #18973
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    addaleax authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    c976cb5 View commit details
    Browse the repository at this point in the history
  12. doc: add note about browsers and HTTP/2

    Backport-PR-URL: #20456
    PR-URL: #19476
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    styfle authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    da185ce View commit details
    Browse the repository at this point in the history
  13. http2: remove some unnecessary next ticks

    Backport-PR-URL: #20456
    PR-URL: #19451
    Reviewed-By: Matteo Collina <[email protected]>
    jasnell authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    e4c10e1 View commit details
    Browse the repository at this point in the history
  14. doc: rename HTTP2 to HTTP/2

    Previously, "HTTP/2" was strictly used to describe the protocol, and
    HTTP2 the module. This distinction is deemed unnecessary, and
    consistency between the two terms is enforced.
    
    Backport-PR-URL: #20456
    PR-URL: #19603
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Chen Gang <[email protected]>
    Reviewed-By: Shingo Inoue <[email protected]>
    TimothyGu authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    f59eab0 View commit details
    Browse the repository at this point in the history
  15. test: http2 stream.respond() error checks

    Backport-PR-URL: #19579
    Backport-PR-URL: #20456
    PR-URL: #18861
    Reviewed-By: James M Snell <[email protected]>
    trivikr authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    83d8ad3 View commit details
    Browse the repository at this point in the history
  16. http2: destroy() stream, upon errnoException

    First steps towards #19060
    
    Backport-PR-URL: #20456
    PR-URL: #19389
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    SirR4T authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    eddf3a6 View commit details
    Browse the repository at this point in the history
  17. doc: guard against md list parsing edge case

    Backport-PR-URL: #20456
    PR-URL: #19647
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Chen Gang <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    1ff3544 View commit details
    Browse the repository at this point in the history
  18. test: http2 errors on req.close()

    Backport-PR-URL: #19579
    Backport-PR-URL: #20456
    PR-URL: #18854
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    trivikr authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    4dbdb8a View commit details
    Browse the repository at this point in the history
  19. http2: callback valid check before closing request

    Do not close the request if callback is not a function, and
    throw ERR_INVALID_CALLBACK TypeError
    
    Backport-PR-URL: #19229
    Backport-PR-URL: #20456
    PR-URL: #19061
    Fixes: #18855
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Shingo Inoue <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    trivikr authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    6d6e2e2 View commit details
    Browse the repository at this point in the history
  20. doc, http2: add sections for server.close()

    Clarify current behavior of http2server.close() and
    http2secureServer.close() w.r.t. perceived differences
    when compared with httpServer.close().
    
    Fixes: #19711
    
    Backport-PR-URL: #20456
    PR-URL: #19802
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    chrismilleruk authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    84fa6eb View commit details
    Browse the repository at this point in the history
  21. doc: add Http2Session.connecting property

    Backport-PR-URL: #20456
    PR-URL: #19842
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    pietermees authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    165d214 View commit details
    Browse the repository at this point in the history
  22. http2: emit session connect on next tick

    Backport-PR-URL: #20456
    PR-URL: #19842
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    pietermees authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    1455b1d View commit details
    Browse the repository at this point in the history
  23. timers: fix a bug in error handling

    When a timeout within a list of timeouts (that consists of only
    that specific timeout) throws during its execution, it's possible
    for the TimerWrap handle to become shared between both that list
    and an unref'd timeout created in the future. This fixes the bug
    by extending error handling in timeout execution to check for
    whether the current list is empty and if so do cleanup on it.
    
    PR-URL: #20497
    Fixes: #19970
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Shingo Inoue <[email protected]>
    apapirovski authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    a52f15e View commit details
    Browse the repository at this point in the history
  24. build,win: restore vcbuild TAG functionality

    --tag needs to be set after `getnodeversion` because TAG is defined in
    there when DISTTYPE is not "release", setting it before `getnodeversion`
    leads to --tag not being passed down in to `configure` and
    src/node_version.h setting it as `-pre` by default. This change restores
    the functionality that properly sets the TAG for nightlies, rc builds
    and other custom build types.
    
    Ref: #17299
    Ref: nodejs/abi-stable-node#289
    
    PR-URL: #18031
    Ref: #17299
    Ref: nodejs/abi-stable-node#289
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: JoãReis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Kyle Farnung <[email protected]>
    rvagg authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    ab4809f View commit details
    Browse the repository at this point in the history
  25. 2018-05-15, Version 8.11.2 'Carbon' (LTS)

    Notable Changes:
    
    deps:
      - update node-inspect to 1.11.3 (Jan Krems)
        #18354
      - update nghttp2 to 1.29.0 (James M Snell)
        #17908
    http2:
      - Sync with current release stream
    n-api:
      - Sync with current release stream
    
    PR-URL: #20478
    MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    faf417b View commit details
    Browse the repository at this point in the history