tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 37af6778fbbb266668965578d72ccddebc46f7f7
parent d5f94f698b17e95895496e53e9f2d4310724abcb
Author: Chris Peterson <cpeterson@mozilla.com>
Date:   Tue,  9 Dec 2025 00:01:29 +0000

Bug 2002864 - Replace MOZ_CONSTINIT with C++20 constinit in js. r=spidermonkey-reviewers,arai

Differential Revision: https://phabricator.services.mozilla.com/D274504

Diffstat:
Mjs/src/shell/js.cpp | 4++--
Mjs/src/vm/SavedStacks.cpp | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp @@ -1704,8 +1704,8 @@ class MOZ_RAII AutoLockTelemetry : public LockGuard<Mutex> { }; using TelemetrySamples = mozilla::Vector<uint32_t, 0, js::SystemAllocPolicy>; -MOZ_CONSTINIT static mozilla::Array<UniquePtr<TelemetrySamples>, - size_t(JSMetric::Count)> +constinit static mozilla::Array<UniquePtr<TelemetrySamples>, + size_t(JSMetric::Count)> recordedTelemetrySamples; static void AccumulateTelemetryDataCallback(JSMetric id, uint32_t sample) { diff --git a/js/src/vm/SavedStacks.cpp b/js/src/vm/SavedStacks.cpp @@ -2019,10 +2019,10 @@ JSObject* SavedStacks::MetadataBuilder::build( const SavedStacks::MetadataBuilder SavedStacks::metadataBuilder; /* static */ -MOZ_CONSTINIT ReconstructedSavedFramePrincipals +constinit ReconstructedSavedFramePrincipals ReconstructedSavedFramePrincipals::IsSystem; /* static */ -MOZ_CONSTINIT ReconstructedSavedFramePrincipals +constinit ReconstructedSavedFramePrincipals ReconstructedSavedFramePrincipals::IsNotSystem; UniqueChars BuildUTF8StackString(JSContext* cx, JSPrincipals* principals,