archives

« Bugzilla Issues Index

#4283 — 13.3.1 Date.prototype.toLocaleString: Missing ReturnIfAbrupt; Unnecessary steps


13.3.1 Date.prototype.toLocaleString ([locales [, options ]])

Missing ReturnIfAbrupt after `thisTimeValue` in step 1.

"then" in step 2 should be elided:
> 2. If x is NaN, return "Invalid Date".

Missing ReturnIfAbrupt after ToDateTimeOptions in step 3.

Steps 6-8 can be merged:
> 6. Return FormatDateTime(dateFormat, x).


> Missing ReturnIfAbrupt after `thisTimeValue` in step 1.

Fixed.

> "then" in step 2 should be elided:
> 2. If x is NaN, return "Invalid Date".

Fixed.

> Missing ReturnIfAbrupt after ToDateTimeOptions in step 3.

Fixed.

Steps 6-8 can be merged:
> 6. Return FormatDateTime(dateFormat, x).

Fixed.