Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 2a01d95

Browse files
committed
Bug 1577275 - Make |simpleMeasureUnits| |static constexpr| to make some C++17-anticipating constexpr code work. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D43821 --HG-- extra : moz-landing-system : lando
1 parent 12e0243 commit 2a01d95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/src/builtin/intl/NumberFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ struct MeasureUnit {
379379
*
380380
* The list must be kept in alphabetical order of the |subtype|.
381381
*/
382-
const MeasureUnit simpleMeasureUnits[] = {
382+
static constexpr MeasureUnit simpleMeasureUnits[] = {
383383
// clang-format off
384384
{"area", "acre"},
385385
{"digital", "bit"},

0 commit comments

Comments
 (0)