Daniel Bevenius
548672d39c
src: use MaybeLocal.ToLocal instead of IsEmpty
...
This commit suggest using MaybeLocal.ToLocal and passing in the
Local<Function> fn.
The motivation for doing this is that the following
MaybeLocal.ToLocalChecked call can then be avoided.
PR-URL: https://github.com/nodejs/node/pull/33312
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-06-07 10:15:14 -07:00
Paolo Insogna
318fcf8188
doc: add note about clientError writable handling
...
PR-URL: https://github.com/nodejs/node/pull/33308
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-07 10:15:10 -07:00
Daniel Bevenius
30c9cb556f
doc: fix typo in n-api.md
...
This commit fixes what I think is a typo, even though the section in
question does talk about a environment (env).
PR-URL: https://github.com/nodejs/node/pull/33319
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
2020-06-07 10:15:04 -07:00
Daniel Bevenius
f27ae6ef46
src: fix typo in comment in async_wrap.cc
...
PR-URL: https://github.com/nodejs/node/pull/33350
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-06-07 10:14:57 -07:00
Rich Trott
c459832e4b
test: fix test-net-throttle
...
Repeat writes until data is queued in memory, rather than assuming that
it will happen by a certain point.
Fixes: https://github.com/nodejs/node/issues/33135
PR-URL: https://github.com/nodejs/node/pull/33329
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
2020-06-07 10:14:49 -07:00
cjihrig
2645b1c85b
tools: update ESLint to 7.0.0
...
Update ESLint to 7.0.0
PR-URL: https://github.com/nodejs/node/pull/33316
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-07 10:04:39 -07:00
Daniel Bevenius
59769c4d14
lib: fix typo in timers insert function comment
...
PR-URL: https://github.com/nodejs/node/pull/33301
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-07 10:04:33 -07:00
Anna Henningsen
b6300793fb
src: remove unnecessary Isolate::GetCurrent() calls
...
These calls are unnecessary in Release mode but would still have
been included, so move them to the `DebugSealHandleScope` constructor.
PR-URL: https://github.com/nodejs/node/pull/33298
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-06-07 10:04:09 -07:00
Ruben Bridgewater
cdd7d3a66d
tools: remove obsolete no-restricted-syntax eslint rules
...
These rules only apply for the test folder and will already be
checked for.
PR-URL: https://github.com/nodejs/node/pull/32161
Refs: https://github.com/nodejs/node/pull/32078
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-06-07 09:52:00 -07:00
Ruben Bridgewater
5d5e66c10c
tools: add eslint rule to only pass through 'test' to debuglog
...
This makes sure all usages of `util.debuglog()` must contain the
string 'test' as argument.
PR-URL: https://github.com/nodejs/node/pull/32161
Refs: https://github.com/nodejs/node/pull/32078
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-06-07 09:52:00 -07:00
Michaël Zasso
cd92052935
test: add hr-time Web platform tests
...
Refs: https://github.com/nodejs/node/pull/32790
PR-URL: https://github.com/nodejs/node/pull/33287
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2020-06-07 09:52:00 -07:00
Michaël Zasso
68551d22d2
perf_hooks: fix error message for invalid entryTypes
...
Will now print a more meaningful value instead of always [object Object]
PR-URL: https://github.com/nodejs/node/pull/33285
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-06-07 09:52:00 -07:00
Ruy Adorno
4d6f56a76a
deps: upgrade npm to 6.14.5
...
PR-URL: https://github.com/nodejs/node/pull/33239
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-06-07 09:51:59 -07:00
Nikolai Vavilov
964adfafa5
buffer: improve copy() performance
...
There is no need to create a slice when sourceEnd is out of bounds.
PR-URL: https://github.com/nodejs/node/pull/33214
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-06-07 09:51:59 -07:00
Pranshu Srivastava
66dbaff848
http2: add bytesWritten test for Http2Stream
...
note that this is for the `Http2Server` class. I'll soon be
adding one for `Http2SecureServer` as well.
Refs: https://github.com/nodejs/node/issues/29829
PR-URL: https://github.com/nodejs/node/pull/33162
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-06-07 09:40:11 -07:00
Ben Noordhuis
631e433cf5
zlib: reject windowBits=8 when mode=GZIP
...
It's also handled in C++ land now, per the previous commit, but
intercepting it in JS land makes for prettier error messages.
PR-URL: https://github.com/nodejs/node/pull/33045
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-06-07 09:34:29 -07:00
Ben Noordhuis
642f81317e
src: fix invalid windowBits=8 gzip segfault
...
`{ windowBits: 8 }` is legal for deflate streams but not gzip streams.
Fix a nullptr dereference when formatting the error message.
Bug introduced in commit c34eae5f88 ("zlib: refactor zlib internals")
from September 2018.
PR-URL: https://github.com/nodejs/node/pull/33045
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-06-07 09:34:23 -07:00
Derek Lewis
d64dbfa1e7
meta: add issue template for API reference docs
...
Prior to this commit, there was no GitHub issue template guiding
users to open issues about gaps in the API reference docs.
Refs: https://github.com/nodejs/node/pull/31123
PR-URL: https://github.com/nodejs/node/pull/32944
Fixes: https://github.com/nodejs/nodejs.org/issues/2866
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-06-07 09:34:17 -07:00
Yash Ladha
6881410951
lib: refactored scheduling policy assignment
...
In previous implementation it was clubbed into declaration of scheduling
policies and fetching the schedulingPolicy. Now they are separate
variables, so that in future if one want to add new scheduling policy.
It is much simpler and not obsfucated.
PR-URL: https://github.com/nodejs/node/pull/32663
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2020-06-07 09:34:11 -07:00
Anna Henningsen
a5e8c5ce0d
src: split out callback queue implementation from Environment
...
This isn’t conceptually tied to anything Node.js-specific at all.
PR-URL: https://github.com/nodejs/node/pull/33272
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-06-06 22:28:51 -07:00
Myles Borins
77caf92314
module: better error for named exports from cjs
...
We do not support importing named exports from a CJS module.
This change decorates the error message for missing named exports in
the case where the module being imported is expected to be CJS by the
ESM loader.
Signed-off-by: Myles Borins <myles.borins@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/33256
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-06-06 22:28:41 -07:00
Robert Nagy
9dde1db332
doc: add warning for socket.connect reuse
...
PR-URL: https://github.com/nodejs/node/pull/33204
Refs: https://github.com/nodejs/node/issues/25969
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-06-06 22:28:33 -07:00
cjihrig
22f2c2c871
wasi: fix poll_oneoff memory interface
...
The WASM memory interfacing logic was wrong (particularly around
the size of __wasi_subscription_t). This commit fixes the logic.
PR-URL: https://github.com/nodejs/node/pull/33250
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-06-06 22:28:28 -07:00
Gabriel Schulhof
ed62d43e79
src: clean up large pages code
...
* Initialize structure members.
* Factor out common `Debug()` prefix.
* Remove unused `text_region` field.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
PR-URL: https://github.com/nodejs/node/pull/33255
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-06-06 22:28:23 -07:00
Jonathan Buhacoff
0c7cf24431
doc: correct description of decipher.setAuthTag in crypto.md
...
Calling `decipher.setAuthTag` after `decipher.update` will result in
an error like `Unsupported state or unable to authenticate data`.
The example code in
[CCM mode](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_ccm_mode )
is correct, but to demonstrate the mistake in the documentation you
can take the same example and move the `setAuthTag` call to in between
`update` and `final` you will see the error.
2020-06-06 22:22:38 -07:00
rickyes
0177cbf9e0
test: rename test-lookupService-promises
...
PR-URL: https://github.com/nodejs/node/pull/33100
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-06-06 22:22:38 -07:00
Adam Majer
139eb6bd68
test: skip some console tests on dumb terminal
...
Add capabilities to common test module to detect and skip tests
on dumb terminals.
In some of our build environments, like s390x, the terminal
is a dumb terminal meaning it has very rudimentary capabilities.
These in turn prevent some of the tests from completing with errors
as below.
not ok 1777 parallel/test-readline-tab-complete
---
duration_ms: 0.365
severity: fail
exitcode: 1
stack: |-
assert.js:103
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
'\t' !== ''
at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:63:14
at Array.forEach (<anonymous>)
at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:18:17
at Array.forEach (<anonymous>)
at Object.<anonymous> (/home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:17:3)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '\t',
expected: '',
operator: 'strictEqual'
}
...
PR-URL: https://github.com/nodejs/node/pull/33165
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-06-06 22:22:37 -07:00
szTheory
9017bce54b
lib: fix grammar in internal/bootstrap/loaders.js
...
PR-URL: https://github.com/nodejs/node/pull/33211
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-06-06 22:22:37 -07:00
osher
59619b0c9a
doc: mention python3-distutils dependency in BUILDING.md
...
Ran into #30189 , solved by this comment:
https://github.com/nodejs/node/issues/30189#issuecomment-548250793
Refs: https://github.com/nodejs/node/issues/30189
PR-URL: https://github.com/nodejs/node/pull/33174
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Christian Clauss <cclauss@me.com >
2020-06-06 22:22:37 -07:00
Karol Walasek
0cee4c3eae
doc: removed unnecessary util imports from vm examples
...
PR-URL: https://github.com/nodejs/node/pull/33179
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-06 22:22:37 -07:00
Nikolai Vavilov
903862089b
doc: update Buffer(size) documentation
...
It returns zero-filled memory since v8.0.0.
PR-URL: https://github.com/nodejs/node/pull/33198
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-06 22:22:37 -07:00
Pranshu Srivastava
8b44be9b26
doc: add Uint8Array to end and write
...
PR-URL: https://github.com/nodejs/node/pull/33217
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-06-06 22:05:11 -07:00
Simen Bekkhus
4a584200f8
doc: specify unit of time passed to fs.utimes
...
PR-URL: https://github.com/nodejs/node/pull/33230
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Masashi Hirano <shisama07@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-06-06 21:59:08 -07:00
Tobias Nießen
33aacbefb1
wasi: prevent syscalls before start
...
PR-URL: https://github.com/nodejs/node/pull/33235
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-06-06 21:59:02 -07:00
Andrey Pechkurov
ad7a890597
doc: add troubleshooting guide for AsyncLocalStorage
...
PR-URL: https://github.com/nodejs/node/pull/33248
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2020-06-06 21:58:55 -07:00
Andrey Pechkurov
2262962ab7
doc: remove AsyncWrap mentions from async_hooks.md
...
AsyncWrap is a private API and should not be mentioned
in the documentation.
PR-URL: https://github.com/nodejs/node/pull/33249
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-06-06 21:58:50 -07:00
James M Snell
ac5cdd682a
doc: add warnings about transferring Buffers and ArrayBuffer
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/33252
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Mathias Buus <mathiasbuus@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-06-06 21:58:44 -07:00
Gabriel Schulhof
82da74b1cd
n-api: add uint32 test for -1
...
Adds a test to ensure that napi_get_value_uint32 returns 0xffffffff for
-1.
Re: https://github.com/nodejs/node/issues/33117
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
2020-06-06 21:58:38 -07:00
Robert Nagy
4294d92b26
stream: make from read one at a time
...
Currently from will eagerly buffer up items
which means that errors are also eagerly
encountered and items which are buffer when
an error occurs will be discarded, which is
inconsistent with how generators work.
Fixes: https://github.com/nodejs/node/issues/29428
PR-URL: https://github.com/nodejs/node/pull/33201
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-06 21:58:33 -07:00
Michael Dawson
033bc96ec1
doc: update napi_async_init documentation
...
Fixes: https://github.com/nodejs/node/issues/33153
Change documentation to make async_resource required
as opposed to optional in napi-async_init.
Changes over time mean this parameter is required for
proper operation of async hooks (which are still experimental).
This changes the documentation to document what
callers should do. We are doing this only in the doc
in order to avoid a breaking change in N-API. We could
create a new version of the method for which the
parametrer is enforced as mandatory but we should only
do that once async hooks is no longer experimental. In
that case we could deprecate (but not remove this version
of the method).
Signed-off-by: Michael Dawson <michael_dawson@ca.ibm.com >
PR-URL: https://github.com/nodejs/node/pull/33181
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2020-06-06 21:58:26 -07:00
James M Snell
ea3a68f74f
doc: doc and test URLSearchParams discrepancy
...
The WHATWG URL spec is not going to change this behavior so
let's document it
Signed-off-by: James M Snell <jasnell@gmail.com >
Fixes: https://github.com/nodejs/node/issues/33037
PR-URL: https://github.com/nodejs/node/pull/33236
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
2020-06-06 21:58:20 -07:00
Richard Lau
c05483483f
Revert "src: add test/abort build tasks"
...
This reverts commit e08ac09569 .
PR-URL: https://github.com/nodejs/node/pull/33196
Refs: https://github.com/nodejs/node/pull/31740
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-06 21:46:38 -07:00
Richard Lau
b43fc64aa7
Revert "src: add aliased-buffer-overflow abort test"
...
This reverts commit babeb58c52 .
PR-URL: https://github.com/nodejs/node/pull/33196
Refs: https://github.com/nodejs/node/pull/31740
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-06-06 21:46:30 -07:00
Myles Borins
c6cf0483f2
doc: explicitly doc package.exports is breaking
...
If package authors don't explicitly include all previously supported
entry points introducing package.exports will be a Semver-Major change.
Add a warning about this behavior and offer two potential solutions
for module authors.
Refs: https://github.com/then/is-promise/issues/20
PR-URL: https://github.com/nodejs/node/pull/33074
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Jan Krems <jan.krems@gmail.com >
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-06-06 21:45:41 -07:00
Nikolai Vavilov
e572cf93e5
doc: fix style and grammer in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/33194
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-06-06 21:32:30 -07:00
Julian Duque
1766514c5b
test: add tests for options.fs in fs streams
...
PR-URL: https://github.com/nodejs/node/pull/33185
Reviewed-By: Adrian Estrada <edsadr@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
2020-06-06 21:32:30 -07:00
Anna Henningsen
edf75e4299
src: use basename(argv0) for --trace-uncaught suggestion
...
Refs: https://github.com/nodejs/node/pull/32797#discussion_r407222290
PR-URL: https://github.com/nodejs/node/pull/32798
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-06-06 21:32:29 -07:00
Matteo Collina
194789f25b
stream: make all streams error in a pipeline
...
This changes makes all stream in a pipeline emit 'error' in
case of an abnormal termination of the pipeline. If the last stream
is currently being async iterated, this change will make the iteration
reject accordingly.
See: https://github.com/nodejs/node/pull/30861
Fixes: https://github.com/nodejs/node/issues/28194
PR-URL: https://github.com/nodejs/node/pull/30869
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-06-06 09:53:03 -07:00
Michaël Zasso
feed95cd4c
Working on v12.18.1
...
PR-URL: https://github.com/nodejs-private/node-private/pull/213
2020-06-02 20:27:47 +02:00
Michaël Zasso
f19f5b34d7
2020-06-02, Version 12.18.0 'Erbium' (LTS)
...
This is a security release.
Notable changes:
Vulnerabilities fixed:
CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass (High).
CVE-2020-11080: HTTP/2 Large Settings Frame DoS (Low).
CVE-2020-8174: `napi_get_value_string_*()` allows various kinds of memory corruption (High).
PR-URL: https://github.com/nodejs-private/node-private/pull/213
v12.18.0
2020-06-02 16:05:31 +02:00