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.x backport] build: make lint-ci work properly on Linux make #21261

Closed
wants to merge 50 commits into from

Commits on May 15, 2018

  1. http: add options to http.createServer()

    This adds the optional options argument to `http.createServer()`.
    It contains two options: the `IncomingMessage` and `ServerReponse`
    option.
    
    Backport-PR-URL: nodejs#20456
    PR-URL: nodejs#15752
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    Peter Marton authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    4994b7f View commit details
    Browse the repository at this point in the history
  2. http2: add http fallback options to .createServer

    This adds the Http1IncomingMessage and Http1ServerReponse options
    to http2.createServer().
    
    Backport-PR-URL: nodejs#20456
    PR-URL: nodejs#15752
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Evan Lucas <[email protected]>
    hekike authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    5bfc1d1 View commit details
    Browse the repository at this point in the history
  3. http2: add req and res options to server creation

    Add optional Http2ServerRequest and Http2ServerResponse options
    to createServer and createSecureServer. Allows custom req & res
    classes that extend the default ones to be used without
    overriding the prototype.
    
    Backport-PR-URL: nodejs#20456
    PR-URL: nodejs#15560
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Peter Marton authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    852b996 View commit details
    Browse the repository at this point in the history
  4. doc: fix typo in http2.md

    Backport-PR-URL: nodejs#20456
    PR-URL: nodejs#18872
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    vsemozhetbyt authored and MylesBorins committed May 15, 2018
    Configuration menu
    Copy the full SHA
    0829b54 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2018

  1. http2: pass session to DEBUG_HTTP2SESSION2

    When configure with --debug-http2 --debug-nghttp2 the following
    compilation error is generated:
    
    DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                              ^
    ../src/node_http2.cc:1690:27:
    error: invalid use of 'this' outside of a non-static member function
    
    1 errors generated.
    
    OnStreamReadImpl is static and I think the intention was to pass in the
    session variable here.
    
    PR-URL: nodejs#20815
    Refs: nodejs#20806
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    danbev authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    f7d96ac View commit details
    Browse the repository at this point in the history
  2. tools: speed up lint-md-build

    by using package-lock.json
    
    PR-URL: nodejs#16945
    Fixes: nodejs#16628
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    refack authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    83cd22e View commit details
    Browse the repository at this point in the history
  3. src: remove superfluous check in backtrace_posix.cc

    The error check doesn't matter because a failure would be ignored
    as part of the loop condition.
    
    PR-URL: nodejs#16950
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    addaleax authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    bdbef5f View commit details
    Browse the repository at this point in the history
  4. trace_events: add file pattern cli option

    Allow the user to specify the filepath for the trace_events log file
    using a template string.
    
    Backport-PR-URL: nodejs#19145
    PR-URL: nodejs#18480
    Reviewed-By: Ali Ijaz Sheikh <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    AndreasMadsen authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    141e3e9 View commit details
    Browse the repository at this point in the history
  5. src, test: node internals' postmortem metadata

    Before these changes, only V8 added postmortem metadata to Node's
    binary, limiting the possibilities for debugger's developers to add some
    features that rely on investigating Node's internal structures.
    
    These changes are first steps towards empowering debug tools to
    navigate Node's internal structures. One example of what can be
    achieved with this is shown at nodejs/llnode#122 (a command which prints
    information about handles and requests on the queue for a core dump
    file). Node postmortem metadata are prefixed with nodedbg_.
    
    This also adds tests to validate if all postmortem metadata are
    calculated correctly, plus some documentation on what is postmortem
    metadata and a few care to be taken to avoid breaking it.
    
    Ref: nodejs/llnode#122
    Ref: nodejs/post-mortem#46
    
    Backport-PR-URL: nodejs#19176
    PR-URL: nodejs#14901
    Refs: nodejs/post-mortem#46
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Matheus Marchini authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    b2b85e5 View commit details
    Browse the repository at this point in the history
  6. test: fix cctest -Wunused-variable warning

    Backport-PR-URL: nodejs#19176
    PR-URL: nodejs#18530
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    bnoordhuis authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    d27ca6d View commit details
    Browse the repository at this point in the history
  7. src: do not redefine private for GenDebugSymbols

    Redefining private breaks any private inheritance in the
    included files. We can simply declare GenDebugSymbols()
    as friends in related classes to gain the access that we need.
    
    Backport-PR-URL: nodejs#19176
    PR-URL: nodejs#18653
    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]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    591812f View commit details
    Browse the repository at this point in the history
  8. src: expose uv.errmap to binding

    Add a errno -> [error code, uv error message] map to the uv binding
    so the error message can be assembled in the JS layer.
    
    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#17338
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    3a7ad60 View commit details
    Browse the repository at this point in the history
  9. util: implement util.getSystemErrorName()

    Reimplement uv.errname() as internal/util.getSystemErrorName() to
    avoid the memory leaks caused by unknown error codes
    and avoid calling into C++ for the error names. Also
    expose it as a public API for external use.
    
    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#18186
    Refs: http://docs.libuv.org/en/v1.x/errors.html#c.uv_err_name
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    4a55524 View commit details
    Browse the repository at this point in the history
  10. errors: lazy load util in internal/errors.js

    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#18358
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    05076ac View commit details
    Browse the repository at this point in the history
  11. util: skip type checks in internal getSystemErrorName

    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#18546
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    de86203 View commit details
    Browse the repository at this point in the history
  12. errors: move error creation helpers to errors.js

    This commit moves error creation helpers scattered around
    under lib/ into lib/internal/errors.js in the hope of being clearer
    about the differences of errors that we throw into the user land.
    
    - Move util._errnoException and util._exceptionWithHostPort
      into internal/errors.js and simplify their logic so it's
      clearer what the properties these helpers create.
    - Move the errnoException helper in dns.js to internal/errors.js
      into internal/errors.js and rename it to dnsException. Simplify
      it's logic so it no longer calls errnoException and skips
      the unnecessary argument checks.
    
    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#18546
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    64f4b19 View commit details
    Browse the repository at this point in the history
  13. errors: make message non-enumerable

    A error message should always be non-enumerable. This makes sure
    that is true for dns errors as well. It also adds another check
    in `common.expectsError` to make sure no other regressions are
    introduced going forward.
    
    Fixes nodejs#19716
    
    Backport-PR-URL: nodejs#19191
    PR-URL: nodejs#19719
    Fixes: nodejs#19716
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    BridgeAR authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    a974479 View commit details
    Browse the repository at this point in the history
  14. test: set clientOpts.port property

    Currently this test will overwrite the clientOpts object with the port,
    instead of setting the port property on the clientOpts object which
    looks like the original intent.
    
    Doing this the test fails reporting that the fake-cnnic-root-cert has
    expired. This is indeed true:
    $ openssl x509 -in test/fixtures/keys/fake-cnnic-root-cert.pem \
    -text -noout
    Certificate:
            ...
            Validity
                Not Before: Jun  9 17:15:16 2015 GMT
                Not After : Mar 29 17:15:16 2018 GMT
    
    This commit sets the errorCode to CERT_HAS_EXPIRED. I tried updating the
    certificate using test/fixtures/keys/Makefile but then no error is
    thrown and I'm currently looking into this.
    
    Backport-PR-URL: nodejs#20776
    PR-URL: nodejs#19767
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    danbev authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    4406f6e View commit details
    Browse the repository at this point in the history
  15. test: remove test case 0 from tls-cnnic-whitelist

    I looks like this test has not worked as expected since commit
    2bc7841 ("test: use random ports
    where possible"). The test in that commit checked for `CERT_REVOKED`
    which was returned by CheckWhitelistedServerCert.
    
    CheckWhitelistedServerCert was later removed in commit
    6ee4228 ("src: drop CNNIC+StartCom
    certificate whitelisting").
    
    I'm suggesting that this test case be removed as I don't think it is
    valid anymore.
    
    Backport-PR-URL: nodejs#20776
    PR-URL: nodejs#19767
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    danbev authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    4f05d1b View commit details
    Browse the repository at this point in the history
  16. crypto: remove BIO_set_shutdown

    I've not been able to find any reason for calling
    BIO_set_shutdown(bio, 1). This is done by default for the following
    versions of OpenSSL:
    
    https://github.com/openssl/openssl/blob/OpenSSL_1_1_0/
    crypto/bio/bio_lib.c#L26
    
    https://github.com/openssl/openssl/blob/OpenSSL_1_0_1/
    crypto/bio/bio_lib.c#L90
    
    https://github.com/openssl/openssl/blob/OpenSSL_1_0_2/
    crypto/bio/bio_lib.c#L88
    
    https://github.com/openssl/openssl/blob/OpenSSL_1_0_0/
    crypto/bio/bio_lib.c#L90
    
    This commit removes the call and the comment.
    
    PR-URL: nodejs#17542
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    danbev authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    6251f2a View commit details
    Browse the repository at this point in the history
  17. tools: don't lint-md as part of main lint target

    PR-URL: nodejs#17587
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    refack authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    4512116 View commit details
    Browse the repository at this point in the history
  18. tls: use correct class name in deprecation message

    `tls.Socket` does not exist, and the deprecation message
    should refer to `tls.TLSSocket` (like the documentation
    for the deprecation message already does).
    
    PR-URL: nodejs#17561
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    a6d6325 View commit details
    Browse the repository at this point in the history
  19. src: make FSEventWrap/StatWatcher::Start more robust

    PR-URL: nodejs#17432
    Fixes: nodejs#17430
    Reviewed-By: James M Snell <[email protected]>
    TimothyGu authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    4cd0ab5 View commit details
    Browse the repository at this point in the history
  20. url: added space to class string of iterator objects

    PR-URL: nodejs#17558
    Fixes: nodejs#17540
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    prohaejin authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    e0a780b View commit details
    Browse the repository at this point in the history
  21. url: added url fragment lookup table

    Percent-encoded additional characters in fragment state with new
    FRAGMENT_ENCODE_SET lookup table. The fragment percent-encode set
    includes the C0 control percent-encode set and code points U+0020,
    U+0022, U+003C, U+003E, and U+0060.
    
    PR-URL: nodejs#17627
    Fixes: nodejs#17540
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Kimeiga authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    d81a3f4 View commit details
    Browse the repository at this point in the history
  22. test: add test for postmortem metadata validation

    This commit adds a test to validate postmortem debugging metadata.
    When this test runs, it can check for the presence of metadata
    constants used by tools such as llnode and mdb and report if any
    have accidentally been removed.
    
    PR-URL: nodejs#17685
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    cjihrig authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    b07b9f2 View commit details
    Browse the repository at this point in the history
  23. lib, src: use process.config instead of regex

    Is safer to use a `process.binding(config)` defined boolean, than to
    regex on `process.execArgv`. Also, this better falls in line with the
    conventions of checking flags passed to the executable.
    
    PR-URL: nodejs#17814
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    maclover7 authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    524efb9 View commit details
    Browse the repository at this point in the history
  24. test: fix unreliable async-hooks/test-signalwrap

    Use an interval to keep the event loop open so the test does not exit
    before receiving all signals fom asynchronous `exec()` calls.
    
    PR-URL: nodejs#17827
    Fixes: nodejs#14070
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Trott authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    3aefc25 View commit details
    Browse the repository at this point in the history
  25. src: remove duplicate words in comments

    PR-URL: nodejs#17939
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    14f29e3 View commit details
    Browse the repository at this point in the history
  26. http2: remove duplicate words in comments

    PR-URL: nodejs#17939
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    b046412 View commit details
    Browse the repository at this point in the history
  27. perf_hooks: fix scheduling regression

    Scheduling a PerformanceGCCallback should not keep the
    loop alive but due to the recent switch to using the
    native SetImmediate method, it does. Go back to using
    uv_async_t and add a regression test.
    
    PR-URL: nodejs#18051
    Fixes: nodejs#18047
    Refs: nodejs#18020
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    apapirovski authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    d8c3ecc View commit details
    Browse the repository at this point in the history
  28. src: update make for new code coverage locations

    The files for code coverage are moving to the build
    repository.  Update the references to reflect this.
    
    PR-URL: nodejs#17987
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Khaidi Chu <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    2b941c6 View commit details
    Browse the repository at this point in the history
  29. src: fix code coverage cleanup

    In nodejs#17987 which updated
    the location of the code coverage patches I missed a few
    changes needed to properly clean up for code coverage.  Add
    these.
    
    PR-URL: nodejs#18081
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    mhdawson authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    a337e3a View commit details
    Browse the repository at this point in the history
  30. test: refactor test-repl

    - Switch over to async tracking through promises/async fns
    - Remove an unused temp dir refresh
    - Inline the multiline/npm text prompts into expectations
    - Unify handling prompts/stripping prompts out
    - Make sure no unexpected data is received by requireing
      all *lines* to be matched, rather than chunks received from
      the REPL. This made the test too loose in terms of
      matched lines and too strict in terms of stream chunking
      requirements.
    - Some general cleanup
    
    PR-URL: nodejs#17926
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Bradley Farias <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    0230caf View commit details
    Browse the repository at this point in the history
  31. benchmark: add JSStreamWrap benchmark

    This is made to mirror the connection-bound net benchmarks.
    
    PR-URL: nodejs#17983
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    07e8195 View commit details
    Browse the repository at this point in the history
  32. src: harden JSStream callbacks

    Since these are executing JS code, and in particular parts of that
    code may be provided by userland, handle such exceptions in C++.
    
    Refs: nodejs#17938 (comment)
    PR-URL: nodejs#18028
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    addaleax authored and MylesBorins committed May 22, 2018
    Configuration menu
    Copy the full SHA
    5b8e46d View commit details
    Browse the repository at this point in the history

Commits on May 23, 2018

  1. src: rename On* -> Emit* for stream callbacks

    This should make these function calls a lot more intuitive for people
    who are more accustomed to Node’s EventEmitter API.
    
    PR-URL: nodejs#17701
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    addaleax authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    0082efd View commit details
    Browse the repository at this point in the history
  2. build: make gyp user defined variables lowercase

    I mistakenly introduced user defined variables using uppercase
    characters, reading the gyp documentation they state:
    "Predefined variables. By convention, these are named with
    CAPITAL_LETTERS. Predefined variables are set automatically by GYP"
    and also "By convention, user-defined variables are named with
    lowercase_letters."
    
    This commit renames the user defined variables to lowercase to follow
    the above mentioned convention.
    
    Backport-PR-URL: nodejs#20797
    PR-URL: nodejs#16238
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    danbev authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    396c96e View commit details
    Browse the repository at this point in the history
  3. build: add node_lib_target_name to cctest deps

    Currently the cctest target depend on the node_core_target_name
    target. But it is the node_lib_target_name target that compiles the
    sources now which means that if a source file in src is updated the
    cctest executable will not be re-linked against it, but will remain
    unchanged. The code will still be compiled, just not linked which
    means that if you are debugging you'll not see the changes and also a
    warning will be displayed about this issue.
    
    This commit changes the cctest target to depend on node_lib_target_name.
    
    Backport-PR-URL: nodejs#20797
    PR-URL: nodejs#18576
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Yihong Wang <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    danbev authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    04c166a View commit details
    Browse the repository at this point in the history
  4. src: refactor callback #defines into C++ templates

    Use template helpers instead of `#define`s to generate
    the raw C callbacks that are passed to the HTTP parser library.
    
    A nice effect of this is that it is more obvious what
    parameters the `Parser` methods take.
    
    PR-URL: nodejs#18133
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Jon Moss <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    addaleax authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    e37643c View commit details
    Browse the repository at this point in the history
  5. http: simplify parser lifetime tracking

    Instead of providing a separate class for keeping the
    parser alive during its own call back, just delay a
    possible `.close()` call until the stack has cleared
    completely.
    
    PR-URL: nodejs#18135
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Anatoli Papirovski <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    453077f View commit details
    Browse the repository at this point in the history
  6. deps: cherry-pick dbfe4a49d8 from upstream V8

    Original commit message:
    
        Introduce ScriptOrModule and HostDefinedOptions
    
        This patch introduces a new container type ScriptOrModule which
        provides the name and the host defined options of the script/module.
    
        This patch also introduces a new PrimitivesArray that can hold
        Primitive values, which the embedder can use to store metadata.
    
        The HostDefinedOptions is passed to V8 through the ScriptOrigin, and
        passed back to the embedder through HostImportModuleDynamically for
        module loading.
    
        Bug: v8:5785, v8:6658, v8:6683
        Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
        Change-Id: I56c26fc9a680b273ac0a6691e5ad75f15b8dc80a
        Reviewed-on: https://chromium-review.googlesource.com/622158
        Reviewed-by: Adam Klein <[email protected]>
        Reviewed-by: Georg Neis <[email protected]>
        Commit-Queue: Sathya Gunasekaran <[email protected]>
        Cr-Commit-Position: refs/heads/master@{nodejs#47724}
    
    Backport-PR-URL: nodejs#17823
    PR-URL: nodejs#16889
    Refs: v8/v8@dbfe4a4
    Refs: nodejs#15713
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Jan Krems authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    29f49e9 View commit details
    Browse the repository at this point in the history
  7. module: Set dynamic import callback

    This is an initial implementation to support dynamic import in
    both scripts and modules. It's off by default since support for
    dynamic import is still flagged in V8. Without setting the V8 flag,
    this code won't be executed.
    
    This initial version does not support importing into vm contexts.
    
    Backport-PR-URL: nodejs#17823
    PR-URL: nodejs#15713
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: Bradley Farias <[email protected]>
    Jan Krems authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    c4c468b View commit details
    Browse the repository at this point in the history
  8. module: enable dynamic import flag for esmodules

    currently if you want to use dynamic import you must use both the
    `--experimental-modules` and the `--harmony-dynamic-imports` flags.
    Chrome is currently shipping dynamic import unflagged, the flag
    only remains in V8 to guard embedders who have not set the appropriate
    callback from throwing an unhandled rejection when the feature is used.
    
    As such it is reasonable to enable the flag by default for
    `--experimental-modules`
    
    Backport-PR-URL: nodejs#17823
    PR-URL: nodejs#18387
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Bradley Farias <[email protected]>
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    a0c7df8 View commit details
    Browse the repository at this point in the history
  9. doc: Update tools/icu/README.md

    - remove TODOs: the one about defaults has been
    addressed, and the one about testing is a work
    item that doesn't belong in a doc.
    - add some background information
    
    Fixes: nodejs#7843
    
    PR-URL: nodejs#16939
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    srl295 authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    1af6ac2 View commit details
    Browse the repository at this point in the history
  10. tools: fix icu readme lint error

    PR-URL: nodejs#18445
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    apapirovski authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    de963da View commit details
    Browse the repository at this point in the history
  11. stream: delete redundant code

    In `Writable.prototype.end()`, `state.ending` is true after calling
    `endWritable()` and it doesn't reset to false.
    
    In `Writable.prototype.uncork()`, `state.finished` must be false
    if `state.bufferedRequest` is true.
    
    PR-URL: nodejs#18145
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    陈刚 authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    1a3c296 View commit details
    Browse the repository at this point in the history
  12. stream: delete redundant code

    `state.corkedRequestsFree` of a writable stream is always not null.
    
    PR-URL: nodejs#18145
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    陈刚 authored and MylesBorins committed May 23, 2018
    Configuration menu
    Copy the full SHA
    4b2792a View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2018

  1. n-api: take n-api out of experimental

    Take n-api out of experimental as per:
    nodejs/TSC#501
    
    Backport-PR-URL: nodejs#21083
    PR-URL: nodejs#19262
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    mhdawson committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    084ef60 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2018

  1. build: make lint-ci work properly on Linux make

    PR-URL: nodejs#19746
    Reviewed-By: Joyee Cheung <[email protected]>
    rvagg authored and ryzokuken committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    242beef View commit details
    Browse the repository at this point in the history