Keyhan Vakil
e8e92ec2d1
buffer: do not leak memory if buffer is too big
...
A recent pull request changed this method to throw when the buffer was
too big, but this meant that the `free` finalizer would never get
called, leading to a memory leak.
A previous version of this diff included a test provoking this behavior
with `v8.serialize`, but it unfortunately kept triggering the OOM
killer, so it was removed.
Refs: https://github.com/nodejs/node/pull/40243
PR-URL: https://github.com/nodejs/node/pull/43938
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2022-07-25 00:06:08 +01:00
Andreu Botella
f9b7380b42
test: work scheduled in process.nextTick can keep the event loop alive
...
PR-URL: https://github.com/nodejs/node/pull/43787
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org >
2022-07-25 00:59:25 +02:00
Lenvin Gonsalves
dab492f044
test_runner: add support for boolean values for concurrency option
...
PR-URL: https://github.com/nodejs/node/pull/43887
Fixes: https://github.com/nodejs/node/issues/43837
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2022-07-24 23:41:46 +02:00
Antoine du Hamel
d83446b4c4
test_runner: validate timeout option
...
PR-URL: https://github.com/nodejs/node/pull/43843
Reviewed-By: Feng Yu <F3n67u@outlook.com >
2022-07-24 23:11:16 +02:00
Daeyeon Jeong
0c27ca4bc9
stream: improve respondWithNewView()
...
This fixes validating an ArrayBufferView given to
ReadableStreamBYOBRequest.respondWithNewView() to improve the web
streams compatibility.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43866
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2022-07-24 17:56:48 +01:00
Tobias Nießen
3b4c0e45d0
test: simplify test-tls-set-secure-context
...
Instead of recursively scheduling makeRemainingRequests and ignoring its
outcome, safely loop within the async function.
Avoid unncessary async lambda functions passed to assert.rejects.
Use events.once() to simplify control flow in makeRequest, instead of
manually constructing a Promise.
PR-URL: https://github.com/nodejs/node/pull/43878
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-24 17:56:40 +01:00
Kohei Ueno
a324ea03d9
doc: clarify subprocess.stdout/in/err property
...
PR-URL: https://github.com/nodejs/node/pull/43910
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-24 17:43:05 +01:00
cola119
223418adf5
src: fix regression that a source marker is lost
...
PR-URL: https://github.com/nodejs/node/pull/43086
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Coe <bencoe@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-07-25 00:17:35 +08:00
Node.js GitHub Bot
130bdf0b31
meta: update AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/43966
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-24 15:57:16 +01:00
Moshe Atlow
2e682f10b6
test_runner: pass signal on timeout
...
PR-URL: https://github.com/nodejs/node/pull/43911
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2022-07-24 15:16:10 +01:00
theanarkh
da3949cfd7
http: fix http server connection list when close
...
PR-URL: https://github.com/nodejs/node/pull/43949
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Feng Yu <F3n67u@outlook.com >
2022-07-24 15:06:24 +01:00
Livia Medeiros
050d974a25
test: use common.mustNotMutateObjectDeep() in fs tests
...
PR-URL: https://github.com/nodejs/node/pull/43819
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-24 14:29:06 +01:00
Node.js GitHub Bot
eb4dca030d
deps: update corepack to 0.12.1
...
PR-URL: https://github.com/nodejs/node/pull/43965
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-24 14:14:16 +01:00
theanarkh
8f0dee1a5b
test: fix test http upload timeout
...
PR-URL: https://github.com/nodejs/node/pull/43935
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-24 13:42:25 +01:00
Jianru Lin
746169de0e
doc: fix typo in src/crypto/README.md
...
PR-URL: https://github.com/nodejs/node/pull/43968
Reviewed-By: Feng Yu <F3n67u@outlook.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-24 14:17:16 +02:00
Daeyeon Jeong
72fd06f7f0
meta: update node-api in label-pr-config
...
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43794
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-24 13:12:07 +01:00
Mark S. Miller
5abd9baea8
process: use defineProperty instead of assignment
...
PR-URL: https://github.com/nodejs/node/pull/43907
Fixes: https://github.com/nodejs/node/issues/43496
Refs: https://github.com/endojs/endo/issues/576
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-24 14:09:29 +02:00
Keyhan Vakil
a9cb6723b5
doc: remind backporter about v8_embedder_string
...
There's already a reminder earlier in the instructions, but not in the
worked example, so it's easy to miss while skimming.
PR-URL: https://github.com/nodejs/node/pull/43924
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Beth Griggs <bgriggs@redhat.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-24 13:01:14 +01:00
Rhys
294ccf39a6
util: remove unicode support todo for perf implications
...
PR-URL: https://github.com/nodejs/node/pull/43762
Refs: https://github.com/nodejs/node/pull/43721
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2022-07-24 13:56:52 +02:00
Robert Nagy
31d9edc849
stream: fix 0 transform hwm backpressure
...
PR-URL: https://github.com/nodejs/node/pull/43685
Refs: https://github.com/nodejs/node/issues/42457
Refs: https://github.com/nodejs/node/pull/43648/files
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2022-07-24 13:55:11 +02:00
theanarkh
c7ac42f009
cluster: send connection to other server when worker drop it
...
PR-URL: https://github.com/nodejs/node/pull/43747
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
2022-07-24 11:18:33 +01:00
jiahao.si
b0285836f7
dns: fix getServers return undefined
...
PR-URL: https://github.com/nodejs/node/pull/43922
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2022-07-24 11:18:20 +01:00
theanarkh
d63a4cbbd8
dns: fix cares memory leak
...
PR-URL: https://github.com/nodejs/node/pull/43912
Refs: https://github.com/nodejs/node/pull/39735
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-24 06:04:54 +01:00
Tobias Nießen
7ef069e483
test: simplify ReplStream.wait()
...
PR-URL: https://github.com/nodejs/node/pull/43857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-07-23 21:44:26 +01:00
Finn Yu
df7c49c91d
lib: refactor PriorityQueue to use private field
...
PR-URL: https://github.com/nodejs/node/pull/43889
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-23 21:44:18 +01:00
Moshe Atlow
069cec8004
deps: update hast-util-raw
...
PR-URL: https://github.com/nodejs/node/pull/43927
Fixes: https://github.com/nodejs/node/issues/43864
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-23 21:25:24 +01:00
Airing
6244110bb9
doc: fix typo in http.md
...
the returns need to be lowercase
PR-URL: https://github.com/nodejs/node/pull/43933
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Harshitha K P <harshitha014@gmail.com >
2022-07-23 17:50:39 +01:00
Daeyeon Jeong
d29e78a780
events: expose CustomEvent on global with CLI flag
...
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43885
Fixes: https://github.com/nodejs/node/issues/40678
Refs: https://github.com/nodejs/node/pull/43514
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-23 14:39:08 +01:00
Feng Yu
dffcfdde34
doc: add F3n67u to collaborators
...
Fixes: https://github.com/nodejs/node/issues/43839
PR-URL: https://github.com/nodejs/node/pull/43953
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
2022-07-23 20:23:23 +08:00
legendecas
50d0cd5123
src: per-isolate eternal template properties
...
`FunctionTemplate` and `ObjectTemplate` can be shared across realms.
They should be per-isolate eternal handles and can not be modified.
As these templates are lazily initialized, their setters are still
exposed with DCHECK on their value presence.
PR-URL: https://github.com/nodejs/node/pull/43802
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2022-07-23 11:20:07 +08:00
Rich Trott
5fbf33ef86
tools: add verbose flag to inactive TSC finder
...
Refs: https://github.com/nodejs/node/pull/43897#issuecomment-1189682369
PR-URL: https://github.com/nodejs/node/pull/43913
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2022-07-22 18:20:54 +01:00
theanarkh
0592d91b92
http: add drop request event for http server
...
PR-URL: https://github.com/nodejs/node/pull/43806
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2022-07-22 17:33:03 +01:00
Tobias Nießen
373bbcea24
test: merge test-crypto-dh-hash with modp18 test
...
This test file was split because it was taking a long time in some
versions of OpenSSL 1.1.1, but that is not the case anymore with
OpenSSL 3.0, so merge the tests again.
Refs: https://github.com/nodejs/node/pull/34631
PR-URL: https://github.com/nodejs/node/pull/43891
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-07-22 10:54:41 +01:00
theanarkh
04840223ee
child_process: do not need to count length when maxBuffer is Infinity
...
PR-URL: https://github.com/nodejs/node/pull/43822
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-07-21 18:28:19 +01:00
Facundo Tuesca
2e71ac680c
tools: add support for using API key to vuln checking script
...
This change adds a new parameter `--nvd-key` to `dep_checker`,
which allows the user to specify a NVD API key with which to query
the National Vulnerability Database.
This increases the rate at which we are allowed to query the
database, which speeds up the running time of the script.
PR-URL: https://github.com/nodejs/node/pull/43909
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2022-07-21 11:44:30 -04:00
Antoine du Hamel
2fd4c013c2
test_runner: do not report an error when tests are passing
...
PR-URL: https://github.com/nodejs/node/pull/43919
Reviewed-By: Mestery <mestery@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2022-07-21 12:40:21 +01:00
npm CLI robot
81fe9a3a6e
deps: upgrade npm to 8.15.0
...
PR-URL: https://github.com/nodejs/node/pull/43917
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Mestery <mestery@protonmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-07-21 12:24:12 +01:00
Paolo Insogna
e119614a68
http: wait for pending responses in closeIdleConnections
...
PR-URL: https://github.com/nodejs/node/pull/43890
Fixes: https://github.com/nodejs/node/issues/43771
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2022-07-21 10:02:04 +02:00
Joyee Cheung
7a9266222d
src: merge NativeModuleEnv into NativeModuleLoader
...
Now that we include the code cache into the embedded snapshot,
there is no point in splitting an Environment-independent
NativeModuleLoader out of NativeModuleEnv. Merge the two
classes for simplicity.
PR-URL: https://github.com/nodejs/node/pull/43824
Refs: https://github.com/nodejs/node/issues/31074
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-07-21 09:27:52 +08:00
ed7b6764c2
tools: support versioned node shared libs on z/OS
...
The shared libraries will now be stores in lib.target as opposed to
obj.target, libnode.version.so, libnode.x (for npm backwards compat and
testing), and libnode.version.x (for builds). The install will also
include libnode.so link that points to libnode.version.so (this will be
used by native npms for backwards compat).
PR-URL: https://github.com/nodejs/node/pull/42256
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com >
Co-authored-by: Wayne Zhang <shuowang.zhang@ibm.com >
2022-07-20 20:51:29 -04:00
Antoine du Hamel
c45c778473
test: refactor test/es-module/test-esm-resolve-type
...
Using TLA to avoid undetected never-settling promises, and avoid running
parallel calls to `process.chdir`.
PR-URL: https://github.com/nodejs/node/pull/43178
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-07-20 23:40:04 +02:00
Tobias Nießen
545ecc5736
doc: improve test runner timeout docs
...
Add a warning to clarify that it is not a reliable mechanism for
cancelling tests.
Fix the default value of the timeout option.
Simplify and capitalize the YAML description field.
PR-URL: https://github.com/nodejs/node/pull/43836
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2022-07-20 16:40:43 +01:00
Moshe Atlow
389b7e138e
test_runner: recieve and pass AbortSignal
...
PR-URL: https://github.com/nodejs/node/pull/43554
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-20 13:32:58 +01:00
RafaelGSS
9022efb977
doc: mention Win 32-bit openssl build issue
...
PR-URL: https://github.com/nodejs/node/pull/43853
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-20 09:17:59 -03:00
Beth Griggs and Rafael Gonzaga
c7843659e2
doc: add security release specifics to releases.md
...
Co-authored-by: Rafael Gonzaga <rafael.nunu@hotmail.com >
PR-URL: https://github.com/nodejs/node/pull/43835
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2022-07-20 11:08:53 +01:00
KrayzeeKev
3473d1bd50
test: ensure NODE_EXTRA_CA_CERTS not set before tests
...
The 'test-tls-env-extra-ca-file-load.js' test assumes that
NODE_EXTRA_CA_CERTS is not set. If the build environment
happens to have it set, this test will fail. This change
deletes that env var before running the test.
PR-URL: https://github.com/nodejs/node/pull/43858
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-07-20 01:44:26 +01:00
Node.js GitHub Bot
c52b722775
tools: update doc to highlight.js@11.6.0
...
PR-URL: https://github.com/nodejs/node/pull/43870
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-07-19 21:27:58 +01:00
Hrishikesh Kadam
4aeef8e224
build: add .gitattributes for npm and other shims
...
This issue has been described in -
https://github.com/nodejs/node/issues/43860
On Windows system, git clone or git checkout on the repo turns LF line
endings to CRLF in the worktree.
This can happen due to many reasons like -
- git config --system core.autocrlf (set to true)
- git config --global core.autocrlf (set to true)
- git config --local core.autocrlf (set to true)
- git clone --config core.autocrlf=true ...
Adding gitattributes for the shims will not convert them to CRLF line
endings.
Also, there is a note[1] in test/README.md which says -
For the tests to run on Windows, be sure to clone Node.js source code
with the `autocrlf` git config flag set to true.
Reason for using build subsystem -
These shims are just copied in stage_package label of vcbuild.bat
Fixes: https://github.com/nodejs/node/issues/43860
[1]: https://github.com/nodejs/node/commit/3654cd4cdaf2ab84d0e6a190c3b9e89e86726a88
PR-URL: https://github.com/nodejs/node/pull/43879
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-07-19 21:27:49 +01:00
npm CLI robot
dd167ff0ee
deps: upgrade npm to 8.14.0
...
PR-URL: https://github.com/nodejs/node/pull/43826
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-19 16:51:49 +01:00
Node.js GitHub Bot
8657d6db07
deps: update undici to 5.8.0
...
PR-URL: https://github.com/nodejs/node/pull/43886
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
2022-07-18 22:47:21 +01:00