Intend to ship for Chrome m77 Title: Intent to Ship: Intl.NumberFormat Unified API Proposal
Contact emails [email protected], [email protected] Explainer Stage 3 Proposal in TC39/ECMA402 https://github.com/tc39/proposal-unified-intl-numberformat Spec https://tc39.github.io/proposal-unified-intl-numberformat/section11/numberformat_diff_out.html and https://tc39.github.io/proposal-unified-intl-numberformat/section6/locales-currencies-tz_diff_out.html Design Doc: https://goo.gl/ZAtL1f Why the tag review process is being skipped: JavaScript features do not need to go through a TAG review, as they already get significant scrutiny as part of the TC39 staging process <https://tc39.github.io/process-document/>. Summary Improves Intl.NumberFormat by adding support for measurement units, currency and sign display policies, and scientific and compact notation. Link to “Intent to Implement” blink-dev discussion https://groups.google.com/a/chromium.org/forum/?fromgroups#!searchin/blink-dev/$20ftang%7Csort:date/blink-dev/q3U7sPOG1uo/M7XZU7fxAwAJ Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)? Yes Demo link https://github.com/tc39/proposal-unified-intl-numberformat Debuggability Nothing special. Risks Interoperability and Compatibility This API change the pre-existing Intl.NumberFormat API by adding new options to control the formatted output. It is advanced to TC39 Stage 3 in the end of Oct 2018. Engineer from Firefox team is supporting this proposal . Ergonomics The implementation depend on newer ICU class LocalizedNumberFormatter class, which require us to switch from the old NumberFormat. The switching in cl 1392233 <https://chromium-review.googlesource.com/c/v8/v8/+/1392233> speed up the Intl.NumberFormat constructor x4 in speed. During the prototype phrase we identify a size increase issue of this proposal and work with the ECMA402 committee to reduce the scope of the number of “units” supported in the proposal. Activation Web developers could use the API immediately upon our shipment, based on the usage of previous well supported Intl.NumberFormat object. Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>? Link to test suite results from wpt.fyi. Tests under tc39/test262 includes many tests to test this API. Tests with “features: [Intl.NumberFormat-unified]” under test/intl402/NumberFormat/ <https://github.com/tc39/test262/tree/master/test/intl402/NumberFormat/> Also tests under src/v8/test/intl/number-format/unified/ <https://cs.chromium.org/chromium/src/v8/test/intl/number-format/unified/> Entry on the feature dashboard <http://www.chromestatus.com/> https://www.chromestatus.com/feature/5430420699086848 -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAOcELL-eWi2Q6%3D9S%3DxRo5cgXbSDgHAUym7e-O_TsXgLggS0wJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
