Intent to Ship: Add fractionalSecondDigits option to Intl.DateTimeFormat

14 views
Skip to first unread message

Frank Tang

unread,
Mar 13, 2020, 3:50:41 PM3/13/20
to Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
ft...@chromium.org,js...@chromium.org http://shorturl.at/adiZ4 https://github.com/tc39/ecma402/pull/347 No TAG review since the TC39 and ECMA402 will cover that. Enhance the Intl.DateTimeFormat API by adding a “ fractionalSecondDigits” option to control the format of fractions of a second. https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/Intent$20to$20Implement$3A$20Add$20millisecondDigits$20option$20to$20Intl.DateTimeFormat%7Csort:date/blink-dev/WXd9nh03a1M/z7QeIMgrBgAJ
low. Firefox: Public support (https://bugzilla.mozilla.org/show_bug.cgi?id=1568134) Edge: No public signals Safari: No public signals Web developers: No signals Part of the pre-existing ICU functionality w/o need of additional data. Should be easy to use by using w/ pre-existing Intl.DateTimeFormat low
nothing special. Yes Yes Tests are added to test262 ./test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-invalid.js ./test/intl402/DateTimeFormat/constructor-options-throwing-getters-fractionalSecondDigits.js ./test/intl402/DateTimeFormat/taint-Object-prototype-fractionalSecondDigits.js ./test/intl402/DateTimeFormat/constructor-options-order-fractionalSecondDigits.js ./test/intl402/DateTimeFormat/constructor-options-fractionalSecondDigits-valid.js ./test/intl402/DateTimeFormat/prototype/formatRangeToParts/fractionalSecondDigits.js ./test/intl402/DateTimeFormat/prototype/resolvedOptions/order-fractionalSecondDigits.js ./test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js ./test/intl402/DateTimeFormat/prototype/formatRange/fractionalSecondDigits.js ./test/intl402/DateTimeFormat/prototype/formatToParts/fractionalSecondDigits.js https://bugs.chromium.org/p/v8/issues/detail?id=9284 http://shorturl.at/adiZ4 https://www.chromestatus.com/feature/5704965743968256
This intent message was generated by Chrome Platform Status.

Frank Tang

unread,
Mar 18, 2020, 12:55:16 PM3/18/20
to Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
ping

Frank Tang

unread,
Mar 18, 2020, 5:59:36 PM3/18/20
to Mounir Lamouri, Daniel Bratell, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
It start from a user request and I put together this PR. Mozilla folks identified some bugs in the ICU library and we just fixed them and make it available recently. The PR is not merged because ECMA 402 will only merge this PR if one of the engine shipt it and since I draft the PR it will depend on this launch to unblock the merge. 

It was pending on the fix of the following 3 ICU bugs and they are now all fixed. 

These fix also make our v8 implementation pass some failed test in 

On Wed, Mar 18, 2020 at 12:32 PM Mounir Lamouri <mlam...@google.com> wrote:
Mozilla seems to have this implemented but Nightly only so I think it would be reasonable to have their position updated from "Public Support" to "In Development". FWIW, it seems that Mozilla is keeping this in Nightly because the spec wasn't stable but it was a while ago.

I also think it would be reasonable to consider Web Developers to be positive as this came from a user request that was initially on Stack Overflow and the same person said that solved their use case.

-- Mounir

On Wed, 18 Mar 2020 at 11:56, Daniel Bratell <brat...@gmail.com> wrote:

What is the current state of the spec change? It looks like the PR is still open and not much has happened since last autumn. Preferably there should be an agreed upon spec before something is changes, or at the very least, the spec change and the shipping should happen close to each other.

/Daniel

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOcELL9W04fz2fEv52cv70LYKJtTm2JavowkCMEjEX6ma%3DaWaA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/23063938-a289-cbac-a715-c994392c47ba%40gmail.com.

Frank Tang

unread,
Mar 24, 2020, 1:42:53 AM3/24/20
to Mounir Lamouri, Daniel Bratell, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
ping

On Wed, Mar 18, 2020 at 3:05 PM Mounir Lamouri <mlam...@google.com> wrote:
non-owner LGTM based on the above. 2 out of the 3 ICU bugs were pointed by Mozilla in their bug tracker as a reason to not launch yet.

-- Mounir

Chris Harrelson

unread,
Mar 24, 2020, 11:12:32 AM3/24/20
to Daniel Bratell, Frank Tang, Mounir Lamouri, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
LGTM2

On Tue, Mar 24, 2020 at 7:02 AM Daniel Bratell <brat...@gmail.com> wrote:

Seems the automatic script failed to pick up this intent so it never ended up on the todo list for our weekly meetings. Sorry about that.

Anyway, looking good. In stage3 if I understand things corrrectly which means that it has standards support, and with Mozilla's implementation there should be no major compatibility problems.

LGTM1

/Daniel

Adam Klein

unread,
Mar 24, 2020, 1:36:47 PM3/24/20
to Mike West, Chris Harrelson, Daniel Bratell, Frank Tang, Mounir Lamouri, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Shu-yu Guo
Thanks to the API owners for LGTMs. Due to the Chrome release pause, though, I'd suggest that Frank work with Shu on the right next steps here in V8; it's likely not appropriate to flip this flag until releases are unpaused.

On Tue, Mar 24, 2020 at 10:01 AM Mike West <mk...@chromium.org> wrote:
LGTM3.

-mike


Reply all
Reply to author
Forward
0 new messages