Kohei Ueno
198cf59d2c
test: update WPT encoding tests
...
PR-URL: https://github.com/nodejs/node/pull/43958
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Feng Yu <F3n67u@outlook.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-25 21:44:28 -04:00
Daeyeon Jeong
29bcd47738
net: fix socket._getpeername
...
Fixes: https://github.com/nodejs/node/issues/43009
If calling `this._handle.getpeername` returns an error at the first
call, its result shouldn't be cached to `this._peername`.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43010
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
2022-07-25 21:44:27 -04:00
Feng Yu
f0ed1aed8d
test: remove test-whatwg-events-add-event-listener-options-once.js
...
PR-URL: https://github.com/nodejs/node/pull/43877
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:44:26 -04:00
theanarkh
19e8876877
trace_events: trace net connect event
...
PR-URL: https://github.com/nodejs/node/pull/43903
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2022-07-25 21:44:26 -04:00
Andreu Botella
88505556fe
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 21:44:26 -04:00
Lenvin Gonsalves
cd0d9ddb7c
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-25 21:44:25 -04:00
Antoine du Hamel
f98020138a
test_runner: validate timeout option
...
PR-URL: https://github.com/nodejs/node/pull/43843
Reviewed-By: Feng Yu <F3n67u@outlook.com >
2022-07-25 21:44:25 -04:00
Daeyeon Jeong
2266a4b6d6
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-25 21:44:25 -04:00
Tobias Nießen
81a21946eb
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-25 21:44:20 -04:00
cola119
2c47e58ea0
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 21:43:50 -04:00
Moshe Atlow
58d15b3687
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-25 21:43:50 -04:00
theanarkh
25ec71db63
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-25 21:43:49 -04:00
Livia Medeiros
61cd11a8a7
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-25 21:43:49 -04:00
theanarkh
b1081dbe12
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-25 21:43:49 -04:00
Robert Nagy
bf3991b406
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-25 21:43:48 -04:00
theanarkh
7b276b89b9
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-25 21:43:47 -04:00
jiahao.si
67b4edde37
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-25 21:43:47 -04:00
Tobias Nießen
efd5e0e925
test: simplify ReplStream.wait()
...
PR-URL: https://github.com/nodejs/node/pull/43857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-07-25 21:43:47 -04:00
Daeyeon Jeong
dfc4832ef1
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-25 21:43:46 -04:00
theanarkh
ca658c8afe
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-25 21:43:45 -04:00
Tobias Nießen
ef21ad2996
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-25 21:43:45 -04:00
Antoine du Hamel
8b0248506f
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-25 21:43:44 -04:00
Paolo Insogna
9c699bd8a8
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-25 21:43:44 -04:00
Antoine du Hamel
e502c50a90
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-25 21:43:43 -04:00
Moshe Atlow
aa8053e1fa
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-25 21:43:43 -04:00
KrayzeeKev
c782c3dc69
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-25 21:43:42 -04:00
John Gee
acfc33ca8c
util: add tokens to parseArgs
...
Offer additional meta-data for building
custom and additional behaviour on
top of parseArgs.
PR-URL: https://github.com/nodejs/node/pull/43459
Reviewed-By: Ben Coe <bencoe@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:43:41 -04:00
Livia Medeiros
100f6deb09
fs: use signed types for stat data
...
This allows to support timestamps before 1970-01-01.
On Windows, it's not supported due to Y2038 issue.
PR-URL: https://github.com/nodejs/node/pull/43714
Fixes: https://github.com/nodejs/node/issues/43707
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:43:41 -04:00
Richard Lau
bb6787cb57
test: add check to test-fs-readfile-tostring-fail
...
Check that all of the bytes were written to the temporary file before
reading it to catch the case where there is insufficient disk space.
PR-URL: https://github.com/nodejs/node/pull/43850
Refs: https://github.com/nodejs/node/issues/43833
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2022-07-25 21:43:40 -04:00
木杉
c1893b7a7c
child_process: avoid repeated calls to normalizeSpawnArguments
...
PR-URL: https://github.com/nodejs/node/pull/43345
Fixes: https://github.com/nodejs/node/issues/43333
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2022-07-25 21:43:40 -04:00
Jacob Smith
0d2921f396
esm: fix erroneous re-initialization of ESMLoader
...
PR-URL: https://github.com/nodejs/node/pull/43763
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
Reviewed-By: Guy Bedford <guybedford@gmail.com >
2022-07-25 21:43:38 -04:00
Daeyeon Jeong
e4473952ae
events: add CustomEvent
...
This implements the Web API `CustomEvent` in `internal/event_target`.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43514
Refs: https://github.com/nodejs/node/issues/40678
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2022-07-25 21:43:38 -04:00
Tobias Nießen
aba9c8ebea
repl: fix overzealous top-level await
...
Fixes: https://github.com/nodejs/node/issues/43777
PR-URL: https://github.com/nodejs/node/pull/43827
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2022-07-25 21:43:37 -04:00
Moshe Atlow
f13e4c1be9
test_runner: fix it concurrency
...
PR-URL: https://github.com/nodejs/node/pull/43757
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Jacob Smith <jacob@frende.me >
2022-07-25 21:43:36 -04:00
Ben Noordhuis
d7cfd0c5ba
v8: serialize BigInt64Array and BigUint64Array
...
Teach the serializer about BigInt64Array and BigUint64Array.
I open-coded the type-to-index mapper to stay compatible with the
current wire format without undue code gymnastics.
PR-URL: https://github.com/nodejs/node/pull/43571
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2022-07-25 21:43:35 -04:00
Joyee Cheung
0aa255ab72
bootstrap: handle snapshot errors gracefully
...
This patch refactors the SnapshotBuilder::Generate() routines
so that when running into errors during the snapshot building
process, they can exit gracefully by printing the error
and return a non-zero exit code. If the error is likely to
be caused by internal scripts, the return code would be 12,
if the error is caused by user scripts the return code would
be 1. In addition this refactors the generation of embedded
snapshots and directly writes to the output file stream
instead of producing an intermediate string with string
streams.
PR-URL: https://github.com/nodejs/node/pull/43531
Refs: https://github.com/nodejs/node/issues/35711
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-07-25 21:43:35 -04:00
theanarkh
249365524e
src: fix node watchdog race condition
...
PR-URL: https://github.com/nodejs/node/pull/43780
Fixes: https://github.com/nodejs/node/issues/43699
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:43:34 -04:00
Daeyeon Jeong
b4c75a96be
src: fix napi_check_object_type_tag()
...
This fixes a comparison failure occurring when the upper value of a
type tag is 0, or a type tag value is 0.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/43788
Fixes: https://github.com/nodejs/node/issues/43786
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-07-25 21:43:34 -04:00
Stephen Belanger
324473ca32
lib: improved diagnostics_channel subscribe/unsubscribe
...
Adds a new top-level subscribe/unsubscribe which will ref/unref the
channel WeakReference to prevent subscriptions from getting garbage
collected.
PR-URL: https://github.com/nodejs/node/pull/42714
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com >
2022-07-25 21:43:33 -04:00
Kohei Ueno
7571704186
test: complete TODO in test/wpt/test-url.js
...
PR-URL: https://github.com/nodejs/node/pull/43797
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-07-25 21:43:33 -04:00
Stephen Belanger
6bcd40dd85
domain: fix vm promise tracking while keeping isolation
...
PR-URL: https://github.com/nodejs/node/pull/43556
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-07-25 21:43:33 -04:00
Moshe Atlow
e404a3ef6d
test_runner: support timeout for tests
...
PR-URL: https://github.com/nodejs/node/pull/43505
Refs: https://github.com/nodejs/node/issues/43490
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2022-07-25 21:43:32 -04:00
legendecas
6f1d2dfb9d
test: add test on worker process.exit in async modules
...
PR-URL: https://github.com/nodejs/node/pull/43751
Refs: https://github.com/v8/v8/commit/22698d267667ad36f8b1d2c1f5ec71f54fcea3eb
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
2022-07-25 21:43:32 -04:00
LiviaMedeiros
776cc3abbd
test: use common.mustNotMutateObjectDeep() in immutability tests
...
PR-URL: https://github.com/nodejs/node/pull/43196
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:43:31 -04:00
LiviaMedeiros
42f2deb3a0
test: add common.mustNotMutateObjectDeep()
...
This function returns a Proxy object that throws on attempt to mutate it
Functions and primitives are returned directly
PR-URL: https://github.com/nodejs/node/pull/43196
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-07-25 21:43:31 -04:00
txxnano
a057510037
stream: initial approach to include strategy options on Readable.toWeb()
...
PR-URL: https://github.com/nodejs/node/pull/43515
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2022-07-25 21:43:30 -04:00
Michael Dawson
f3fc51c508
test: fix coverity warning in test
...
Fix uninitialized pointer field warning in test
Signed-off-by: Michael Dawson <mdawson@devrus.com >
PR-URL: https://github.com/nodejs/node/pull/43631
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-07-25 21:43:29 -04:00
Tobias Nießen
a9ecba2fa8
test: mark test-http-client-response-timeout flaky
...
Refs: https://github.com/nodejs/node/issues/43680
PR-URL: https://github.com/nodejs/node/pull/43792
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Beth Griggs <bgriggs@redhat.com >
2022-07-25 21:43:29 -04:00
Moshe Atlow
f28198cc05
test_runner: catch errors thrown within describe
...
PR-URL: https://github.com/nodejs/node/pull/43729
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2022-07-25 21:43:28 -04:00
Feng Yu
294f0ef4df
test: mark test-net-connect-reset-until-connected flaky on freebsd
...
PR-URL: https://github.com/nodejs/node/pull/43613
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-07-12 07:42:00 +02:00