Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
65e8396
deps: update corepack to 0.34.2
nodejs-github-bot Nov 4, 2025
2cd265d
deps: update corepack to 0.34.4
nodejs-github-bot Nov 17, 2025
622f973
deps: update corepack to 0.34.5
nodejs-github-bot Nov 30, 2025
8fdde5d
doc: fix v20 changelog after security release
marco-ippolito Jan 13, 2026
2ea16d3
deps: update corepack to 0.34.6
nodejs-github-bot Jan 28, 2026
cc4f7af
build: skip sscache action on non-main branches
joyeecheung Feb 19, 2026
64beca5
tools: use ubuntu-slim runner in GHA
aduh95 Feb 10, 2026
f260e40
tools: use ubuntu-slim runner in GHA
aduh95 Feb 12, 2026
1abada9
tools: avoid building twice in coverage jobs
aduh95 Feb 22, 2026
6c3ad2a
tools: switch to ARM runners on GHA jobs
aduh95 Feb 22, 2026
6320cd0
test: skip strace test with shared openssl
richardlau Feb 27, 2026
b3d6683
doc: support toolchain with Visual Studio 2019 & 2022 only
MikeMcC399 Jan 20, 2026
04d4393
deps: upgrade openssl sources to openssl-3.0.19
aduh95 Feb 20, 2026
15bd0da
deps: update archs files for openssl
aduh95 Feb 21, 2026
5014f22
tools: add read permission to workflows that read contents
aduh95 May 11, 2025
fa88cc0
crypto: ensure documented RSA-PSS saltLength default is used
panva Nov 12, 2025
80feaca
crypto: update root certificates to NSS 3.117
nodejs-github-bot Nov 18, 2025
5ec7d1e
http2: validate initialWindowSize per HTTP/2 spec
mcollina Jan 19, 2026
91a66e6
build: test on Python 3.14
cclauss Oct 13, 2025
f660560
crypto: update root certificates to NSS 3.119
nodejs-github-bot Jan 20, 2026
6dc2a99
tools: validate release commit diff as part of `lint-release-proposal`
aduh95 Jan 21, 2026
2dc99d2
dns: fix Windows SRV ECONNREFUSED by adjusting c-ares fallback detection
NotVivek12 Feb 3, 2026
5c091d5
meta: persist sccache daemon until end of build workflows
Renegade334 Feb 4, 2026
cd41614
tools: use ubuntu-slim runner in meta GitHub Actions
bnb Feb 6, 2026
6cf9b57
tools: enforce removal of `lts-watch-*` labels on release proposals
aduh95 Feb 6, 2026
dbe9e50
src: fix flags argument offset in JSUdpWrap
cuiweixie Feb 23, 2026
f0ef221
deps: update minimatch to 10.1.1
nodejs-github-bot Nov 17, 2025
0561c62
deps: update minimatch to 10.1.2
nodejs-github-bot Feb 8, 2026
6f580d5
assert: fix deepEqual always return true on URL
meixg Oct 13, 2024
183353a
path,win: fix bug in resolve and normalize
huseyinacacak-janea Nov 5, 2024
ae6231d
deps: update googletest to e235eb3
nodejs-github-bot Feb 4, 2025
bf8919f
deps: update googletest to 0bdccf4
nodejs-github-bot Mar 14, 2025
927d906
deps: update googletest to e9092b1
nodejs-github-bot Jun 7, 2025
8ba759f
deps: update googletest to 35b75a2
nodejs-github-bot Jun 27, 2025
6349a79
deps: update googletest to 7e17b15
nodejs-github-bot Jul 22, 2025
a99ba55
deps: update googletest to 50b8600
nodejs-github-bot Sep 23, 2025
cc849fd
deps: update googletest to 279f847
nodejs-github-bot Oct 14, 2025
aa8bdb6
deps: update cjs-module-lexer to 2.1.1
nodejs-github-bot Nov 15, 2025
0925953
deps: update googletest to 1b96fa13f549387b7549cc89e1a785cf143a1a50
nodejs-github-bot Nov 18, 2025
7fa2ee1
deps: update zlib to 1.3.1-63d7e16
nodejs-github-bot Dec 2, 2025
1594a78
deps: update googletest to 065127f1e4b46c5f14fc73cf8d323c221f9dc68e
nodejs-github-bot Dec 20, 2025
1088140
deps: update timezone to 2025c
nodejs-github-bot Dec 23, 2025
6be15a5
deps: update cjs-module-lexer to 2.2.0
nodejs-github-bot Jan 6, 2026
46043b9
deps: update zlib to 1.3.1-e00f703
nodejs-github-bot Jan 10, 2026
dc5a3cd
deps: update llhttp to 9.3.1
nodejs-github-bot Feb 18, 2026
0707ade
deps: update acorn to 8.16.0
nodejs-github-bot Feb 25, 2026
e79cd3a
deps: update acorn-walk to 8.3.5
nodejs-github-bot Feb 25, 2026
d8a9359
deps: update icu to 78.2
nodejs-github-bot Jan 11, 2026
1a855d4
deps: update googletest to 85087857ad10bd407cd6ed2f52f7ea9752db621f
nodejs-github-bot Jan 20, 2026
4fa43ad
deps: update googletest to 56efe3983185e3f37e43415d1afa97e3860f187f
nodejs-github-bot Feb 3, 2026
4a39869
deps: update googletest to 5a9c3f9e8d9b90bbbe8feb32902146cb8f7c1757
nodejs-github-bot Feb 10, 2026
545bf43
doc: fix typo of file `http.md`, `outgoingMessage.setTimeout` section
samuel871211 May 11, 2025
098c017
doc: punctuation fix for Node-API versioning clarification
jiacai2050 Jun 12, 2025
3715dd1
doc: fix wrong RFC number in http2
deokjinkim Jun 20, 2025
31d0459
http: fix keep-alive not timing out after post-request empty line
islandryu Jun 24, 2025
e9fd10b
doc: fix `fetch` subsections in `globals.md`
aduh95 Jul 4, 2025
45e9971
doc: fix typo in writing-test.md
SeokhunEom Jul 21, 2025
b4d9d00
doc: fix broken sentence in `URL.parse`
SuperchupuDev Jul 24, 2025
ffd0ada
doc: fix typo in `test/common/README.md`
ri7116 Jul 28, 2025
a84b426
doc: fix grammar in global dispatcher usage
Juneezee Aug 6, 2025
2c7b84b
doc: fix typo in http.md
mikicho Nov 4, 2025
0807127
test: mark `test-esm-loader-hooks-inspect-wait` flaky
richardlau Jan 29, 2025
6629987
test: set `test-fs-cp` as flaky
StefanStojanovic Jan 30, 2025
1e5363b
test: mark `test-http2-debug` as flaky on LinuxONE
richardlau May 28, 2025
5630170
test: account for truthy signal in flaky async_hooks tests
RaisinTen May 29, 2025
e134912
test: fix flaky test-worker-message-port-transfer-filehandle test
himself65 Jul 26, 2025
368b221
test: fix flaky test-performance-eventloopdelay
mcollina Feb 5, 2026
de51937
test: mark stringbytes-external-exceed-max tests as flaky on AIX
joyeecheung Nov 5, 2025
4106bfc
test: mark stringbytes-external-max flaky on AIX
sxa Dec 10, 2025
83b9f8e
tools: make nodedownload module compatible with Python 3.14
frenzymadness Jun 22, 2025
5c05326
deps: V8: backport 6a0a25abaed3
dramforever Feb 3, 2026
88b2eec
deps: update minimatch to 10.2.2
nodejs-github-bot Feb 24, 2026
eb53343
2026-03-05, Version 20.20.1 'Iron' (LTS)
marco-ippolito Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: update googletest to e9092b1
PR-URL: #58565
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed Mar 3, 2026
commit 927d90685076f64e34fee762aed3c872f54b0d62
104 changes: 55 additions & 49 deletions deps/googletest/include/gtest/gtest-printers.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,19 @@
#ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_PRINTERS_H_
#define GOOGLETEST_INCLUDE_GTEST_GTEST_PRINTERS_H_

