Intent to Ship: Add fractionalSecondDigits option to Intl.DateTimeFormat

6 views
Skip to first unread message

Frank Tang

unread,
Mar 13, 2020, 3:50:38 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:14 PM3/18/20
to Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
ping

Daniel Bratell

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

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.

Mounir Lamouri

unread,
Mar 18, 2020, 3:32:11 PM3/18/20
to Daniel Bratell, Frank Tang, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
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

Frank Tang

unread,
Mar 18, 2020, 5:59:34 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 

Mounir Lamouri

unread,
Mar 18, 2020, 6:06:01 PM3/18/20
to Frank Tang, Daniel Bratell, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo
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

Frank Tang

unread,
Mar 24, 2020, 1:42:49 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

Daniel Bratell

unread,
Mar 24, 2020, 10:02:46 AM3/24/20
to Frank Tang, Mounir Lamouri, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo

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

Chris Harrelson

unread,
Mar 24, 2020, 11:12:29 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

Mike West

unread,
Mar 24, 2020, 1:01:40 PM3/24/20
to Chris Harrelson, Daniel Bratell, Frank Tang, Mounir Lamouri, Frank Yung-Fong Tang, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Adam Klein, Shu-yu Guo

Adam Klein

unread,
Mar 24, 2020, 1:36:46 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.

Frank Tang (譚永鋒)

unread,
Mar 24, 2020, 1:47:07 PM3/24/20
to Adam Klein, Mike West, Chris Harrelson, Daniel Bratell, Mounir Lamouri, Mathias Bynens, blink-dev, v8-...@googlegroups.com, v8-users, Shu-yu Guo
got it
--
Frank Yung-Fong Tang
譚永鋒 / 🌭🍊 
Sr. Software Engineer 
Reply all
Reply to author
Forward
0 new messages