Luke Albao
f4da308f8d
deps: V8: cherry-pick f7d000a7ae7b
...
Original commit message:
[logging] Bugfix: LinuxPerfBasicLogger should log JS functions
This patch fixes a typo that was introduced in commit
c51041f45400928cd64fbc8f389c0dd0dd15f82f /
https://chromium-review.googlesource.com/c/v8/v8/+/2336793 , which reversed the behavior of the perf_basic_prof_only_functions flag.
This also refactors the equivalent guard in LinuxPerfJitLogger to use the same inline CodeKind API for identifying JS Functions. This is unrelated to the bug, but it seems a fair rider to add on here.
Bug: v8:14387
Change-Id: I25766b0d45f4c65dfec5ae01e094a1ed94111054
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4954225
Reviewed-by: Camillo Bruni <cbruni@chromium.org >
Commit-Queue: Camillo Bruni <cbruni@chromium.org >
Cr-Commit-Position: refs/heads/main@{#90501}
Refs: https://github.com/v8/v8/commit/f7d000a7ae7b731805338338eb51a81fbcfe2628
PR-URL: https://github.com/nodejs/node/pull/50302
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
2023-10-24 09:41:06 +02:00
Antoine du Hamel
998feda118
esm: do not give wrong hints when detecting file format
...
PR-URL: https://github.com/nodejs/node/pull/50314
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-10-24 09:41:06 +02:00
Node.js GitHub Bot
269e268c38
deps: update ada to 2.7.2
...
PR-URL: https://github.com/nodejs/node/pull/50338
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-24 09:41:06 +02:00
Tobias Nießen
db2a1cf1cb
doc: fix navigator.hardwareConcurrency example
...
PR-URL: https://github.com/nodejs/node/pull/50278
Refs: https://github.com/nodejs/node/pull/47769
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-24 09:41:06 +02:00
Antoine du Hamel
8f7eb15603
vm: use import attributes instead of import assertions
...
The old import assertions proposal has been
renamed to "import attributes" with the following major changes:
1. The keyword is now `with` instead of `assert`.
2. Unknown assertions cause an error rather than being ignored.
This PR updates the documentation to encourage folks to use the new
syntax, and add aliases to preserve backward compatibility.
PR-URL: https://github.com/nodejs/node/pull/50141
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-24 09:41:05 +02:00
Moshe Atlow
a9ca7b32e7
test: improve watch mode test
...
PR-URL: https://github.com/nodejs/node/pull/50319
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-10-24 09:41:05 +02:00
Chengzhong Wu
91e373f8e9
node-api: return napi_exception_pending on proxy handlers
...
Accessing JS objects can be trapped with proxy handlers. These
handlers can throw when no node-api errors occur. In such cases,
`napi_pending_exception` should be returned.
PR-URL: https://github.com/nodejs/node/pull/48607
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-10-24 09:41:05 +02:00
Node.js GitHub Bot
03a31ce41e
deps: update corepack to 0.22.0
...
PR-URL: https://github.com/nodejs/node/pull/50325
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-24 09:41:05 +02:00
Geoffrey Booth
6e537aeb44
doc: explain how to disable navigator
...
PR-URL: https://github.com/nodejs/node/pull/50310
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-10-23 08:19:46 +02:00
Juan José
87be790fa9
worker: handle detached MessagePort from a different context
...
When `worker.moveMessagePortToContext` is used, the async handle
associated with the port, will be triggered more than needed (at least
one more time) and with null data. That can be avoided by simply
checking that the data is present and the port is not detached.
Fixes: https://github.com/nodejs/node/issues/49075
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/49150
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-10-23 08:19:46 +02:00
Aras Abbasi
1464eba1a0
lib: improve performance of validateStringArray and validateBooleanArray
...
PR-URL: https://github.com/nodejs/node/pull/49756
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2023-10-23 08:19:45 +02:00
Yagiz Nizipli
63b7059efd
test: set test-watch-mode-inspect as flaky
...
PR-URL: https://github.com/nodejs/node/pull/50259
Refs: https://github.com/nodejs/node/issues/49933
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:45 +02:00
Robert Nagy
531a3ae4b5
stream: simplify prefinish
...
PR-URL: https://github.com/nodejs/node/pull/50204
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-10-23 08:19:45 +02:00
Node.js GitHub Bot
000531781b
deps: update undici to 5.26.4
...
PR-URL: https://github.com/nodejs/node/pull/50274
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-10-23 08:19:45 +02:00
Shi Pujin
c40de82d62
doc: add loong64 info into platform list
...
PR-URL: https://github.com/nodejs/node/pull/50086
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-10-23 08:19:45 +02:00
Richard Lau
1c21a1880b
doc: update release process LTS step
...
A recent refactor of `nodejs-latest-linker` has moved the mapping
between Node.js versions and codenames to a different file.
Refs: https://github.com/nodejs/nodejs-latest-linker/pull/12
PR-URL: https://github.com/nodejs/node/pull/50299
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:44 +02:00
Antoine du Hamel
7f87084b05
Revert "test: set test-esm-loader-resolve-type as flaky"
...
This reverts commit 2e4bb3c017 .
PR-URL: https://github.com/nodejs/node/pull/50315
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:44 +02:00
Ulises Gascón
ab4bae8e1f
tools: drop support for osx notarization with gon
...
Refs: https://github.com/nodejs/build/issues/3385#issuecomment-1729281269
PR-URL: https://github.com/nodejs/node/pull/50291
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-10-23 08:19:44 +02:00
Niya Shiyas
4d390e2de4
test: replace forEach with for..of in test-http-perf_hooks.js
...
PR-URL: https://github.com/nodejs/node/pull/49818
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:44 +02:00
Niya Shiyas
67c599ec39
test: replace forEach with for..of in test-net-isipv4.js
...
PR-URL: https://github.com/nodejs/node/pull/49822
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-10-23 08:19:44 +02:00
Antoine du Hamel
19d3ce2494
test: deflake test-esm-loader-resolve-type
...
PR-URL: https://github.com/nodejs/node/pull/50273
Fixes: https://github.com/nodejs/node/issues/50040
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-10-23 08:19:43 +02:00
Niya Shiyas
2d8d6c5701
test: replace forEach with for..of in test-http2-server
...
PR-URL: https://github.com/nodejs/node/pull/49819
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:43 +02:00
Niya Shiyas
af31d51e5a
test: replace forEach with for..of in test-http2-client-destroy.js
...
PR-URL: https://github.com/nodejs/node/pull/49820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:43 +02:00
Aras Abbasi
5dc454a837
util: remove internal mime fns from benchmarks
...
PR-URL: https://github.com/nodejs/node/pull/50201
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:43 +02:00
Jungku Lee
0cc176ef25
fs: improve error performance for readSync
...
PR-URL: https://github.com/nodejs/node/pull/50033
Refs: https://github.com/nodejs/performance/issues/106
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2023-10-23 08:19:43 +02:00
Node.js GitHub Bot
f050668c14
deps: update c-ares to 1.20.1
...
PR-URL: https://github.com/nodejs/node/pull/50082
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-10-23 08:19:42 +02:00
Node.js GitHub Bot and Richard Lau
ba258b682b
deps: update c-ares to 1.20.0
...
Co-authored-by: Richard Lau <rlau@redhat.com >
PR-URL: https://github.com/nodejs/node/pull/50082
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-10-23 08:19:42 +02:00
Jungku Lee
5942edb774
fs: improve error performance for fsyncSync
...
PR-URL: https://github.com/nodejs/node/pull/49880
Refs: https://github.com/nodejs/performance/issues/106
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2023-10-23 08:19:42 +02:00
CanadaHonk
6ec5abadc0
fs: improve error performance for mkdirSync
...
PR-URL: https://github.com/nodejs/node/pull/49847
Refs: https://github.com/nodejs/performance/issues/106
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2023-10-23 08:19:42 +02:00
Yagiz Nizipli
465ad2a5ce
test: update url web platform tests
...
PR-URL: https://github.com/nodejs/node/pull/50264
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:41 +02:00
Yagiz Nizipli
5a52c518ef
lib: add navigator.userAgent
...
PR-URL: https://github.com/nodejs/node/pull/50200
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:41 +02:00
Filip Skokan
a362c276ec
crypto: ensure valid point on elliptic curve in SubtleCrypto.importKey
...
PR-URL: https://github.com/nodejs/node/pull/50234
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-10-23 08:19:41 +02:00
Geoffrey Booth
e375063e01
esm: detect ESM syntax in ambiguous JavaScript
...
PR-URL: https://github.com/nodejs/node/pull/50096
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Guy Bedford <guybedford@gmail.com >
2023-10-23 08:19:41 +02:00
Yagiz Nizipli
3b80a6894c
test: set test-emit-after-on-destroyed as flaky
...
Ref: https://github.com/nodejs/node/issues/50245
PR-URL: https://github.com/nodejs/node/pull/50246
Refs: https://github.com/nodejs/node/issues/50245
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-10-23 08:19:41 +02:00
Yagiz Nizipli
57adbdd156
test: set inspector async stack test as flaky
...
https://github.com/nodejs/node/issues/50243
PR-URL: https://github.com/nodejs/node/pull/50244
Refs: https://github.com/nodejs/node/issues/50243
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Ruy Adorno <ruyadorno@google.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-10-23 08:19:40 +02:00
StefanStojanovic
6507f66404
test: set test-worker-nearheaplimit-deadlock flaky
...
PR-URL: https://github.com/nodejs/node/pull/50277
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-10-23 08:19:40 +02:00
Yagiz Nizipli
21a6ba548d
test: set test-cli-node-options as flaky
...
PR-URL: https://github.com/nodejs/node/pull/50296
Refs: https://github.com/nodejs/node/issues/50295
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-10-23 08:19:40 +02:00
Michael Lumish
3f8cbb15cb
http2: allow streams to complete gracefully after goaway
...
A detailed analysis of the cause of this bug is in my linked comment on
the corresponding issue. The primary fix is the new setImmediate call in
Http2Stream#_destroy, which prevents a re-entrant call into
Http2Session::SendPendingData when sending trailers after the
Http2Session has been shut down, allowing the trailer data to be flushed
properly before the socket is closed.
As a result of this change, writes can be initiated later in the
lifetime of the Http2Session. So, when a JSStreamSocket is used as the
underlying socket reference for an Http2Session, it needs to be able to
accept write calls after it is closed.
In addition, now that outgoing data can be flushed differently after a
session is closed, in two tests clients receive errors that they
previously did not receive. I believe the new errors are more correct,
so I changed the tests to match.
Fixes: https://github.com/nodejs/node/issues/42713
Refs: https://github.com/nodejs/node/issues/42713#issuecomment-1756140062
PR-URL: https://github.com/nodejs/node/pull/50202
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-10-23 08:19:40 +02:00
Luigi Pinca
c55f8f30cb
test: reduce the number of requests and parsers
...
The maximum number of parsers in the free list is set to 1000. However
the test does not need to use this maximum. Reduce it to 50.
Refs: https://github.com/nodejs/node/pull/50228#issuecomment-1768293624
PR-URL: https://github.com/nodejs/node/pull/50240
Fixes: https://github.com/nodejs/node/issues/49564
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:39 +02:00
Richard Lau
2473aa3672
doc: fix release process table of contents
...
The table of contents for the release process still references a
deleted section. Remove that reference, and renumber the following
table of contents entries so that they link through to the correct
sections.
PR-URL: https://github.com/nodejs/node/pull/50216
Refs: https://github.com/nodejs/node/pull/45858
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-10-23 08:19:39 +02:00
Yagiz Nizipli
5129bedfa2
test: set crypto-timing test as flaky
...
PR-URL: https://github.com/nodejs/node/pull/50232
Refs: https://github.com/nodejs/node/issues/38226
Reviewed-By: Ruy Adorno <ruyadorno@google.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2023-10-23 08:19:39 +02:00
Rich Trott
be19d9baa1
meta: move Trott to TSC regular member
...
At the current time, I'm not able to give Node.js the time and attention
it needs and deserves from a voting TSC member. I'm proud of the work
and efforts I've made as a TSC voting member, and I want to leave before
I'm less happy with my efforts. Thanks for all the trust and good will
over the years.
PR-URL: https://github.com/nodejs/node/pull/50297
Reviewed-By: Tierney Cyren <hello@bnb.im >
Reviewed-By: Richard Lau <rlau@redhat.com >
2023-10-23 08:19:39 +02:00
Yagiz Nizipli
9bc5ab5e07
test: set test-structuredclone-* as flaky
...
PR-URL: https://github.com/nodejs/node/pull/50261
Refs: https://github.com/nodejs/node/issues/50260
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:39 +02:00
Tobias Nießen
9cd68b9083
buffer: remove unnecessary assignment in fromString
...
The assignment to the encoding variable has no effect.
Refs: https://github.com/nodejs/node/pull/29217
PR-URL: https://github.com/nodejs/node/pull/50199
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:38 +02:00
Antoine du Hamel
317e447ddc
test: deflake test-loaders-workers-spawned
...
PR-URL: https://github.com/nodejs/node/pull/50251
Fixes: https://github.com/nodejs/node/issues/50247
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-10-23 08:19:38 +02:00
Jithil P Ponnan
0c710daae2
test: improve code coverage of diagnostics_channel
...
test: improve code coverage of diagnostics_channel
PR-URL: https://github.com/nodejs/node/pull/50053
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2023-10-23 08:19:38 +02:00
Alex Yang
ce9d84eae3
doc: update api stream.compose
...
PR-URL: https://github.com/nodejs/node/pull/50206
Refs: https://github.com/nodejs/node/pull/50187/files#r1361215879
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
2023-10-23 08:19:38 +02:00
Yagiz Nizipli
7c6e4d7ec3
test: set test-esm-loader-resolve-type as flaky
...
Ref: https://github.com/nodejs/node/issues/50040
PR-URL: https://github.com/nodejs/node/pull/50226
Refs: https://github.com/nodejs/node/issues/50040
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
2023-10-23 08:19:38 +02:00
Yagiz Nizipli
c8744909b0
test: set inspector async hook test as flaky
...
Ref: https://github.com/nodejs/node/issues/50222
PR-URL: https://github.com/nodejs/node/pull/50252
Refs: https://github.com/nodejs/node/issues/50222
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2023-10-23 08:19:37 +02:00
Tim Perry
ce27ee701b
tls: reduce TLS 'close' event listener warnings
...
Without this, some heavy usage of TLS sockets can result in
MaxListenersExceededWarning firing, from the 'this.on('close', ...)'
line here.
These appear to come from reinitializeHandle, which calls _wrapHandle
repeatedly on the same socket instance.
PR-URL: https://github.com/nodejs/node/pull/50136
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2023-10-23 08:19:37 +02:00