#include <any>
#include <functional>
#include <memory>
#include <optional>
#include <ostream> // NOLINT
#include <sstream>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <variant>
#include <vector>

#ifdef GTEST_HAS_ABSL
Expand Down Expand Up @@ -245,8 +249,8 @@ struct StreamPrinter {
// ADL (possibly involving implicit conversions).
// (Use SFINAE via return type, because it seems GCC < 12 doesn't handle name
// lookup properly when we do it in the template parameter list.)
static auto PrintValue(const T& value,
::std::ostream* os) -> decltype((void)(*os << value)) {
static auto PrintValue(const T& value, ::std::ostream* os)
-> decltype((void)(*os << value)) {
// Call streaming operator found by ADL, possibly with implicit conversions
// of the arguments.
*os << value;
Expand Down Expand Up @@ -521,11 +525,15 @@ GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);

GTEST_API_ void PrintTo(char32_t c, ::std::ostream* os);
inline void PrintTo(char16_t c, ::std::ostream* os) {
PrintTo(ImplicitCast_<char32_t>(c), os);
// TODO(b/418738869): Incorrect for values not representing valid codepoints.
// Also see https://github.com/google/googletest/issues/4762.
PrintTo(static_cast<char32_t>(c), os);
}
#ifdef __cpp_lib_char8_t
inline void PrintTo(char8_t c, ::std::ostream* os) {
PrintTo(ImplicitCast_<char32_t>(c), os);
// TODO(b/418738869): Incorrect for values not representing valid codepoints.
// Also see https://github.com/google/googletest/issues/4762.
PrintTo(static_cast<char32_t>(c), os);
}
#endif

Expand Down Expand Up @@ -695,44 +703,63 @@ void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) {
}
}

