Closed Bug 1504334 Opened 2 years ago Closed 2 years ago
.Relative Time Format
Intl.RelativeTimeFormat is already used internally (through MozIntl) and we didn't find any blocking issues which may prevent exposing the new object to normal web users. Support for Intl.RelativeTimeFormat.prototype.formatToParts will land at a later time (bug 1473229).
Updated step numbers in js/src/builtin/intl/RelativeTimeFormat.js and some additional minor changes to reflect the latest proposal updates. The rest of the patch is mostly enabling Intl.RelativeTimeFormat by default and removing the conditional support through |js::AddRelativeTimeFormatConstructor|.
Comment on attachment 9022290 [details] [diff] [review] bug1504334.patch Review of attachment 9022290 [details] [diff] [review]: ----------------------------------------------------------------- hell yeah! Thank you Andrew!
Attachment #9022290 - Flags: review?(gandalf) → review+
Attachment #9022290 - Flags: review?(jwalden+bmo) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/69b08ee5925d Let Intl.RelativeTimeFormat ride the trains. r=jwalden, r=gandalf
Hi Florian, can you help me promote this on MDN? This API got some recent traction because we and V8 exposed it, and I'd love to link people to MDN rather than any other sources ;)
You need to log in before you can comment on or make changes to this bug.