Joyee Cheung
874c50296d
src: dump snapshot source with node:generate_default_snapshot_source
...
This helps diffing snapshots when the reproducibility gets broken.
PR-URL: https://github.com/nodejs/node/pull/61101
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-14 17:21:27 -03:00
Efe
dc19409f36
fs: validate statfs path
...
PR-URL: https://github.com/nodejs/node/pull/61230
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
2026-01-14 17:21:26 -03:00
TseIan
ca5c4c9752
process: improve process.cwd() error message
...
PR-URL: https://github.com/nodejs/node/pull/61164
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: theanarkh <theratliter@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-01-14 17:21:25 -03:00
René
c08afc5712
test: check util.parseArgs argv parsing with actual process execution
...
PR-URL: https://github.com/nodejs/node/pull/61089
Refs: https://github.com/nodejs/node/pull/60814
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:56 -03:00
Nikita Skovoroda
86bce15e96
lib: implement all 1-byte encodings in js
...
PR-URL: https://github.com/nodejs/node/pull/61093
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:56 -03:00
Yeaseen
206e353a4a
fs: fix rmSync to handle non-ASCII characters
...
Update fs.rmSync to properly handle file paths that include
non-ASCII characters. This change prevents crashes and errors
when attempting to delete files with international or special
characters in their names.
Add a test in test/parallel to ensure that files with
non-ASCII characters can be deleted without issues.
This covers cases that previously caused unexpected behavior
or crashes on certain file systems.
Fixes: https://github.com/nodejs/node/issues/56049
PR-URL: https://github.com/nodejs/node/pull/61108
Reviewed-By: Jason Zhang <xzha4350@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-01-13 10:04:55 -03:00
Pramit Sharma
cb8bc3466d
sqlite: improve error messages for tag store
...
When using SQLite tag store functions (sql.get`, sql.run`, etc.),
preparation errors now show descriptive SQLite error messages instead
of the generic 'Failed to prepare statement' message.
The tag store's GetOrCreateStatement function now passes the database
object to THROW_ERR_SQLITE_ERROR, allowing it to retrieve the actual
error message from sqlite3_errmsg(), matching the behavior of the
regular db.prepare() method.
Fixes: https://github.com/nodejs/node/issues/61051
PR-URL: https://github.com/nodejs/node/pull/61096
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:54 -03:00
René
bd0942f4f5
stream: do not pass readable.compose() output via Readable.from()
...
PR-URL: https://github.com/nodejs/node/pull/60907
Fixes: https://github.com/nodejs/node/issues/55203
Reviewed-By: Raz Luvaton <rluvaton@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2026-01-13 10:04:53 -03:00
sangwook
feee377b83
fs: remove broken symlinks in rmSync
...
PR-URL: https://github.com/nodejs/node/pull/61040
Fixes: https://github.com/nodejs/node/issues/61020
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com >
2026-01-13 10:04:53 -03:00
Ruben Bridgewater
4ef4f759cb
assert,util: fix deep comparing invalid dates skipping properties
...
The property comparison of invalid dates regressed when starting
to handle invalid dates as being equal.
PR-URL: https://github.com/nodejs/node/pull/61076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:52 -03:00
Ruben Bridgewater
c8fccd585f
assert,util: improve deep comparison performance
...
PR-URL: https://github.com/nodejs/node/pull/61076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:51 -03:00
Efe
6da85b576b
events: remove eventtarget custom inspect branding
...
PR-URL: https://github.com/nodejs/node/pull/61128
Reviewed-By: Aviv Keller <me@aviv.sh >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2026-01-13 10:04:51 -03:00
Xavier Stouder
3c5dc03f06
os: freeze signals constant
...
Remove the ability to mutate signals constant as doing so can lead to
unexpected behavior, notably when spawning child process.
Fixes: https://github.com/nodejs/node/issues/44749
PR-URL: https://github.com/nodejs/node/pull/61038
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:51 -03:00
Ruben Bridgewater
1dd15c9502
util: limit inspect to only show own properties
...
`Error`'s `cause` and `errors` properties would be visible even if these
were not own properties. This is changed to align with all other
parts of the `inspect` handling.
Fixes: https://github.com/nodejs/node/issues/60717
PR-URL: https://github.com/nodejs/node/pull/61032
Reviewed-By: Jordan Harband <ljharb@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:51 -03:00
René
9f7cc779f5
test: make buffer sizes 32bit-aware in test-internal-util-construct-sab
...
PR-URL: https://github.com/nodejs/node/pull/61026
Fixes: https://github.com/nodejs/node/issues/61025
Refs: https://github.com/nodejs/node/pull/60497
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:50 -03:00
Dario Piotrowicz
571cec49e0
repl: fix getters triggering side effects during completion
...
PR-URL: https://github.com/nodejs/node/pull/61043
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Aviv Keller <me@aviv.sh >
2026-01-13 10:04:50 -03:00
Dario Piotrowicz
c6a8234963
test: remove unneccessary repl magic_mode tests
...
PR-URL: https://github.com/nodejs/node/pull/61053
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2026-01-13 10:04:50 -03:00
Antoine du Hamel
4a22647609
lib,src,test: fix tests without SQLite
...
PR-URL: https://github.com/nodejs/node/pull/60906
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:47 -03:00
Robin van Wijngaarden
6b577c80bb
fs: detect dot files when using globstar
...
Using globstar in glob pattern should not prevent dot (hidden) files
from being matched.
PR-URL: https://github.com/nodejs/node/pull/61012
Fixes: https://github.com/nodejs/node/issues/56321
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2026-01-13 10:04:47 -03:00
Antoine du Hamel
24795530bb
lib,test: enforce use of assert.fail via a lint rule
...
PR-URL: https://github.com/nodejs/node/pull/61004
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:47 -03:00
Antoine du Hamel
b209f6ba19
test: simplify test-cli-node-options-docs
...
PR-URL: https://github.com/nodejs/node/pull/61006
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Erick Wendel <erick.workspace@gmail.com >
2026-01-13 10:04:47 -03:00
Erick Wendel
5051d90100
util: add convertProcessSignalToExitCode utility
...
Add convertProcessSignalToExitCode() to convert signal names to POSIX
exit codes (128 + signal number). Exposed in public util API.
Refs: https://github.com/nodejs/node/pull/60720
PR-URL: https://github.com/nodejs/node/pull/60963
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2026-01-13 10:04:47 -03:00
René
324ea4fa2d
sqlite: make SQLTagStore.prototype.size a getter
...
Drive-by: make callback `args` parameter names consistent
PR-URL: https://github.com/nodejs/node/pull/60246
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2026-01-13 10:04:47 -03:00
azadgupta1
98b6dc1181
util: fix parseArgs skipping positional arg with --eval and --print
...
PR-URL: https://github.com/nodejs/node/pull/60814
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
2026-01-13 10:04:47 -03:00
Pietro Marchini
ec142be1ed
test_runner: propagate V8 options to child process
...
PR-URL: https://github.com/nodejs/node/pull/60999
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2026-01-13 10:04:44 -03:00
Chengzhong Wu
42666c241a
lib,src: isInsideNodeModules should test on the first non-internal frame
...
PR-URL: https://github.com/nodejs/node/pull/60991
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Daniel Lemire <daniel@lemire.me >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:44 -03:00
Livia Medeiros
92649e2873
test: deflake test-repl-paste-big-data
...
PR-URL: https://github.com/nodejs/node/pull/60975
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:42 -03:00
Antoine du Hamel
e4bc345442
test: skip tests not passing without NODE_OPTIONS support
...
PR-URL: https://github.com/nodejs/node/pull/60912
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:42 -03:00
Rafael Gonzaga
63299a47ec
test: improve config-file permission test coverage
...
Refs: https://github.com/nodejs/node/pull/60746#pullrequestreview-3470430664
PR-URL: https://github.com/nodejs/node/pull/60929
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:42 -03:00
Mert Can Altin
550e8a7a69
src: implement Windows-1252 encoding support and update related tests
...
PR-URL: https://github.com/nodejs/node/pull/60893
Fixes: https://github.com/nodejs/node/issues/60888
Fixes: https://github.com/nodejs/node/issues/59515
Fixes: https://github.com/nodejs/node/issues/56542
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-13 10:04:41 -03:00
Chengzhong Wu
862eaf8a09
util: assert getCallSites does not invoke Error.prepareStackTrace
...
PR-URL: https://github.com/nodejs/node/pull/60922
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com >
2026-01-13 10:04:40 -03:00
René
90c12a252a
stream: fix isErrored/isWritable for WritableStreams
...
PR-URL: https://github.com/nodejs/node/pull/60905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:38 -03:00
Joyee Cheung
3f9c0e07b4
src: fix off-thread cert loading in bundled cert mode
...
https://redirect.github.com/nodejs/node/pull/59856 had an typo/mistake
in the skip conditions so that it is skipping when --use-openssl-ca
or --openssl-system-ca-path (configure time) are NOT used, even
though they should be skipped only when those ARE used (which is
not the default for default builds). This change fixes that so
that the perf numbers in that PR is true for the default build.
PR-URL: https://github.com/nodejs/node/pull/60764
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-13 10:04:37 -03:00
René
ac367b3550
test: lint more assert(regexp.test(...)) cases
...
PR-URL: https://github.com/nodejs/node/pull/60878
Refs: https://github.com/nodejs/node/pull/60832
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:35 -03:00
René
ca5720e7b5
test: use assert.match for non-literal regexp tests
...
PR-URL: https://github.com/nodejs/node/pull/60879
Refs: https://github.com/nodejs/node/pull/60832
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2026-01-13 10:04:35 -03:00
Yuki Okita
8caeb03a52
test: skip failing tests when compiled without amaro
...
When compiled without amaro, this conflicts with
--experimental-strip-types defaulting to true. To avoid that,
we need to skip relevant failing tests.
Fixes: https://github.com/nodejs/node/issues/60640
PR-URL: https://github.com/nodejs/node/pull/60815
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:34 -03:00
Michaël Zasso
103e55487e
src: handle indexed properties in process.env
...
Closes: https://github.com/nodejs/node/issues/60795
PR-URL: https://github.com/nodejs/node/pull/60826
Fixes: https://github.com/nodejs/node/issues/60795
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-13 10:04:34 -03:00
Yves M.
b6903aaf8d
util: safely inspect getter errors whose message throws
...
PR-URL: https://github.com/nodejs/node/pull/60684
Fixes: https://github.com/nodejs/node/issues/60683
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:34 -03:00
René
aefbe4ba47
events: repurpose events.listenerCount() to accept EventTargets
...
PR-URL: https://github.com/nodejs/node/pull/60214
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2026-01-13 10:04:32 -03:00
Antoine du Hamel
b890362e1a
test: add lint rule to forbid use of assert.ok(/regex/.test(…))
...
PR-URL: https://github.com/nodejs/node/pull/60832
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2026-01-13 10:04:32 -03:00
Aditya Chopra
b08cb5657e
test: replace deprecated regex test assertions in http trailers test
...
PR-URL: https://github.com/nodejs/node/pull/60831
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2026-01-13 10:04:31 -03:00
Antoine du Hamel
47ed95965e
test: ensure assertions are reached on more tests
...
PR-URL: https://github.com/nodejs/node/pull/60761
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:29 -03:00
Antoine du Hamel
79d48f9441
test: ensure assertions are reached on more tests
...
PR-URL: https://github.com/nodejs/node/pull/60759
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:26 -03:00
Chengzhong Wu
9426ff6b08
test: add basic temporal presence check
...
PR-URL: https://github.com/nodejs/node/pull/60703
Refs: https://github.com/nodejs/node/issues/58730
Refs: https://github.com/nodejs/node/pull/60693
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2026-01-13 10:04:22 -03:00
Marco Ippolito
920f02539e
src: implicitly enable namespace in config
...
PR-URL: https://github.com/nodejs/node/pull/60798
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-13 10:04:21 -03:00
Marco Ippolito
831256cb92
src: rename config file testRunner to test
...
PR-URL: https://github.com/nodejs/node/pull/60798
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2026-01-13 10:04:20 -03:00
Chengzhong Wu
1c38f808bd
tools: dump config.gypi as json
...
This helps js2c processing the node.gypi correctly when a string
contains a quote.
PR-URL: https://github.com/nodejs/node/pull/60794
Refs: https://github.com/nodejs/node/pull/60703
Reviewed-By: Richard Lau <richard.lau@ibm.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:20 -03:00
Đỗ Trọng Hải
377aed336c
repl: tab completion targets <class> instead of new <class>
...
Signed-off-by: hainenber <dotronghai96@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/60319
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk >
2026-01-13 10:04:20 -03:00
Marco Ippolito
51cf032a5e
src: add permission support to config file
...
PR-URL: https://github.com/nodejs/node/pull/60746
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2026-01-13 10:04:18 -03:00
Antoine du Hamel
ffebf8e55c
test: ensure assertions are reached on more tests
...
PR-URL: https://github.com/nodejs/node/pull/60726
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2026-01-13 10:04:17 -03:00