Skip to content

Commit 83baeeb

Browse files
authored
Merge branch 'nodejs:main' into my-fix-branch
2 parents 8657b13 + afc5893 commit 83baeeb

File tree

361 files changed

+3688
-2285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+3688
-2285
lines changed

benchmark/es/spread-assign.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Reset this number to 0 on major V8 upgrades.
4040
# Increment by one for each non-official patch applied to deps/v8.
41-
'v8_embedder_string': '-node.17',
41+
'v8_embedder_string': '-node.18',
4242

4343
##### V8 defaults for Node.js #####
4444

configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ def try_check_compiler(cc, lang):
11131113
proc = subprocess.Popen(shlex.split(cc) + ['-E', '-P', '-x', lang, '-'],
11141114
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
11151115
except OSError:
1116-
return (False, False, '', '')
1116+
return (False, False, '', '', False)
11171117

11181118
with proc:
11191119
proc.stdin.write(b'__clang__ __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__ '
@@ -1301,7 +1301,7 @@ def check_compiler(o):
13011301
if not ok:
13021302
warn(f'failed to autodetect C++ compiler version (CXX={CXX})')
13031303
elif (is_apple and clang_version < (17, 0, 0) or not is_apple and clang_version < (19, 1, 0)) if is_clang else gcc_version < (12, 2, 0):
1304-
warn(f'C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0, clang++ 19.1.0, or Apple clang++ 17.0.0')
1304+
warn(f"C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0 or clang++ 19.1.0{' or Apple clang++ 17.0.0' if is_apple else ''}")
13051305

13061306
ok, is_clang, clang_version, gcc_version, is_apple = try_check_compiler(CC, 'c')
13071307
version_str = ".".join(map(str, clang_version if is_clang else gcc_version))

deps/ada/ada.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1+
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
22
/* begin file src/ada.cpp */
33
#include "ada.h"
44
/* begin file src/checkers.cpp */
@@ -9511,12 +9511,14 @@ bool is_label_valid(const std::u32string_view label) {
95119511
for (size_t i = 0; i <= last_non_nsm_char; i++) {
95129512
const direction d = find_direction(label[i]);
95139513

9514+
// NOLINTBEGIN(bugprone-assignment-in-if-condition)
95149515
// In an RTL label, if an EN is present, no AN may be present, and vice
95159516
// versa.
95169517
if ((d == direction::EN && ((has_en = true) && has_an)) ||
95179518
(d == direction::AN && ((has_an = true) && has_en))) {
95189519
return false;
95199520
}
9521+
// NOLINTEND(bugprone-assignment-in-if-condition)
95209522

95219523
if (!(d == direction::R || d == direction::AL || d == direction::AN ||
95229524
d == direction::EN || d == direction::ES || d == direction::CS ||
@@ -10908,6 +10910,7 @@ bool percent_encode(const std::string_view input, const uint8_t character_set[],
1090810910
}
1090910911
ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
1091010912
" bytes");
10913+
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
1091110914
out.append(input.data(), std::distance(input.begin(), pointer));
1091210915
ada_log("percent_encode processing ", std::distance(pointer, input.end()),
1091310916
" bytes");
@@ -10942,6 +10945,7 @@ bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
1094210945
std::string percent_encode(const std::string_view input,
1094310946
const uint8_t character_set[], size_t index) {
1094410947
std::string out;
10948+
// NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
1094510949
out.append(input.data(), index);
1094610950
auto pointer = input.begin() + index;
1094710951
for (; pointer != input.end(); pointer++) {
@@ -12008,6 +12012,7 @@ ada_warn_unused std::string to_string(ada::state state) {
1200812012

1200912013
#include <numeric>
1201012014
#include <algorithm>
12015+
#include <iterator>
1201112016
#include <ranges>
1201212017
#include <string>
1201312018
#include <string_view>
@@ -12570,6 +12575,7 @@ ada_really_inline void url::parse_path(std::string_view input) {
1257012575
if (has_search()) {
1257112576
answer.append(",\n");
1257212577
answer.append("\t\"query\":\"");
12578+
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
1257312579
helpers::encode_json(query.value(), back);
1257412580
answer.append("\"");
1257512581
}
@@ -13316,6 +13322,7 @@ result_type parse_url_impl(std::string_view user_input,
1331613322

1331713323
// If c is U+002F (/), then set state to relative slash state.
1331813324
if ((input_position != input_size) &&
13325+
// NOLINTNEXTLINE(bugprone-branch-clone)
1331913326
(url_data[input_position] == '/')) {
1332013327
ada_log(
1332113328
"RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
@@ -13848,6 +13855,7 @@ template url_aggregator parse_url<url_aggregator>(
1384813855
/* end file src/parser.cpp */
1384913856
/* begin file src/url_components.cpp */
1385013857

13858+
#include <iterator>
1385113859
#include <string>
1385213860

1385313861
namespace ada {
@@ -13897,6 +13905,7 @@ namespace ada {
1389713905
/* end file src/url_components.cpp */
1389813906
/* begin file src/url_aggregator.cpp */
1389913907

13908+
#include <iterator>
1390013909
#include <ranges>
1390113910
#include <string>
1390213911
#include <string_view>

deps/ada/ada.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */
1+
/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
22
/* begin file include/ada.h */
33
/**
44
* @file ada.h
@@ -947,7 +947,7 @@ constexpr uint8_t WWW_FORM_URLENCODED_PERCENT_ENCODE[32] = {
947947
// 50 51 52 53 54 55 56 57
948948
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
949949
// 58 59 5A 5B 5C 5D 5E 5F
950-
0x00 | 0x00 | 0x00 | 0x08 | 0x00 | 0x20 | 0x40 | 0x00,
950+
0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x40 | 0x00,
951951
// 60 61 62 63 64 65 66 67
952952
0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
953953
// 68 69 6A 6B 6C 6D 6E 6F
@@ -6641,6 +6641,7 @@ inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
66416641
out.protocol_end = uint32_t(get_protocol().size());
66426642

66436643
// Trailing index is always the next character of the current one.
6644+
// NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores)
66446645
size_t running_index = out.protocol_end;
66456646

66466647
if (host.has_value()) {
@@ -10514,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
1051410515
#ifndef ADA_ADA_VERSION_H
1051510516
#define ADA_ADA_VERSION_H
1051610517

10517-
#define ADA_VERSION "3.2.6"
10518+
#define ADA_VERSION "3.2.7"
1051810519

1051910520
namespace ada {
1052010521

1052110522
enum {
1052210523
ADA_VERSION_MAJOR = 3,
1052310524
ADA_VERSION_MINOR = 2,
10524-
ADA_VERSION_REVISION = 6,
10525+
ADA_VERSION_REVISION = 7,
1052510526
};
1052610527

1052710528
} // namespace ada

deps/ncrypto/ncrypto.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ EVPKeyPointer EVPKeyPointer::NewRawPrivate(
18971897
EVP_PKEY_new_raw_private_key(id, nullptr, data.data, data.len));
18981898
}
18991899

1900-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
1900+
#if OPENSSL_WITH_PQC
19011901
EVPKeyPointer EVPKeyPointer::NewRawSeed(
19021902
int id, const Buffer<const unsigned char>& data) {
19031903
if (id == 0) return {};
@@ -1968,7 +1968,7 @@ EVP_PKEY* EVPKeyPointer::release() {
19681968
int EVPKeyPointer::id(const EVP_PKEY* key) {
19691969
if (key == nullptr) return 0;
19701970
int type = EVP_PKEY_id(key);
1971-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
1971+
#if OPENSSL_WITH_PQC
19721972
// https://github.com/openssl/openssl/issues/27738#issuecomment-3013215870
19731973
if (type == -1) {
19741974
if (EVP_PKEY_is_a(key, "ML-DSA-44")) return EVP_PKEY_ML_DSA_44;
@@ -2032,7 +2032,7 @@ DataPointer EVPKeyPointer::rawPublicKey() const {
20322032
return {};
20332033
}
20342034

2035-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
2035+
#if OPENSSL_WITH_PQC
20362036
DataPointer EVPKeyPointer::rawSeed() const {
20372037
if (!pkey_) return {};
20382038
switch (id()) {
@@ -2515,7 +2515,7 @@ bool EVPKeyPointer::isOneShotVariant() const {
25152515
switch (type) {
25162516
case EVP_PKEY_ED25519:
25172517
case EVP_PKEY_ED448:
2518-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
2518+
#if OPENSSL_WITH_PQC
25192519
case EVP_PKEY_ML_DSA_44:
25202520
case EVP_PKEY_ML_DSA_65:
25212521
case EVP_PKEY_ML_DSA_87:

deps/ncrypto/ncrypto.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
#include <openssl/fips.h>
2929
#endif // OPENSSL_FIPS
3030

31-
#if OPENSSL_VERSION_MAJOR >= 3
32-
#define OSSL3_CONST const
33-
#if OPENSSL_VERSION_MINOR >= 5
31+
// Define OPENSSL_WITH_PQC for post-quantum cryptography support
32+
#if OPENSSL_VERSION_NUMBER >= 0x30500000L
33+
#define OPENSSL_WITH_PQC 1
3434
#include <openssl/core_names.h>
3535
#endif
36+
37+
#if OPENSSL_VERSION_MAJOR >= 3
38+
#define OSSL3_CONST const
3639
#else
3740
#define OSSL3_CONST
3841
#endif
@@ -820,7 +823,7 @@ class EVPKeyPointer final {
820823
const Buffer<const unsigned char>& data);
821824
static EVPKeyPointer NewRawPrivate(int id,
822825
const Buffer<const unsigned char>& data);
823-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
826+
#if OPENSSL_WITH_PQC
824827
static EVPKeyPointer NewRawSeed(int id,
825828
const Buffer<const unsigned char>& data);
826829
#endif
@@ -917,7 +920,7 @@ class EVPKeyPointer final {
917920
DataPointer rawPrivateKey() const;
918921
BIOPointer derPublicKey() const;
919922

920-
#if OPENSSL_VERSION_MAJOR >= 3 && OPENSSL_VERSION_MINOR >= 5
923+
#if OPENSSL_WITH_PQC
921924
DataPointer rawSeed() const;
922925
#endif
923926

deps/openssl/config/archs/BSD-x86/asm/configdata.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ our %config = (
171171
],
172172
"dynamic_engines" => "0",
173173
"ex_libs" => [],
174-
"full_version" => "3.5.1",
174+
"full_version" => "3.5.2",
175175
"includes" => [],
176176
"lflags" => [],
177177
"lib_defines" => [
@@ -233,7 +233,7 @@ our %config = (
233233
"openssl_sys_defines" => [],
234234
"openssldir" => "",
235235
"options" => "enable-ssl-trace enable-fips no-afalgeng no-asan no-brotli no-brotli-dynamic no-buildtest-c++ no-comp no-crypto-mdebug no-crypto-mdebug-backtrace no-demos no-dynamic-engine no-ec_nistp_64_gcc_128 no-egd no-external-tests no-fips-jitter no-fuzz-afl no-fuzz-libfuzzer no-h3demo no-hqinterop no-jitter no-ktls no-loadereng no-md2 no-msan no-pie no-rc5 no-sctp no-shared no-ssl3 no-ssl3-method no-sslkeylog no-tfo no-trace no-ubsan no-unit-test no-uplink no-weak-ssl-ciphers no-winstore no-zlib no-zlib-dynamic no-zstd no-zstd-dynamic",
236-
"patch" => "1",
236+
"patch" => "2",
237237
"perl_archname" => "x86_64-linux-gnu-thread-multi",
238238
"perl_cmd" => "/usr/bin/perl",
239239
"perl_version" => "5.34.0",
@@ -286,11 +286,11 @@ our %config = (
286286
"prerelease" => "",
287287
"processor" => "",
288288
"rc4_int" => "unsigned int",
289-
"release_date" => "1 Jul 2025",
289+
"release_date" => "5 Aug 2025",
290290
"shlib_version" => "3",
291291
"sourcedir" => ".",
292292
"target" => "BSD-x86",
293-
"version" => "3.5.1"
293+
"version" => "3.5.2"
294294
);
295295
our %target = (
296296
"AR" => "ar",

deps/openssl/config/archs/BSD-x86/asm/crypto/buildinf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
#define PLATFORM "platform: BSD-x86"
14-
#define DATE "built on: Sun Jul 27 00:45:42 2025 UTC"
14+
#define DATE "built on: Tue Aug 5 17:10:12 2025 UTC"
1515

1616
/*
1717
* Generate compiler_flags as an array of individual characters. This is a

deps/openssl/config/archs/BSD-x86/asm/include/openssl/opensslv.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
*/
3030
# define OPENSSL_VERSION_MAJOR 3
3131
# define OPENSSL_VERSION_MINOR 5
32-
# define OPENSSL_VERSION_PATCH 1
32+
# define OPENSSL_VERSION_PATCH 2
3333

3434
/*
3535
* Additional version information
@@ -74,21 +74,21 @@ extern "C" {
7474
* longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
7575
* OPENSSL_VERSION_BUILD_METADATA_STR appended.
7676
*/
77-
# define OPENSSL_VERSION_STR "3.5.1"
78-
# define OPENSSL_FULL_VERSION_STR "3.5.1"
77+
# define OPENSSL_VERSION_STR "3.5.2"
78+
# define OPENSSL_FULL_VERSION_STR "3.5.2"
7979

8080
/*
8181
* SECTION 3: ADDITIONAL METADATA
8282
*
8383
* These strings are defined separately to allow them to be parsable.
8484
*/
85-
# define OPENSSL_RELEASE_DATE "1 Jul 2025"
85+
# define OPENSSL_RELEASE_DATE "5 Aug 2025"
8686

8787
/*
8888
* SECTION 4: BACKWARD COMPATIBILITY
8989
*/
9090

91-
# define OPENSSL_VERSION_TEXT "OpenSSL 3.5.1 1 Jul 2025"
91+
# define OPENSSL_VERSION_TEXT "OpenSSL 3.5.2 5 Aug 2025"
9292

9393
/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
9494
# ifdef OPENSSL_VERSION_PRE_RELEASE

0 commit comments

Comments
 (0)