Closed Bug 1483548 Opened 6 years ago Closed 6 years ago

Intl.RelativeTimeFormat.format(NaN, "second") should throw RangeError (test262/intl402/RelativeTimeFormat/prototype/format/value-non-finite.js)

Categories

(Core :: JavaScript: Internationalization API, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: jorendorff, Assigned: anba)

Details

Attachments

(1 file)

      No description provided.
Component: JavaScript Engine → JavaScript: Internationalization API
Attached patch bug1483548.patchSplinter Review
Reuses the existing error message from Intl.DateTimeFormat for non-finite inputs for Intl.RelativeTimeFormat.

Drive-by fixes:
Remove no longer needed (explicit) test exclusions from jstests.list.
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #9019810 - Flags: review?(jorendorff)
Attachment #9019810 - Flags: review?(jorendorff) → review+
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd95f65239ed
Throw a RangeError if the input value for Intl.RelativeTimeFormat is not finite. r=jorendorff
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fd95f65239ed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: