[Intl] Ship calendar and numberingSystem options
Ship the "calendar" and "numberingSystem" options for Intl.DateTimeFormat (both options) and Intl.NumberFormat (only the later one) and support other calendar. Also consider the calendar while choosing calendar pattern. I2L: http://shorturl.at/bgkAH I2S: http://shorturl.at/nuKUV Flags: --harmony-intl-add-calendar-numbering-system --harmony-intl-other-calendars API owner approvals: chrishtr@ yoav@yoav.ws bratell.d@gmail.com Plan to land into m80 tree and only merge after 10/17 m79 branch off. Bug: v8:9154, v8:9155, v8:9320 Change-Id: Ifa209919a40db60465f99405f3620a3b73b10204 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1838436 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Frank Tang <ftang@chromium.org> Cr-Commit-Position: refs/heads/master@{#64437}
This commit is contained in:
parent
787cd95fef
commit
5d57f4e143
@ -224,13 +224,10 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import)
|
||||
#ifdef V8_INTL_SUPPORT
|
||||
#define HARMONY_STAGED(V) \
|
||||
HARMONY_STAGED_BASE(V) \
|
||||
V(harmony_intl_add_calendar_numbering_system, \
|
||||
"Add calendar and numberingSystem to DateTimeFormat") \
|
||||
V(harmony_intl_dateformat_day_period, \
|
||||
"Add dayPeriod option to DateTimeFormat") \
|
||||
V(harmony_intl_dateformat_fractional_second_digits, \
|
||||
"Add fractionalSecondDigits option to DateTimeFormat") \
|
||||
V(harmony_intl_other_calendars, "DateTimeFormat other calendars") \
|
||||
V(harmony_intl_segmenter, "Intl.Segmenter")
|
||||
#else
|
||||
#define HARMONY_STAGED(V) HARMONY_STAGED_BASE(V)
|
||||
@ -246,7 +243,11 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import)
|
||||
V(harmony_promise_all_settled, "harmony Promise.allSettled")
|
||||
|
||||
#ifdef V8_INTL_SUPPORT
|
||||
#define HARMONY_SHIPPING(V) HARMONY_SHIPPING_BASE(V)
|
||||
#define HARMONY_SHIPPING(V) \
|
||||
HARMONY_SHIPPING_BASE(V) \
|
||||
V(harmony_intl_add_calendar_numbering_system, \
|
||||
"Add calendar and numberingSystem to DateTimeFormat") \
|
||||
V(harmony_intl_other_calendars, "DateTimeFormat other calendars")
|
||||
#else
|
||||
#define HARMONY_SHIPPING(V) HARMONY_SHIPPING_BASE(V)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user