// Overloads for ::std::string.
GTEST_API_ void PrintStringTo(const ::std::string& s, ::std::ostream* os);
// Overloads for ::std::string and ::std::string_view
GTEST_API_ void PrintStringTo(::std::string_view s, ::std::ostream* os);
inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
PrintStringTo(s, os);
}
inline void PrintTo(::std::string_view s, ::std::ostream* os) {
PrintStringTo(s, os);
}

// Overloads for ::std::u8string
// Overloads for ::std::u8string and ::std::u8string_view
#ifdef __cpp_lib_char8_t
GTEST_API_ void PrintU8StringTo(const ::std::u8string& s, ::std::ostream* os);
GTEST_API_ void PrintU8StringTo(::std::u8string_view s, ::std::ostream* os);
inline void PrintTo(const ::std::u8string& s, ::std::ostream* os) {
PrintU8StringTo(s, os);
}
inline void PrintTo(::std::u8string_view s, ::std::ostream* os) {
PrintU8StringTo(s, os);
}
#endif

// Overloads for ::std::u16string
GTEST_API_ void PrintU16StringTo(const ::std::u16string& s, ::std::ostream* os);
// Overloads for ::std::u16string and ::std::u16string_view
GTEST_API_ void PrintU16StringTo(::std::u16string_view s, ::std::ostream* os);
inline void PrintTo(const ::std::u16string& s, ::std::ostream* os) {
PrintU16StringTo(s, os);
}
inline void PrintTo(::std::u16string_view s, ::std::ostream* os) {
PrintU16StringTo(s, os);
}

// Overloads for ::std::u32string
GTEST_API_ void PrintU32StringTo(const ::std::u32string& s, ::std::ostream* os);
// Overloads for ::std::u32string and ::std::u32string_view
GTEST_API_ void PrintU32StringTo(::std::u32string_view s, ::std::ostream* os);
inline void PrintTo(const ::std::u32string& s, ::std::ostream* os) {
PrintU32StringTo(s, os);
}
inline void PrintTo(::std::u32string_view s, ::std::ostream* os) {
PrintU32StringTo(s, os);
}

// Overloads for ::std::wstring.
// Overloads for ::std::wstring and ::std::wstring_view
#if GTEST_HAS_STD_WSTRING
GTEST_API_ void PrintWideStringTo(const ::std::wstring& s, ::std::ostream* os);
GTEST_API_ void PrintWideStringTo(::std::wstring_view s, ::std::ostream* os);
inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
PrintWideStringTo(s, os);
}
inline void PrintTo(::std::wstring_view s, ::std::ostream* os) {
PrintWideStringTo(s, os);
}
#endif // GTEST_HAS_STD_WSTRING

