tc39 / proposal-intl-relative-time

`Intl.RelativeTimeFormat` specification [draft]
http://tc39.github.io/proposal-intl-relative-time/
215 stars 24 forks source link

Accept BigInt in format/formatToParts #106

Closed FrankYFTang closed 5 years ago

FrankYFTang commented 5 years ago

the value in format and formatToParts currently perform a ToNumber(value). With the BigInt support specified in https://github.com/tc39/ecma402/pull/236 , we should also allow the value in Intl.RelativeTimeFormat.prototype.format and Intl.RelativeTimeFormat.prototype.formatToParts to be BigInt. @littledan

littledan commented 5 years ago

I don't think this is necessary, since quantities which exceed Number range are unrealistic with RelativeTimeFormat units.

FrankYFTang commented 5 years ago

ok