mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00

This adds a fallible factory method to create new NumberFormat instances. This allows us to report initialization errors at time of initialization, rather than when format is called, and remove internal checks in the implementation for successful initialization. The existing fluent code assumes that creating a NumberFormat instance always succeeds. This patch updates that code to handle failures. Differential Revision: https://phabricator.services.mozilla.com/D114593