#if GTEST_INTERNAL_HAS_STRING_VIEW
// Overload for internal::StringView.
// Overload for internal::StringView. Needed for build configurations where
// internal::StringView is an alias for absl::string_view, but absl::string_view
// is a distinct type from std::string_view.
template <int&... ExplicitArgumentBarrier, typename T = internal::StringView,
std::enable_if_t<!std::is_same_v<T, ::std::string_view>, int> = 0>
inline void PrintTo(internal::StringView sp, ::std::ostream* os) {
PrintTo(::std::string(sp), os);
PrintStringTo(sp, os);
}
#endif // GTEST_INTERNAL_HAS_STRING_VIEW

Expand Down Expand Up @@ -890,14 +917,11 @@ class UniversalPrinter {
template <typename T>
class UniversalPrinter<const T> : public UniversalPrinter<T> {};

#if GTEST_INTERNAL_HAS_ANY

// Printer for std::any / absl::any

// Printer for std::any
template <>
class UniversalPrinter<Any> {
class UniversalPrinter<std::any> {
public:
static void Print(const Any& value, ::std::ostream* os) {
static void Print(const std::any& value, ::std::ostream* os) {
if (value.has_value()) {
*os << "value of type " << GetTypeName(value);
} else {
Expand All @@ -906,7 +930,7 @@ class UniversalPrinter<Any> {
}

private:
static std::string GetTypeName(const Any& value) {
static std::string GetTypeName(const std::any& value) {
#if GTEST_HAS_RTTI
return internal::GetTypeName(value.type());
#else
Expand All @@ -916,16 +940,11 @@ class UniversalPrinter<Any> {
}
};

#endif // GTEST_INTERNAL_HAS_ANY

#if GTEST_INTERNAL_HAS_OPTIONAL

// Printer for std::optional / absl::optional

// Printer for std::optional
template <typename T>
class UniversalPrinter<Optional<T>> {
class UniversalPrinter<std::optional<T>> {
public:
static void Print(const Optional<T>& value, ::std::ostream* os) {
static void Print(const std::optional<T>& value, ::std::ostream* os) {
*os << '(';
if (!value) {
*os << "nullopt";
Expand All @@ -937,29 +956,18 @@ class UniversalPrinter<Optional<T>> {
};

template <>
class UniversalPrinter<decltype(Nullopt())> {
class UniversalPrinter<std::nullopt_t> {
public:
static void Print(decltype(Nullopt()), ::std::ostream* os) {
*os << "(nullopt)";
}
static void Print(std::nullopt_t, ::std::ostream* os) { *os << "(nullopt)"; }
};

#endif // GTEST_INTERNAL_HAS_OPTIONAL

#if GTEST_INTERNAL_HAS_VARIANT

// Printer for std::variant / absl::variant

// Printer for std::variant
template <typename... T>
class UniversalPrinter<Variant<T...>> {
class UniversalPrinter<std::variant<T...>> {
public:
static void Print(const Variant<T...>& value, ::std::ostream* os) {
static void Print(const std::variant<T...>& value, ::std::ostream* os) {
*os << '(';
#ifdef GTEST_HAS_ABSL
absl::visit(Visitor{os, value.index()}, value);
#else
std::visit(Visitor{os, value.index()}, value);
#endif // GTEST_HAS_ABSL
*os << ')';
}

Expand All @@ -976,8 +984,6 @@ class UniversalPrinter<Variant<T...>> {
};
};

#endif // GTEST_INTERNAL_HAS_VARIANT

// UniversalPrintArray(begin, len, os) prints an array of 'len'
// elements, starting at address 'begin'.
template <typename T>
Expand Down
2 changes: 1 addition & 1 deletion deps/googletest/include/gtest/gtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ class WithParamInterface {

// The current parameter value. Is also available in the test fixture's
// constructor.
static const ParamType& GetParam() {
[[nodiscard]] static const ParamType& GetParam() {
GTEST_CHECK_(parameter_ != nullptr)
<< "GetParam() can only be called inside a value-parameterized test "
<< "-- did you intend to write TEST_P instead of TEST_F?";
Expand Down
36 changes: 14 additions & 22 deletions deps/googletest/include/gtest/internal/gtest-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,17 @@ class FloatingPoint {
// around may change its bits, although the new value is guaranteed
// to be also a NAN. Therefore, don't expect this constructor to
// preserve the bits in x when x is a NAN.
explicit FloatingPoint(const RawType& x) { u_.value_ = x; }
explicit FloatingPoint(RawType x) { memcpy(&bits_, &x, sizeof(x)); }

// Static methods

// Reinterprets a bit pattern as a floating-point number.
//
// This function is needed to test the AlmostEquals() method.
static RawType ReinterpretBits(const Bits bits) {
FloatingPoint fp(0);
fp.u_.bits_ = bits;
return fp.u_.value_;
static RawType ReinterpretBits(Bits bits) {
RawType fp;
memcpy(&fp, &bits, sizeof(fp));
return fp;
}

// Returns the floating-point number that represent positive infinity.
Expand All @@ -309,16 +309,16 @@ class FloatingPoint {
// Non-static methods

// Returns the bits that represents this number.
const Bits& bits() const { return u_.bits_; }
const Bits& bits() const { return bits_; }

// Returns the exponent bits of this number.
Bits exponent_bits() const { return kExponentBitMask & u_.bits_; }
Bits exponent_bits() const { return kExponentBitMask & bits_; }

// Returns the fraction bits of this number.
Bits fraction_bits() const { return kFractionBitMask & u_.bits_; }
Bits fraction_bits() const { return kFractionBitMask & bits_; }

// Returns the sign bit of this number.
Bits sign_bit() const { return kSignBitMask & u_.bits_; }
Bits sign_bit() const { return kSignBitMask & bits_; }

// Returns true if and only if this is NAN (not a number).
bool is_nan() const {
Expand All @@ -332,23 +332,16 @@ class FloatingPoint {
//
// - returns false if either number is (or both are) NAN.
// - treats really large numbers as almost equal to infinity.
// - thinks +0.0 and -0.0 are 0 DLP's apart.
// - thinks +0.0 and -0.0 are 0 ULP's apart.
bool AlmostEquals(const FloatingPoint& rhs) const {
// The IEEE standard says that any comparison operation involving
// a NAN must return false.
if (is_nan() || rhs.is_nan()) return false;

return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) <=
kMaxUlps;
return DistanceBetweenSignAndMagnitudeNumbers(bits_, rhs.bits_) <= kMaxUlps;
}

private:
// The data type used to store the actual floating-point number.
union FloatingPointUnion {
RawType value_; // The raw floating-point number.
Bits bits_; // The bits that represent the number.
};

// Converts an integer from the sign-and-magnitude representation to
// the biased representation. More precisely, let N be 2 to the
// power of (kBitCount - 1), an integer x is represented by the
Expand All @@ -364,7 +357,7 @@ class FloatingPoint {
//
// Read https://en.wikipedia.org/wiki/Signed_number_representations
// for more details on signed number representations.
static Bits SignAndMagnitudeToBiased(const Bits& sam) {
static Bits SignAndMagnitudeToBiased(Bits sam) {
if (kSignBitMask & sam) {
// sam represents a negative number.
return ~sam + 1;
Expand All @@ -376,14 +369,13 @@ class FloatingPoint {

// Given two numbers in the sign-and-magnitude representation,
// returns the distance between them as an unsigned number.
static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits& sam1,
const Bits& sam2) {
static Bits DistanceBetweenSignAndMagnitudeNumbers(Bits sam1, Bits sam2) {
const Bits biased1 = SignAndMagnitudeToBiased(sam1);
const Bits biased2 = SignAndMagnitudeToBiased(sam2);
return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1);
}

FloatingPointUnion u_;
Bits bits_; // The bits that represent the number.
};

// Typedefs the instances of the FloatingPoint template class that we
Expand Down
Loading