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

[8.x Backport] backport multiple commits to 8.x #22380

Closed
wants to merge 33 commits into from

Commits on Aug 17, 2018

  1. v8: add new to the throw statement

    PR-URL: nodejs#13857
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    BridgeAR authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    60c81c0 View commit details
    Browse the repository at this point in the history
  2. process: Send signal name to signal handlers

    PR-URL: nodejs#15606
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Bartosz Sosnowski <[email protected]>
    robertrossmann authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    f56a4ba View commit details
    Browse the repository at this point in the history
  3. doc: readable.push(undefined) in non-object mode

    `readable.push()` supports `undefined` in non-object mode, but it was
    not previously documented.
    
    PR-URL: nodejs#18283
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    陈刚 authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    08ccba7 View commit details
    Browse the repository at this point in the history
  4. doc: add process.debugPort to doc/api/process.md

    Fixes: nodejs#18639
    
    PR-URL: nodejs#18716
    Refs: nodejs#18639
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    flickz authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    88adf76 View commit details
    Browse the repository at this point in the history
  5. doc: make the background section concise and improve its formality

    PR-URL: nodejs#18928
    Reviewed-By: Claudio Rodriguez <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Wilson authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    632f277 View commit details
    Browse the repository at this point in the history
  6. src: fix error message in async_hooks constructor

    There are two minor issues in the AsyncHook constructor, if the object
    passed in has an after and/or destroy property that are not functions
    the errors thrown will still be:
    TypeError [ERR_ASYNC_CALLBACK]: before must be a function
    
    This commit updates the code and adds a unit test.
    
    PR-URL: nodejs#19000
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    danbev authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    6456de8 View commit details
    Browse the repository at this point in the history
  7. http: prevent aborted event when already completed

    When socket is closed on a response for a request that is being piped to
    a stream there is a condition where aborted event will be fired to http
    client when socket is closing and the incomingMessage stream is still
    set to readable.
    
    We need a check for request being complete and to only raise the
    'aborted' event on the http client if we have not yet completed reading
    the response from the server.
    
    Fixes: nodejs#18756
    
    PR-URL: nodejs#18999
    Reviewed-By: Shingo Inoue <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    billywhizz authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    ac34737 View commit details
    Browse the repository at this point in the history
  8. http: prevent aborted event when already completed

    Tests in progress to reproduce issue consistently.
    
    Fixes: nodejs#18756
    
    PR-URL: nodejs#18999
    Reviewed-By: Shingo Inoue <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    billywhizz authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    33cd733 View commit details
    Browse the repository at this point in the history
  9. test: refactor test after review

    PR-URL: nodejs#18999
    Reviewed-By: Shingo Inoue <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    billywhizz authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    b80c59b View commit details
    Browse the repository at this point in the history
  10. test: specify 'dir' for directory symlinks

    Directory symlinks in Windows require the 'dir' flag to be passed to
    create the symlink correctly.
    
    PR-URL: nodejs#19049
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    kfarnung authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    eb03707 View commit details
    Browse the repository at this point in the history
  11. doc: add RegExp Unicode Property Escapes to intl

    PR-URL: nodejs#19052
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    vsemozhetbyt authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    2320afd View commit details
    Browse the repository at this point in the history
  12. doc: Readable unpipe on Writable error event

    PR-URL: nodejs#18080
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    GeorgeSapkin authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    3f0973f View commit details
    Browse the repository at this point in the history
  13. doc: update list of re-exported symbols

    libuv and zlib symbols are also purposefully re-exported by Node.js for
    use in Addons.
    
    Refs: nodejs#17444
    
    PR-URL: nodejs#19013
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    richardlau authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    aaa6fe5 View commit details
    Browse the repository at this point in the history
  14. doc: add URL.format() example

    PR-URL: nodejs#18888
    Fixes: nodejs#18887
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Roman Reiss <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    zeke authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    8f6b0bd View commit details
    Browse the repository at this point in the history
  15. doc: add simple example to rename function

    Added a simple example showing how to rename
    a file.
    
    Refs: https://github.com/nodejs/node/issues11135
    
    PR-URL: nodejs#18812
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    punteek authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    2552af9 View commit details
    Browse the repository at this point in the history
  16. doc: remove tentativeness in pull-requests.md

    There are some uses of "in general" that are unnecessary. (We don't need
    to be tentative about the fact that tests should pass, for example.)
    
    PR-URL: nodejs#19123
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    472874d View commit details
    Browse the repository at this point in the history
  17. doc: remove subsystem from pull request template

    Remove request that user provide a list of subsystems in the pull
    request template.
    
    * We already ask them to put the subsystems in the first line of the
      commit message.
    * The subsystem is usually easy to determine.
    * We have a bot that applies subsystem labels on new PRs and it seems to
      do a rather good job. Tools over rules. Let the bot do it.
    * The fewer unnecessary things we ask for in the template, the lower the
      barrier to entry.
    * Anecdotal, but I have never found it useful to have the person
      submitting the PR list out subsystems in the pull request post.
    
    PR-URL: nodejs#19125
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Сковорода Никита Андреевич <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Kyle Farnung <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    d661a63 View commit details
    Browse the repository at this point in the history
  18. test: move require http2 to after crypto check

    Currently test-http2-client-write-empty-string.js will throw "Error
    [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support"
    when configured --without-ssl.
    
    This commit moves the require of http2 to after the crypto check to
    avoid this error.
    
    PR-URL: nodejs#19111
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    danbev authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    7f7e993 View commit details
    Browse the repository at this point in the history
  19. src: #include <stdio.h>" to iculslocs

    iculslocs uses stdio, but didn't include the header.
    
    PR-URL: nodejs#19150
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    srl295 authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    85d8d22 View commit details
    Browse the repository at this point in the history
  20. perf_hooks: fix timing

    Fixes: nodejs#17892
    Fixes: nodejs#17893
    Fixes: nodejs#18992
    
    PR-URL: nodejs#18993
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    TimothyGu authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    2ae1048 View commit details
    Browse the repository at this point in the history
  21. test: add more information to assert.strictEqual

    PR-URL: nodejs#19162
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    ryzokuken authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    2578cdb View commit details
    Browse the repository at this point in the history
  22. doc: make suggestion more direct in stream.md

    PR-URL: nodejs#19124
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    2bb3600 View commit details
    Browse the repository at this point in the history
  23. test: skip postmortem metadata test when nm fails

    On Windows with msys installation, `nm` is available but
    it is not able to grab symbols from the Windows build.
    Skipping the test if nm outputs anything to stderr fixes that.
    
    PR-URL: nodejs#19107
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    d875750 View commit details
    Browse the repository at this point in the history
  24. doc: add inspector usage example

    Add a simple example showing how to use the inspector API to access
    the CPU profiler.
    
    PR-URL: nodejs#19172
    Reviewed-By: Eugene Ostroukhov <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    ofrobots authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    5ff1828 View commit details
    Browse the repository at this point in the history
  25. doc: remove warning against readable/readable.read

    Remove suggestion to avoid `readable` event and `readabe.read()` method.
    No explanation was provided for this suggestion.
    
    PR-URL: nodejs#19193
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Chen Gang <[email protected]>
    Reviewed-By: Brian White <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    b7ae752 View commit details
    Browse the repository at this point in the history
  26. crypto: use bool over int consistently

    PR-URL: nodejs#19238
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    468a289 View commit details
    Browse the repository at this point in the history
  27. test: refactor http-https-default-ports

    Use arrow functions.
    
    PR-URL: nodejs#19130
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    ken23421 authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    b3e4775 View commit details
    Browse the repository at this point in the history
  28. test: address unreliable test-performance

    test-performance can fail due to resource constraints. Move it from
    parallel to sequential so it does not compete with other tests for
    resources.
    
    Fixes: nodejs#19197
    
    PR-URL: nodejs#19228
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    6539227 View commit details
    Browse the repository at this point in the history
  29. test: do not check text for engine-generated error

    In test-tls-wrap-event-emitter, the text of a TypeError is checked as
    part of the test. However, this text is generated by the JavaScript
    engine (V8) and not Node.js. Thus, we should not check the text as JS
    engine error messages can change without it being considered a breaking
    change for Node.js.
    
    A side effect is that node-chakracore will no longer need to patch this
    test to pass.
    
    PR-URL: nodejs#19215
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Trott authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    e39c12a View commit details
    Browse the repository at this point in the history
  30. doc: add warning to assert.doesNotThrow()

    Using `assert.doesNotThrow()` has no benefit over adding a comment
    next to some code that should not throw. Therefore it is from now
    on discouraged to use it.
    
    PR-URL: nodejs#18699
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    BridgeAR authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    ac6f9d5 View commit details
    Browse the repository at this point in the history
  31. repl: better handling of recoverable errors

    Below syntax errors are handled without force .break/clear
      - Unexpected Token (prefix errors)
      - missing ) after argument list
    
    In the multiline expression, recoverable errors are truly
    recoverable, otherwise syntax error will be thrown.
    
    PR-URL: nodejs#18915
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Shingo Inoue <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    princejwesley authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    8c206d7 View commit details
    Browse the repository at this point in the history
  32. test: Remove unnecessary asserion messages in test-crypto-hash.js

    This commit improves asserion messages in parallel/test-crypto-hash.js.
    Instead of just simple string literal, messages are changed to also
    include values used in assertion, which should improve debugging
    in case of errors.
    
    PR-URL: nodejs#18984
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    pgrzesik authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    cf5c370 View commit details
    Browse the repository at this point in the history
  33. test: fix test-abort-backtrace in shared lib build

    When using shared lib build, the binary path in the stack frames points
    to shared lib. Change the checking criteria in the test case to match
    that.
    
    Refs: nodejs#18535
    
    Signed-off-by: Yihong Wang <[email protected]>
    
    PR-URL: nodejs#19213
    Refs: nodejs#18535
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    yhwang authored and jasnell committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    e4accb6 View commit details
    Browse the repository at this point in the history