dev-313
b53e2a84ec
doc: improve doc writable streams: 'finish' event
...
doc change for stream.md that 'finish' event should be before
writer.end
fixes: https://github.com/nodejs/node/issues/30759
PR-URL: https://github.com/nodejs/node/pull/30889
Fixes: https://github.com/nodejs/node/issues/30759
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-17 18:17:18 -05:00
Sebastien Ahkrin
0d2172fb5d
lib: update Symbol.toStringTag by SymbolToStringTag primordial
...
PR-URL: https://github.com/nodejs/node/pull/30908
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-17 18:17:18 -05:00
Ruben Bridgewater
8dec909aa7
util: inspect (user defined) prototype properties
...
This is only active if the `showHidden` option is truthy.
The implementation is a trade-off between accuracy and performance.
This will miss properties such as properties added to built-in data
types.
The goal is mainly to visualize prototype getters and setters such as:
class Foo {
ownProperty = true
get bar() {
return 'Hello world!'
}
}
const a = new Foo()
The `bar` property is a non-enumerable property on the prototype while
`ownProperty` will be set directly on the created instance.
The output is similar to the one of Chromium when inspecting objects
closer. The output from Firefox is difficult to compare, since it's
always a structured interactive output and was therefore not taken
into account.
PR-URL: https://github.com/nodejs/node/pull/30768
Fixes: https://github.com/nodejs/node/issues/30183
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-12-17 18:17:18 -05:00
Ruben Bridgewater
453be95edc
util: fix built-in detection
...
This makes sure that the regular expression matches all built-in
objects properly. So far a couple where missed.
PR-URL: https://github.com/nodejs/node/pull/30768
Fixes: https://github.com/nodejs/node/issues/30183
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-12-17 18:17:17 -05:00
João Reis
f371562e30
build,win: support building MSI with VS2019
...
Explicitly pass the WiX SDK directory when building the MSI. WiX
doesn't (yet?) have a directory for VS2019, so use the one for VS2017
which should be compatible.
PR-URL: https://github.com/nodejs/node/pull/30895
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-17 18:17:17 -05:00
Myles Borins
96a65e85c5
Working on v13.4.1
...
PR-URL: https://github.com/nodejs/node/pull/30937
2019-12-17 17:05:18 -05:00
Myles Borins
f15fe94d16
2019-12-17, Version 13.4.0 (Current)
...
This is a security release.
For more details about the vulnerability please consult the npm blog:
https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli
Notable Changes:
* deps:
* update npm to 6.13.4
https://github.com/nodejs/node/pull/30904
* update uvwasi (Anna Henningsen)
https://github.com/nodejs/node/pull/30745
* upgrade to libuv 1.34.0 (Colin Ihrig)
https://github.com/nodejs/node/pull/30783
* doc:
* docs deprecate http finished (Robert Nagy)
https://github.com/nodejs/node/pull/28679
* events:
* add captureRejection option (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* http:
* add captureRejection support (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* llhttp opt-in insecure HTTP header parsing (Sam Roberts)
https://github.com/nodejs/node/pull/30567
* http2:
* implement capture rection for 'request' and 'stream' events (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* net:
* implement capture rejections for 'connection' event (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* repl:
* support previews by eager evaluating input (Ruben Bridgewater)
https://github.com/nodejs/node/pull/30811
* stream:
* add support for captureRejection option (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* tls:
* implement capture rejections for 'secureConnection' event (Matteo Collina)
https://github.com/nodejs/node/pull/27867
* expose IETF name for current cipher suite (Sam Roberts)
https://github.com/nodejs/node/pull/30637
* worker:
* add argv constructor option (legendecas)
https://github.com/nodejs/node/pull/30559
PR-URL: https://github.com/nodejs/node/pull/30937
v13.4.0
2019-12-16 14:57:05 -05:00
Rich Trott
b3ae532392
doc: clarify build support text
...
Revise compilation/execution support text to keep it shorter, simpler,
and hopefully easier to read/understand.
PR-URL: https://github.com/nodejs/node/pull/30899
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2019-12-13 10:50:41 -05:00
Michaël Zasso
71c6d44efa
lib: enforce use of BigInt from primordials
...
PR-URL: https://github.com/nodejs/node/pull/30882
Refs: https://github.com/nodejs/node/issues/30697
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-12-13 10:50:41 -05:00
Daniel Bevenius
5203ffb2f4
tools: update link to google styleguide for cpplint
...
This commit updates two old links to Google's C++ styleguide which
currently result in a 404 when accessed.
PR-URL: https://github.com/nodejs/node/pull/30876
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-13 10:50:41 -05:00
Guy Bedford
e61f4ead93
module: conditional exports import condition
...
PR-URL: https://github.com/nodejs/node/pull/30799
Reviewed-By: Jan Krems <jan.krems@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2019-12-13 10:50:40 -05:00
Ben Noordhuis
1b534d571a
test: work around ENOTEMPTY when cleaning tmp dir
...
Replace the homegrown rimrafsync implementation in test/common with
a call to `fs.rmdirSync(path, { recursive: true })`.
Fixes: https://github.com/nodejs/node/issues/30620
Fixes: https://github.com/nodejs/node/issues/30844
PR-URL: https://github.com/nodejs/node/pull/30849
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-13 10:50:40 -05:00
Rich Trott
8bf0da6c93
doc: edit colorMode information
...
Add information about what it means when colorMode is set to false.
PR-URL: https://github.com/nodejs/node/pull/30887
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-13 10:50:40 -05:00
Rich Trott
eb6e32c2fc
test: disable colorMode in test-console-group
...
Disable colorMode in test-console-group so that the test will succeed if
run without the test runner from the command line.
PR-URL: https://github.com/nodejs/node/pull/30886
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-13 10:50:40 -05:00
Denys Otrishko
822fb00dbe
http2: forward debug message in debugStreamObj
...
PR-URL: https://github.com/nodejs/node/pull/30840
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2019-12-13 10:50:40 -05:00
Tobias Nießen
df9df1883e
doc: fix argument type of setAAD
...
PR-URL: https://github.com/nodejs/node/pull/30863
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-13 10:50:39 -05:00
Giovanni Campagna
d90815d08e
build: on Android, use android log library to print stack traces
...
And other errors like lost promises
PR-URL: https://github.com/nodejs/node/pull/29388
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-13 10:50:39 -05:00
Giovanni Campagna
d1c4fccde2
build: fix library version and compile flags on Android
...
Compiling a library with -fPIE won't do, and on Android libraries
are not versioned.
PR-URL: https://github.com/nodejs/node/pull/29388
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-13 10:50:39 -05:00
isaacs
0379fb65c1
deps: update npm to 6.13.4
...
PR-URL: https://github.com/nodejs/node/pull/30904
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2019-12-13 10:50:39 -05:00
Matteo Collina
dfd3a4d6c1
build: add flag to enable pointer compression
...
The --experimental-enable-pointer-compression is experimental
as it breaks ABI compatibility.
PR-URL: https://github.com/nodejs/node/pull/30463
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-13 10:50:38 -05:00
Ruben Bridgewater
de368200f3
src: accept single argument in getProxyDetails
...
This makes sure this function stays backwards compatible in case
it's accessed through the binding directly.
Refs: https://github.com/nodejs/node/pull/29947#issuecomment-562987888
PR-URL: https://github.com/nodejs/node/pull/30858
Refs: https://github.com/nodejs/node/pull/30767
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2019-12-13 10:50:38 -05:00
Kamat, Trivikram
5ab3ca4f96
url: declare iterator inside loop
...
Refs: https://github.com/nodejs/node/pull/30281#discussion_r343380565
PR-URL: https://github.com/nodejs/node/pull/30509
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-13 10:50:38 -05:00
Jordan Harband
5f42b1fc6b
test: assert: fix deepStrictEqual comparing a real array and fake array
...
PR-URL: https://github.com/nodejs/node/pull/30743
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-12-13 10:50:38 -05:00
Rich Trott
9d1c793ceb
doc: clarify Tier 2 implications in BUILDING.md
...
Clarify the explanation of Tier 2 platforms and binary releases.
PR-URL: https://github.com/nodejs/node/pull/30866
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2019-12-13 10:50:38 -05:00
Sebastien Ahkrin
64ab5c9c84
lib: replace Symbol.iterator by SymbolIterator
...
PR-URL: https://github.com/nodejs/node/pull/30859
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-12-13 10:50:38 -05:00
Sebastien Ahkrin
39898a9db4
lib: replace every Symbol.for by SymbolFor primordials
...
PR-URL: https://github.com/nodejs/node/pull/30857
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2019-12-13 10:50:37 -05:00
Juan José Arboleda
1cce00073e
doc: add code example to inspector.url() method
...
PR-URL: https://github.com/nodejs/node/pull/29496
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-12-13 10:50:37 -05:00
Robert Nagy
123327d4c1
net: remove duplicate _undestroy
...
initSocketHandle will call _undestroy.
PR-URL: https://github.com/nodejs/node/pull/30833
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-11 09:13:18 +01:00
Anna Henningsen
ce21fc7154
test: wait for stream close before writing to file
...
Wait for async operations on a file to finish before writing to it
again.
This fixes flakiness in parallel/test-readline-async-iterators-destroy.
PR-URL: https://github.com/nodejs/node/pull/30836
Fixes: https://github.com/nodejs/node/issues/30660
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2019-12-11 09:13:18 +01:00
Matheus Marchini
78eaf50693
benchmark: improve --filter pattern matching
...
* Let users provide more than one pattern by repeating the flag
* Add new flag --exclude to exclude patterns
* Add tests for --filter
* Document --filter
This commit also fixes a bug where things like
`compare.js --new --old binary --new binary` was acceptable (now the
script will exit and print the usage message).
PR-URL: https://github.com/nodejs/node/pull/29987
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-11 09:13:17 +01:00
David Carlier
3d05d4beea
build: ease DragonFlyBSD build
...
Implicitly pretending being FreeBSD and disable
large pages for this platform.
PR-URL: https://github.com/nodejs/node/pull/30201
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-11 09:13:17 +01:00
Anna Henningsen
6c07a72833
fs: synchronize close with other I/O for streams
...
Part of the flakiness in the
parallel/test-readline-async-iterators-destroy test comes from
fs streams starting `_read()` and `_destroy()` without waiting
for the other to finish, which can lead to the `fs.read()` call
resulting in `EBADF` if timing is bad.
Fix this by synchronizing write and read operations with `close()`.
Refs: https://github.com/nodejs/node/issues/30660
PR-URL: https://github.com/nodejs/node/pull/30837
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-11 09:13:17 +01:00
cjihrig
cc4a6ed645
test: use fs rimraf to refresh tmpdir
...
Now that the functionality is built into core, use it to
refresh the test suite's tmpdir.
PR-URL: https://github.com/nodejs/node/pull/30569
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ben Coe <bencoe@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-11 09:13:17 +01:00
cjihrig
18758ef183
fs: retry unlink operations in rimraf
...
This commit adds synchronous retry logic to
the unlinkSync() calls in rimraf.
PR-URL: https://github.com/nodejs/node/pull/30569
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ben Coe <bencoe@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-11 09:13:16 +01:00
cjihrig
5e98de1751
fs: only operate on buffers in rimraf
...
PR-URL: https://github.com/nodejs/node/pull/30569
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ben Coe <bencoe@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-11 09:13:16 +01:00
ZYSzys
8e16093b64
module: fix require in node repl
...
Fixes: https://github.com/nodejs/node/issues/30808
PR-URL: https://github.com/nodejs/node/pull/30835
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-10 10:09:42 +01:00
jens-cappelle
0a34fcb086
lib: replace var with let/const
...
PR-URL: https://github.com/nodejs/node/pull/30384
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-10 10:09:42 +01:00
Robert Nagy
93ca4f4098
doc: deprecate http finished
...
PR-URL: https://github.com/nodejs/node/pull/28679
Refs: https://github.com/nodejs/node/issues/28651
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-10 10:09:41 +01:00
dev-313
0022d7544a
doc: improve doc Http2Stream: FrameError, Timeout and Trailers
...
Document arguments for the 'frameError', 'timeout' and 'trailers'
event.
PR-URL: https://github.com/nodejs/node/pull/30373
Fixes: https://github.com/nodejs/help/issues/877
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-10 10:09:41 +01:00
himself65
5ae3a858f7
test: refactor test-accessor-properties
...
PR-URL: https://github.com/nodejs/node/pull/29943
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-10 10:09:41 +01:00
Xu Meng
60886036c9
src: fix the false isatty() issue on IBMi
...
On IBMi PASE isatty() always returns true for stdin, stdout and stderr.
Use ioctl() instead to identify whether it's actually a TTY.
PR-URL: https://github.com/nodejs/node/pull/30829
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2019-12-10 10:09:41 +01:00
Ruben Bridgewater
e551c169b8
repl: support previews by eager evaluating input
...
This adds input previews by using the inspectors eager evaluation
functionality.
It is implemented as additional line that is not counted towards
the actual input. In case no colors are supported, it will be visible
as comment. Otherwise it's grey.
It will be triggered on any line change. It is heavily tested against
edge cases and adheres to "dumb" terminals (previews are deactived
in that case).
PR-URL: https://github.com/nodejs/node/pull/30811
Fixes: https://github.com/nodejs/node/issues/20977
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-12-10 10:09:40 +01:00
Sam Roberts
daca0780b1
http: llhttp opt-in insecure HTTP header parsing
...
Allow insecure HTTP header parsing. Make clear it is insecure.
See:
- https://github.com/nodejs/node/pull/30553
- https://github.com/nodejs/node/issues/27711#issuecomment-556265881
- https://github.com/nodejs/node/issues/30515
PR-URL: https://github.com/nodejs/node/pull/30567
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-12-10 10:09:38 +01:00
cjihrig
7e1dee3347
fs: reduce unnecessary sync rimraf retries
...
rimraf should only retry if certain errors are encountered.
Additionally, there is no point sleeping if an error occurs
on the last try.
PR-URL: https://github.com/nodejs/node/pull/30785
Fixes: https://github.com/nodejs/node/issues/30580
Refs: https://github.com/nodejs/node/pull/30569
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2019-12-09 10:23:17 +01:00
cjihrig
5523950b47
fs: add synchronous retries to rimraf
...
This commit gives the synchronous version of rimraf the same
linear retry logic as the asynchronous version. Prior to this
commit, sync rimraf kept retrying the operation as soon as
possible until maxRetries was reached.
PR-URL: https://github.com/nodejs/node/pull/30785
Fixes: https://github.com/nodejs/node/issues/30580
Refs: https://github.com/nodejs/node/pull/30569
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2019-12-09 10:23:17 +01:00
Ben Noordhuis
97e0efeedf
test: scale keepalive timeouts for slow machines
...
The test was using fixed timeouts and that seems to be causing sporadic
test failures on pi1-docker host (which is a very slow machine.)
Fixes: https://github.com/nodejs/node/issues/30828
PR-URL: https://github.com/nodejs/node/pull/30834
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-12-09 10:23:17 +01:00
Sebastien Ahkrin
af014170a7
lib: replace Symbol global by the primordials Symbol
...
PR-URL: https://github.com/nodejs/node/pull/30737
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-09 10:23:17 +01:00
Anna Henningsen
7ed867dddb
src: improve checked uv loop close output
...
Addon developers may run into this when not closing libuv handles
inside Workers.
Previously, output may have included unhelpful statements such as
`uv loop at ... has 0 active handles`, which may sound like
everything’s supposed to be fine actually.
So, instead of printing the active handle count, print the total
handle count and mark active handles individually.
Also, fix the test for this to work properly and make sure that
parsing finishes properly.
PR-URL: https://github.com/nodejs/node/pull/30814
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2019-12-09 10:23:17 +01:00
João Reis
305e45a041
test: mark tests as flaky
...
PR-URL: https://github.com/nodejs/node/pull/30848
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-09 10:23:16 +01:00
Jeremy Albright
2123d53c28
doc: include line/cursor in readline documentation
...
Documents the existence and purpose of the `line` and `cursor`
properties. `line` can be used for reading the current input value
during runtime, if reading from a TTY stream. Both properties are
necessary when developing a custom CLI input process using `readline`
as a backend.
Refs: https://github.com/nodejs/node/issues/30347
Refs: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/40513
PR-URL: https://github.com/nodejs/node/pull/30667
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2019-12-09 10:23:16 +01:00