Trivikram Kamat
83b91ea6ec
test_runner: filter execArgv fallback for child tests
...
Apply the test runner propagation filter to execArgv entries that are
not reported by the options binding. This prevents config-file and
test-runner flags from leaking into isolated child tests while still
preserving V8 flags.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64056
Refs: https://github.com/nodejs/reliability/issues?q=%22test-runner-flag-propagation%22
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-07-03 16:04:52 +00:00
Trivikram Kamat
ff9122c20c
test: improve lcov reporter snapshot diagnostics
...
Propagate failures from the nested LCOV reporter fixture process and
make missing LCOV records fail with a targeted assertion instead of
comparing against blank transformed output.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64049
Refs: https://github.com/nodejs/reliability/issues?q=%22test-output-lcov-reporter%22
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-07-03 16:04:50 +00:00
Richard Lau
f3db304588
doc: update list of people in SECURITY.md
...
Update the list of people with access to:
- Private security reports against Node.js.
- Private security patches to Node.js.
The latter by running `ncu-team sync SECURITY.md`.
Signed-off-by: Richard Lau <richard.lau@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/64152
Refs: https://github.com/nodejs/Release/issues/733
Refs: https://github.com/nodejs/TSC/issues/1760
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2026-07-03 16:04:48 +00:00
Matteo Collina
2a126647b0
doc: clarify vfs is not a sandbox
...
Signed-off-by: Matteo Collina <hello@matteocollina.com >
PR-URL: https://github.com/nodejs/node/pull/64143
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-07-03 16:04:47 +00:00
Aviv Keller
7b01040008
meta: speed up stale bot
...
Signed-off-by: Aviv Keller <me@aviv.sh >
PR-URL: https://github.com/nodejs/node/pull/64075
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-07-03 16:04:45 +00:00
Antoine du Hamel
85fc79dd9b
doc: fix broken links and duplicate stability label
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64130
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-07-03 16:04:44 +00:00
Filip Skokan
90007a59a9
zlib: expose rejectGarbageAfterEnd option
...
Document rejectGarbageAfterEnd as a public decompression option and
validate it as a boolean.
Add coverage for stream, async convenience, and sync convenience APIs
across zlib, gzip, Brotli, and Zstd-backed decompression.
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64023
Fixes: https://github.com/nodejs/node/issues/58247
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-07-03 16:04:42 +00:00
Filip Skokan
5933516066
zlib: reject trailing gzip members in web streams
...
Pass the existing rejectGarbageAfterEnd option through to the native
zlib context and skip gunzip's concatenated-member loop when it is set.
This lets DecompressionStream reject a second gzip member as trailing
input while preserving default zlib gunzip behavior.
Also make the sync zlib path honor rejectGarbageAfterEnd when native
decompression leaves unused input, covering Brotli as well.
Fixes: https://github.com/nodejs/node/issues/58247
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64023
Fixes: https://github.com/nodejs/node/issues/58247
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-07-03 16:04:40 +00:00
Filip Skokan
58d9685acc
typings: add typing for crypto
...
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64122
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-07-03 16:04:39 +00:00
Trivikram Kamat
bbdd7643b6
vfs: read RealFSProvider files from open fd
...
Read RealFileHandle contents through the open file descriptor instead
of reopening the original real path. This keeps already-open VFS file
descriptors usable after the backing file is renamed.
Use positioned reads so readFileSync() and readFile() preserve the
handle's current offset.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64104
Fixes: https://github.com/nodejs/node/issues/64103
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-07-03 16:04:37 +00:00
Joyee Cheung
f4e7bf1f1c
build: pin envinfo versions in github actions
...
Currently they all run `npx envinfo` without pinning the version.
This can be a supply-chain risk.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64117
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-07-03 16:04:35 +00:00
Richard Lau
189e830eb3
doc: add missing option to man page
...
Add missing `--experimental-import-text` option to `doc/node.1`.
Signed-off-by: Richard Lau <richard.lau@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/64156
Refs: https://github.com/nodejs/node/pull/62300
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-07-03 16:04:34 +00:00
Efe
b373202efc
esm: add --experimental-import-text flag
...
Signed-off-by: Efe Karasakal <hi@efe.dev >
PR-URL: https://github.com/nodejs/node/pull/62300
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-07-03 16:04:32 +00:00
René
c7e57f55a7
deps: c-ares: cherry-pick 8ba37af8e3fb
...
Original commit message:
Fixes #1056
The commit
https://github.com/c-ares/c-ares/commit/1d1b3d4a808dff9359cacb4539ac1b775876dcb6
refactored the function to use wide strings, but didn't touch this
check. Because an empty wide string would now be size 2 and not 1, the
empty string would go on and cause the DNS domain list to be replaced
with nothing.
Signed-off-by: @dankmeme01
Refs: https://github.com/c-ares/c-ares/commit/8ba37af8e3fbcaad93f028cd9b36d06ff6d39543
PR-URL: https://github.com/nodejs/node/pull/64110
Fixes: https://github.com/nodejs/node/issues/62347
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-07-03 16:04:30 +00:00
Antoine du Hamel
7a16ccccd0
doc: announce upcoming end of tier 2 support for macOS x64
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63931
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Stewart X Addison <sxa@redhat.com >
2026-07-03 16:04:29 +00:00
Stephen Belanger
dc052c095c
diagnostics_channel: return original thenable
...
This makes tracePromise return the original thenable to allow custom
thenable types to retain their methods rather than producing the
chained result type.
Signed-off-by: Stephen Belanger <admin@stephenbelanger.com >
PR-URL: https://github.com/nodejs/node/pull/62407
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2026-07-03 16:04:27 +00:00
Kevin Gibbons
879fdc4daf
deps: V8: backport da20a197a7f9
...
Original commit message:
[builtins] Make Promise resolvers not keep resolved Promises alive
Currently a Promise's resolve/reject functions unconditionally hold the
Promise, plus a separate bit to track whether the Promise has been
resolved. Instead, hold a single field with Promise|Undefined.
This allows GC'ing a resolved Promise even if its resolvers are still
alive.
R=olivf@chromium.org
Fixed: 42213031
Change-Id: Ice645dbabb79e63dfcac8ae843cad95439d7a1f1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7646250
Reviewed-by: Darius Mercadier <dmercadier@chromium.org >
Commit-Queue: Kevin Gibbons <bakkot@gmail.com >
Reviewed-by: Olivier Flückiger <olivf@chromium.org >
Cr-Commit-Position: refs/heads/main@{#108183}
Refs: https://github.com/v8/v8/commit/da20a197a7f9c2045b1ee501a472072944a86332
Co-authored-by: Kevin Gibbons <bakkot@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64101
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-07-03 16:04:25 +00:00
Kevin Gibbons
a640543a7c
deps: V8: cherry-pick 0cc9eb22c0b0
...
Original commit message:
[api] Remove PromiseResolveAfterResolved and PromiseRejectAfterResolved
These were previously deprecated in https://crrev.com/c/7774767
Bug: 42213031
Change-Id: I07b802b743bf052611f30a61c1132231df22f0bd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7897881
Commit-Queue: Olivier Flückiger <olivf@chromium.org >
Reviewed-by: Camillo Bruni <cbruni@chromium.org >
Reviewed-by: Olivier Flückiger <olivf@chromium.org >
Cr-Commit-Position: refs/heads/main@{#108040}
Refs: https://github.com/v8/v8/commit/0cc9eb22c0b0d132344b83b906f8a0e5aaa7b61e
PR-URL: https://github.com/nodejs/node/pull/64101
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-07-03 16:04:23 +00:00
Kevin Gibbons
feefd179e5
deps: V8: cherry-pick 1a391f98cc7a
...
Original commit message:
[api] Deprecate kPromiseRejectAfterResolved and kPromiseResolveAfterResolved
These events will be removed soon.
Bug: 42213031
Change-Id: Ie70474ff33c40c7d9cb0c2d0fbe6b75da3c53a22
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7774767
Commit-Queue: Kevin Gibbons <bakkot@gmail.com >
Reviewed-by: Olivier Flückiger <olivf@chromium.org >
Reviewed-by: Leszek Swirski <leszeks@chromium.org >
Cr-Commit-Position: refs/heads/main@{#107395}
Refs: https://github.com/v8/v8/commit/1a391f98cc7a9196369f2d6cab7df35ffbe92c08
PR-URL: https://github.com/nodejs/node/pull/64101
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-07-03 16:04:22 +00:00
Antoine du Hamel
6d11a71d91
tools: update build-shared/action.yml to a reusable workflow
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64059
Reviewed-By: Jithil P Ponnan <jithil@outlook.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-07-03 16:04:20 +00:00
Antoine du Hamel
7a17c50b7f
tools: update libffi updater script
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64046
Reviewed-By: Paolo Insogna <paolo@cowtech.it >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-07-03 16:04:18 +00:00
Tobias Nießen
12edf1d68d
src: avoid redundant call to std::get_if<>()
...
Signed-off-by: Tobias Nießen <tniessen@tnie.de >
PR-URL: https://github.com/nodejs/node/pull/64094
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
2026-07-03 16:04:17 +00:00
Tobias Nießen
3bdd7e20be
tls: handle large RSA exponents in X.509 cert
...
If the exponent does not fit into a single word, previous versions of
Node.js would report an incorrect value or, recently, return `null`.
Change `GetExponentString()` to handle arbitrarily large RSA public
exponents properly.
Signed-off-by: Tobias Nießen <tniessen@tnie.de >
PR-URL: https://github.com/nodejs/node/pull/64093
Refs: https://github.com/nodejs/node/pull/63895
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-07-03 16:04:15 +00:00
Tobias Nießen
32bb554f5b
crypto: fix large DH generator validation
...
Unfortunately, `std::optional<>` implements `operator<` in such a way
that this check will fail for very large generators. Since `bn_g` is
unsigned, if its value does not fit into a single word, we can be
certain that it is at least 2. By only checking the value if it does
indeed fit into a word, the check correctly ignores very large
generators.
Signed-off-by: Tobias Nießen <tniessen@tnie.de >
PR-URL: https://github.com/nodejs/node/pull/64092
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-07-03 16:04:13 +00:00
Ivan Trubach
66f6ac0d86
build: support setting an emulator from configure script
...
V8’s JIT infrastructure requires binaries such as mksnapshot to be run
during the build. However, these binaries must have the same bit-width
as the host platform (e.g. a x86_64 build platform targeting ARMv6 needs
to produce a 32-bit binary).
To work around this issue, allow building the binaries for the host
platform and running them on the build platform with an emulator.
Based on Buildroot’s nodejs-src 0001-add-qemu-wrapper-support.patch.
https://gitlab.com/buildroot.org/buildroot/-/blob/c1d5eada4d4db9eeaa1c44dd1dea95a67c8a70ca/package/nodejs/nodejs-src/0001-add-qemu-wrapper-support.patch
PR-URL: https://github.com/nodejs/node/pull/53899
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-07-03 16:04:12 +00:00
Trivikram Kamat
570952d4f3
test: keep finalization close fixture ref alive
...
The close fixture expects the registered object to still be reachable
when the process emits exit. Keep a strong reference outside setup() so
the assertion does not depend on platform-specific GC timing.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64085
Refs: https://github.com/nodejs/reliability/issues?q=%22test-process-finalization%22
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
2026-07-03 16:04:10 +00:00
Pablo Erhard
39e0c14455
perf_hooks: sample delay per event loop iteration
...
Add a samplePerIteration option to monitorEventLoopDelay that records
event loop delay from libuv event loop iterations instead of the timer
interval sampler. The default remains interval-based; existing uses of
monitorEventLoopDelay() keep behaving the same unless the
samplePerIteration option is passed through.
Signed-off-by: Pablo Erhard <pablo.erhardhernandez@datadoghq.com >
PR-URL: https://github.com/nodejs/node/pull/62935
Reviewed-By: Bryan English <bryan@bryanenglish.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2026-07-03 16:04:08 +00:00
parkhojeong
1b4f213380
test: fix typo from overriden to overridden
...
Signed-off-by: parkhojeong <parkhj062@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63403
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com >
2026-07-03 16:04:07 +00:00
parkhojeong
4c91090b8b
test: fix typo from funciton to function
...
Signed-off-by: parkhojeong <parkhj062@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63403
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com >
2026-07-03 16:04:05 +00:00
Richard Lau
d5f826045f
doc: update toolchain for official AIX releases
...
Starting with Node.js 26.0.0, official binaries for AIX are built with
Clang 20.1.
Signed-off-by: Richard Lau <richard.lau@ibm.com >
PR-URL: https://github.com/nodejs/node/pull/64068
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Stewart X Addison <sxa@redhat.com >
2026-07-03 16:04:03 +00:00
Trivikram Kamat
bf080c7917
test: mark hr-time WPT flaky on macos15-x64
...
The basic.any.js test compares elapsed performance.now() with elapsed
Date.now(). On macos15-x64 CI, Date.now() can shift relative to the
monotonic clock and exceed the test's 30 ms tolerance.
Convert the status file to .cjs so the flaky expectation is scoped to
macOS 15 on x64.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/64054
Refs: https://github.com/nodejs/reliability/issues?q=%22wpt%2Ftest-hr-time%22
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Jason Zhang <xzha4350@gmail.com >
2026-07-03 16:04:02 +00:00
Kamal Rawal
60abc4400f
doc: fix callback example import in fs docs
...
Signed-off-by: Rawal27 <obviouslykamal@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63912
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-07-03 16:04:00 +00:00
Trivikram Kamat
24e32098c5
test: use one-off agent in http consumed timeout test
...
Disable connection pooling for the client request so server.close()
does not wait on an idle keep-alive socket before retrying the test.
This keeps the test focused on request timeout behavior instead of
HTTP keep-alive teardown timing.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/64052
Refs: https://github.com/nodejs/reliability/issues?q=%22test-http-server-consumed-timeout%22
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-07-03 16:03:58 +00:00
Trivikram Kamat
269b609a3d
test_runner: improve coverage failure diagnostics
...
Include the coverage filename when parsing V8 coverage data fails,
and make test-runner coverage assertions report spawned child process
output when the expected coverage report is missing.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64050
Refs: https://github.com/nodejs/reliability/issues?q=%22parallel%2Ftest-runner-coverage%22
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2026-07-03 16:03:56 +00:00
Ijtihed Kilani
7a9dcad44d
util: fix OOM in inspect color stack formatting
...
Signed-off-by: Ijtihed Kilani <ijtihedk@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64022
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-07-03 16:03:55 +00:00
Filip Skokan
0908d76ef6
crypto: reject small-order EdDSA points during verify
...
Return false for Ed25519 and Ed448 one-shot verification when the public
key or signature R component is a known low-order point. This keeps key
import behavior unchanged while making WebCrypto verification match WPT
expectations across OpenSSL variants.
Remove the stale WPT expected-failure entry and add focused regression
coverage for both curves.
Closes: https://github.com/nodejs/node/issues/54572
Signed-off-by: Filip Skokan <panva.ip@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64026
Fixes: https://github.com/nodejs/node/issues/54572
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2026-07-03 16:03:53 +00:00
Guilherme Araújo
1f72393f19
lib: lazily initialize kEvents and kHandlers maps
...
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63702
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
2026-07-03 16:03:51 +00:00
Trivikram Kamat
3229886de2
test: fix flaky test-runner coverage threshold test
...
Reset process.exitCode before running the coverage threshold check.
This lets the test verify the exit code set by that run() call without
depending on process-global state from earlier coverage runs.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
PR-URL: https://github.com/nodejs/node/pull/64051
Refs: https://github.com/nodejs/reliability/issues?q=%22test-runner-run-coverage%22
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2026-07-03 16:03:50 +00:00
Daijiro Wachi
1182ad8f3b
stream: proxy first own method in Readable.wrap()
...
The method-proxying loop in Readable.prototype.wrap() started at
index 1, silently skipping streamKeys[0] and leaving a method at the
first own-enumerable key unproxied.
This was introduced in ee9e2a2eb6 when ArrayPrototypeForEach(
ObjectKeys(stream), ...) — which iterates from index 0 — was
rewritten as a manual for loop for performance. The faithful
translation starts at 0; a sibling loop converted in the same commit
correctly does so. The bug stayed hidden because keys[0] is usually
_events (a non-function), which the loop's typeof guard skips anyway.
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64048
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Mattias Buelens <mattias@buelens.com >
2026-07-03 16:03:48 +00:00
Antoine du Hamel
28047a3e71
tools: exclude libffi changes from test-shared GHA CI
...
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64047
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Richard Lau <richard.lau@ibm.com >
2026-07-03 16:03:46 +00:00
Attila Szegedi
f90f1bd032
perf_hooks: add NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP constant
...
V8's Minor Mark-Sweep collector, enabled with the --minor-ms flag
(available since Node.js 22), reports garbage collection performance
entries with kind kGCTypeMinorMarkSweep (value 2). perf_hooks exposed
constants for every other GC kind (major, minor, incremental, weakcb)
but not this one, so consumers inspecting performanceEntry.detail.kind
had no constant to compare against and saw an unmapped value.
Expose it as perf_hooks.constants.NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP,
mirroring the existing v8::GCType mappings, and document it alongside
the other GC kinds.
Signed-off-by: Attila Szegedi <attila.szegedi@datadoghq.com >
PR-URL: https://github.com/nodejs/node/pull/63877
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-07-03 16:03:45 +00:00
René
874c46c24f
meta: update sccache version in test-linux-quic
...
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk >
PR-URL: https://github.com/nodejs/node/pull/64043
Refs: https://github.com/nodejs/node/pull/63078
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-07-03 16:03:43 +00:00
Daijiro Wachi
00dea28bb3
repl: lazy-load acorn and defer vm context creation
...
Merely loading the repl builtin used to eagerly require acorn and
acorn-walk (~250KB of JS) and create an entire V8 context via
vm.runInNewContext() just to enumerate global property names, even
though both are only needed once REPL input is actually parsed or
tab-completion is used.
Require acorn and acorn-walk at their function-level use sites
instead, and wrap the global builtins set in getLazy(). The cost
moves to the first preview/completion/recoverable-error check,
where the one-time ~1ms is imperceptible.
Benchmark results (Linux x64, misc/startup-core.js, 20 runs):
require-builtins.js: +3.12% ops/s (t=3.57, p<0.01)
import-builtins.mjs: +2.20% ops/s (t=3.00, p<0.01)
In isolation, require('repl') drops from 4.64ms to 2.84ms (-39%)
and interactive `node -i` startup improves by ~13%.
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/63879
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-07-03 16:03:41 +00:00
Node.js GitHub Bot
8ef643d4b0
deps: update googletest to 0b1e895ba4226c2fda5ee0178c9b5b1195a741aa
...
PR-URL: https://github.com/nodejs/node/pull/64039
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-07-03 16:03:40 +00:00
Khafra
55f48446c7
buffer: implement blob.textStream()
...
Signed-off-by: Matthew Aitken <maitken033380023@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64036
Refs: https://github.com/w3c/FileAPI/commit/cd1d1da9a5375af0622af4b36e76c6e6bd9d130b
Refs: https://github.com/nodejs/undici/commit/0d6ecc571095a6bff1c2ad4ee43dd6ae4e97411c
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Mattias Buelens <mattias@buelens.com >
2026-07-03 16:03:38 +00:00
Yagiz Nizipli
eda91b6d01
src: avoid copying source string in TextEncoder.encode
...
`EncodeUtf8String`, which backs `TextEncoder.prototype.encode()`, copied
the entire source string out of the V8 heap into a `MaybeStackBuffer`
(via `WriteOneByteV2`/`WriteV2`) before encoding, allocating on the heap
for strings larger than the stack buffer. `EncodeInto` already avoids
this by reading the flat content directly through
`v8::String::ValueView`.
Read the flat content via `ValueView` instead. Because `ValueView` holds
a `DisallowGarbageCollection` scope, the backing store cannot be
allocated while it is alive, so the view is used in two short scopes:
one to validate and compute the exact UTF-8 length, and one to encode
directly into the backing store after allocation. Flattening is cached
on the string, so re-acquiring the view is cheap. The rare unpaired
surrogate path still copies into a mutable buffer for in-place
`to_well_formed_utf16`.
benchmark/util/text-encoder.js (op=encode, n=1e6, 12 runs each):
len=256 len=1024 len=8192
ascii +14.1% +23.5% +43.9%
one-byte (latin1) +14.4% +22.2% +12.3%
two-byte (utf-16) +16.7% +20.4% +15.5%
len=32 uses the unchanged small-string path (~noise). The untouched
encodeInto path stayed flat (-2.0%..+0.5%) across all configurations.
Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com >
PR-URL: https://github.com/nodejs/node/pull/63897
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-07-03 16:03:36 +00:00
sangwook
0342744c34
test_runner: add timestamp to JUnit reporter testsuites
...
Emit the standard JUnit timestamp (ISO 8601) on <testsuite> elements,
which the reporter was omitting. The suite start time is reconstructed
as end-minus-duration, because the runner reports a suite's test:start
lazily (when its first subtest reports), which would otherwise record a
time close to the suite's end.
Fixes: https://github.com/nodejs/node/issues/64028
Signed-off-by: sangwook <rewq5991@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/64029
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Jacob Smith <jacob@frende.me >
2026-07-03 16:03:35 +00:00
Jahanzaib iqbal
e470c74a6c
doc: fix keepAliveTimeout default in http.createServer options
...
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com >
PR-URL: https://github.com/nodejs/node/pull/63974
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-07-03 16:03:33 +00:00
Trivikram Kamat
d0b830b382
stream: observe abort while awaiting pipeTo source
...
Use the abort-aware iterator wrapper in the no-transform pipeTo()
path so a pending source read does not block AbortSignal handling.
Fixes: https://github.com/nodejs/node/issues/64014
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/64015
Fixes: https://github.com/nodejs/node/issues/64014
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-07-03 16:03:31 +00:00
Trivikram Kamat
f7adcd8359
stream: respect iter consumer abort signals
...
Delegate broadcast.push() and share.pull() calls with per-consumer
AbortSignals through pull(), so pending next() calls reject when the
signal aborts.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com >
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63997
Fixes: https://github.com/nodejs/node/issues/63302
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2026-07-03 16:03:26 +00:00