Commit fbbf85b6 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] Update NumberFormat setting changes RelativeTimeFormat

Reflect spec change in https://github.com/tc39/proposal-intl-relative-time/pull/81

Bug: v8:7992
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ic2153f8355b8380d2986b34d46eb6bb6771d4b59
Reviewed-on: https://chromium-review.googlesource.com/1154236Reviewed-by: 's avatarDaniel Ehrenberg <littledan@chromium.org>
Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54793}
parent 2a624852
......@@ -141,14 +141,6 @@ JSRelativeTimeFormat::InitializeRelativeTimeFormat(
}
CHECK_NOT_NULL(number_format);
// 23. Perform ! CreateDataPropertyOrThrow(nfOptions, "useGrouping", false).
number_format->setGroupingUsed(false);
// 24. Perform ! CreateDataPropertyOrThrow(nfOptions,
// "minimumIntegerDigits", 2).
// Ref: https://github.com/tc39/proposal-intl-relative-time/issues/80
number_format->setMinimumIntegerDigits(2);
// Change UDISPCTX_CAPITALIZATION_NONE to other values if
// ECMA402 later include option to change capitalization.
// Ref: https://github.com/tc39/proposal-intl-relative-time/issues/11
......
This diff is collapsed.
......@@ -61,7 +61,7 @@ parts = longAlways.formatToParts(-0, "day");
assertEquals(2, parts.length);
assertEquals(3, Object.getOwnPropertyNames(parts[0]).length);
assertEquals('integer', parts[0].type);
assertEquals('00', parts[0].value);
assertEquals('0', parts[0].value);
assertEquals('day', parts[0].unit);
assertEquals(2, Object.getOwnPropertyNames(parts[1]).length);
assertEquals('literal', parts[1].type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment