Skip to content

Commit

Permalink
Make CalendarDateWeekOfYear return undefined
Browse files Browse the repository at this point in the history
...for all calendars without well-defined week calendar system
  • Loading branch information
Aditi-1400 committed Jan 18, 2024
1 parent 1a18bc0 commit c7a384c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions spec/intl.html
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,9 @@ <h1>
Usually the [[Year]] field will contain the same value given by CalendarDateYear, but may contain the previous or next year if the week number in the [[Week]] field overlaps two different years.
See also ToISOWeekOfYear.
</p>
<p>
It returns *undefined* in [[Week]] and [[Year]] field for calendars that do not have a well-defined week calendar system.
</p>
</emu-clause>

<emu-clause id="sec-temporal-calendardatedaysinweek" type="abstract operation">
Expand Down
4 changes: 2 additions & 2 deletions spec/mainadditions.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ <h1>The Year-Week Record Specification Type</h1>
<tbody>
<tr>
<td>[[Week]]</td>
<td>a positive integer</td>
<td>a positive integer or *undefined*</td>
<td>The calendar week of year.</td>
</tr>
<tr>
<td>[[Year]]</td>
<td>an integer</td>
<td>an integer or *undefined*</td>
<td>The week calendar year.</td>
</tr>
</tbody>
Expand Down

0 comments on commit c7a384c

Please sign in to comment.