tor-browser

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

commit e70a5de082af4b3eb6bc386377ce43ab783f7953
parent ad77c5799e395eef6742125bbdb7d52db59a6cee
Author: AndrΓ© Bargull <andre.bargull@gmail.com>
Date:   Tue, 25 Nov 2025 15:19:38 +0000

Bug 2000225 - Part 10: Update numbering and measurement units. r=spidermonkey-reviewers,dminor

Add new numbering systems from CLDR 47.

Updated by running `./make_intl_data.py numbering` and `./make_intl_data.py units`.

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

Diffstat:
Mjs/src/builtin/intl/NumberingSystems.yaml | 1+
Mjs/src/builtin/intl/NumberingSystemsGenerated.h | 1+
Mjs/src/tests/non262/Intl/NumberFormat/unit-well-formed.js | 50+++++++++++++++++++++++++++++++++++++++++++++++---
Mjs/src/tests/non262/Intl/shell.js | 6+++++-
4 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/js/src/builtin/intl/NumberingSystems.yaml b/js/src/builtin/intl/NumberingSystems.yaml @@ -85,6 +85,7 @@ - tibt - tirh - tnsa +- tols - vaii - wara - wcho diff --git a/js/src/builtin/intl/NumberingSystemsGenerated.h b/js/src/builtin/intl/NumberingSystemsGenerated.h @@ -83,6 +83,7 @@ "tibt", \ "tirh", \ "tnsa", \ + "tols", \ "vaii", \ "wara", \ "wcho" diff --git a/js/src/tests/non262/Intl/NumberFormat/unit-well-formed.js b/js/src/tests/non262/Intl/NumberFormat/unit-well-formed.js @@ -58,9 +58,13 @@ const allUnits = [ "angle-degree", "angle-radian", "angle-revolution", + "angle-steradian", "area-acre", + "area-bu-jp", + "area-cho", "area-dunam", "area-hectare", + "area-se-jp", "area-square-centimeter", "area-square-foot", "area-square-inch", @@ -70,14 +74,17 @@ const allUnits = [ "area-square-yard", "concentr-item", "concentr-karat", + "concentr-katal", "concentr-milligram-ofglucose-per-deciliter", "concentr-millimole-per-liter", "concentr-mole", + "concentr-ofglucose", + "concentr-part", + "concentr-part-per-1e6", + "concentr-part-per-1e9", "concentr-percent", "concentr-permille", - "concentr-permillion", "concentr-permyriad", - "concentr-portion-per-1e9", "consumption-liter-per-100-kilometer", "consumption-liter-per-kilometer", "consumption-mile-per-gallon", @@ -97,6 +104,7 @@ const allUnits = [ "duration-day", "duration-day-person", "duration-decade", + "duration-fortnight", "duration-hour", "duration-microsecond", "duration-millisecond", @@ -112,18 +120,28 @@ const allUnits = [ "duration-year", "duration-year-person", "electric-ampere", + "electric-coulomb", + "electric-farad", + "electric-henry", "electric-milliampere", "electric-ohm", + "electric-siemens", "electric-volt", + "energy-becquerel", "energy-british-thermal-unit", + "energy-british-thermal-unit-it", "energy-calorie", + "energy-calorie-it", "energy-electronvolt", "energy-foodcalorie", + "energy-gray", "energy-joule", "energy-kilocalorie", "energy-kilojoule", "energy-kilowatt-hour", + "energy-sievert", "energy-therm-us", + "force-kilogram-force", "force-kilowatt-hour-per-100-kilometer", "force-newton", "force-pound-force", @@ -141,12 +159,15 @@ const allUnits = [ "graphics-pixel-per-inch", "length-astronomical-unit", "length-centimeter", + "length-chain", "length-decimeter", "length-earth-radius", "length-fathom", "length-foot", "length-furlong", "length-inch", + "length-jo-jp", + "length-ken", "length-kilometer", "length-light-year", "length-meter", @@ -159,15 +180,24 @@ const allUnits = [ "length-parsec", "length-picometer", "length-point", + "length-ri-jp", + "length-rin", + "length-rod", + "length-shaku-cloth", + "length-shaku-length", "length-solar-radius", + "length-sun", "length-yard", "light-candela", "light-lumen", "light-lux", "light-solar-luminosity", + "magnetic-tesla", + "magnetic-weber", "mass-carat", "mass-dalton", "mass-earth-mass", + "mass-fun", "mass-grain", "mass-gram", "mass-kilogram", @@ -176,6 +206,7 @@ const allUnits = [ "mass-ounce", "mass-ounce-troy", "mass-pound", + "mass-slug", "mass-solar-mass", "mass-stone", "mass-ton", @@ -188,12 +219,14 @@ const allUnits = [ "power-watt", "pressure-atmosphere", "pressure-bar", + "pressure-gasoline-energy-density", "pressure-hectopascal", "pressure-inch-ofhg", "pressure-kilopascal", "pressure-megapascal", "pressure-millibar", "pressure-millimeter-ofhg", + "pressure-ofhg", "pressure-pascal", "pressure-pound-force-per-square-inch", "speed-beaufort", @@ -206,6 +239,7 @@ const allUnits = [ "temperature-fahrenheit", "temperature-generic", "temperature-kelvin", + "temperature-rankine", "torque-newton-meter", "torque-pound-force-foot", "volume-acre-foot", @@ -220,6 +254,8 @@ const allUnits = [ "volume-cubic-mile", "volume-cubic-yard", "volume-cup", + "volume-cup-imperial", + "volume-cup-jp", "volume-cup-metric", "volume-deciliter", "volume-dessert-spoon", @@ -228,20 +264,28 @@ const allUnits = [ "volume-drop", "volume-fluid-ounce", "volume-fluid-ounce-imperial", + "volume-fluid-ounce-metric", "volume-gallon", "volume-gallon-imperial", "volume-hectoliter", "volume-jigger", + "volume-koku", + "volume-kosaji", "volume-liter", "volume-megaliter", "volume-milliliter", + "volume-osaji", "volume-pinch", "volume-pint", + "volume-pint-imperial", "volume-pint-metric", "volume-quart", "volume-quart-imperial", + "volume-sai", + "volume-shaku", "volume-tablespoon", - "volume-teaspoon" + "volume-teaspoon", + "volume-to-jp" ]; // Test only sanctioned unit identifiers are allowed. diff --git a/js/src/tests/non262/Intl/shell.js b/js/src/tests/non262/Intl/shell.js @@ -1,6 +1,6 @@ // Generated by make_intl_data.py. DO NOT EDIT. -// source: CLDR file common/bcp47/number.xml; version CLDR 47. +// source: CLDR file common/bcp47/number.xml; version CLDR 48. // https://github.com/unicode-org/cldr/blob/master/common/bcp47/number.xml // https://github.com/unicode-org/cldr/blob/master/common/supplemental/numberingSystems.xml const numberingSystems = { @@ -357,6 +357,10 @@ const numberingSystems = { "algorithmic": false, "digits": "π–«€π–«π–«‚π–«ƒπ–«„π–«…π–«†π–«‡π–«ˆπ–«‰" }, + "tols": { + "algorithmic": false, + "digits": "π‘· π‘·‘π‘·’π‘·£π‘·€π‘·₯π‘·¦π‘·§π‘·¨π‘·©" + }, "vaii": { "algorithmic": false, "digits": "꘠ꘑꘒ꘣ꘀκ˜₯꘦꘧꘨꘩"