Ship Intl.NumberFormat Unified API Proposal

DesignDoc: https://goo.gl/ZAtL1f
Chrome Status: https://www.chromestatus.com/feature/5430420699086848
I2I: http://shorturl.at/sE168
I2S: http://shorturl.at/qsHU9

Bug: v8:8518
Change-Id: Ib9d6ce4782c12745d3d44500991074646254621a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1639698
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62039}
This commit is contained in:
Frank Tang 2019-06-04 13:58:29 -07:00 committed by Commit Bot
parent 6327579e7a
commit 041c009d9b
3 changed files with 13 additions and 7 deletions

View File

@ -222,7 +222,6 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import)
HARMONY_STAGED_BASE(V) \
V(harmony_intl_add_calendar_numbering_system, \
"Add calendar and numberingSystem to DateTimeFormat") \
V(harmony_intl_numberformat_unified, "Unified Intl.NumberFormat Features") \
V(harmony_intl_segmenter, "Intl.Segmenter")
#else
#define HARMONY_STAGED(V) HARMONY_STAGED_BASE(V)
@ -246,7 +245,8 @@ DEFINE_IMPLICATION(harmony_import_meta, harmony_dynamic_import)
HARMONY_SHIPPING_BASE(V) \
V(harmony_intl_bigint, "BigInt.prototype.toLocaleString") \
V(harmony_intl_date_format_range, "DateTimeFormat formatRange") \
V(harmony_intl_datetime_style, "dateStyle timeStyle for DateTimeFormat")
V(harmony_intl_datetime_style, "dateStyle timeStyle for DateTimeFormat") \
V(harmony_intl_numberformat_unified, "Unified Intl.NumberFormat Features")
#else
#define HARMONY_SHIPPING(V) HARMONY_SHIPPING_BASE(V)
#endif

View File

@ -40,6 +40,8 @@
// Update both number-format.js and number-format.cc so they have the same
// list of properties.
// Flags: --noharmony-intl-numberformat-unified
// First get supported properties.
var properties = [];
// Some properties are optional and won't show up in resolvedOptions if

View File

@ -75,10 +75,14 @@
'intl402/DateTimeFormat/prototype/format/format-function-name': [FAIL],
'intl402/Collator/prototype/compare/compare-function-name': [FAIL],
# intl tests which require flags. https://bugs.chromium.org/p/v8/issues/detail?id=9154
# Intl tests which require flags.
# https://bugs.chromium.org/p/v8/issues/detail?id=9154
'intl402/NumberFormat/numbering-system-options': ['--harmony-intl-add-calendar-numbering-system'],
'intl402/DateTimeFormat/numbering-system-calendar-options': ['--harmony-intl-add-calendar-numbering-system'],
# https://bugs.chromium.org/p/v8/issues/detail?id=9319
'intl402/NumberFormat/prototype/resolvedOptions/order': ['--noharmony-intl-numberformat-unified'],
# https://bugs.chromium.org/p/v8/issues/detail?id=9084
'intl402/supportedLocalesOf-consistent-with-resolvedOptions': [FAIL],
'intl402/fallback-locales-are-supported': [FAIL],