Skip to content

Commit c8f14d0

Browse files
Ms2gerptomato
authored andcommitted
Editorial: Use consistent wording for Records.
1 parent c3880a3 commit c8f14d0

10 files changed

+66
-66
lines changed

spec/abstractops.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -278,63 +278,63 @@ <h1>ToSecondsStringPrecision ( _normalizedOptions_ )</h1>
278278
<emu-alg>
279279
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_normalizedOptions_, « *"year"*, *"month"*, *"week"*, *"day"*, *"hour"* », *undefined*).
280280
1. If _smallestUnit_ is *"minute"*, then
281-
1. Return the new Record {
281+
1. Return the Record {
282282
[[Precision]]: *"minute"*,
283283
[[Unit]]: *"minute"*,
284284
[[Increment]]: 1
285285
}.
286286
1. If _smallestUnit_ is *"second"*, then
287-
1. Return the new Record {
287+
1. Return the Record {
288288
[[Precision]]: 0,
289289
[[Unit]]: *"second"*,
290290
[[Increment]]: 1
291291
}.
292292
1. If _smallestUnit_ is *"millisecond"*, then
293-
1. Return the new Record {
293+
1. Return the Record {
294294
[[Precision]]: 3,
295295
[[Unit]]: *"millisecond"*,
296296
[[Increment]]: 1
297297
}.
298298
1. If _smallestUnit_ is *"microsecond"*, then
299-
1. Return the new Record {
299+
1. Return the Record {
300300
[[Precision]]: 6,
301301
[[Unit]]: *"microsecond"*,
302302
[[Increment]]: 1
303303
}.
304304
1. If _smallestUnit_ is *"nanosecond"*, then
305-
1. Return the new Record {
305+
1. Return the Record {
306306
[[Precision]]: 9,
307307
[[Unit]]: *"nanosecond"*,
308308
[[Increment]]: 1
309309
}.
310310
1. Assert: _smallestUnit_ is *undefined*.
311311
1. Let _digits_ be ? GetStringOrNumberOption(_normalizedOptions_, *"fractionalSecondDigits"*, « *"auto"* », 0, 9, *"auto"*).
312312
1. If _digits_ is *"auto"*, then
313-
1. Return the new Record {
313+
1. Return the Record {
314314
[[Precision]]: *"auto"*,
315315
[[Unit]]: *"nanosecond"*,
316316
[[Increment]]: 1
317317
}.
318318
1. If _digits_ is 0, then
319-
1. Return the new Record {
319+
1. Return the Record {
320320
[[Precision]]: 0,
321321
[[Unit]]: *"second"*,
322322
[[Increment]]: 1
323323
}.
324324
1. If _digits_ is 1, 2, or 3, then
325-
1. Return the new Record {
325+
1. Return the Record {
326326
[[Precision]]: _digits_,
327327
[[Unit]]: *"millisecond"*,
328328
[[Increment]]: 10<sup>3 − _digits_</sup>
329329
}.
330330
1. If _digits_ is 4, 5, or 6, then
331-
1. Return the new Record {
331+
1. Return the Record {
332332
[[Precision]]: _digits_,
333333
[[Unit]]: *"microsecond"*,
334334
[[Increment]]: 10<sup>6 − _digits_</sup>
335335
}.
336336
1. Assert: _digits_ is 7, 8, or 9.
337-
1. Return the new Record {
337+
1. Return the Record {
338338
[[Precision]]: _digits_,
339339
[[Unit]]: *"nanosecond"*,
340340
[[Increment]]: 10<sup>9 − _digits_</sup>
@@ -1112,7 +1112,7 @@ <h1>ParseISODateTime ( _isoString_ )</h1>
11121112
1. Let _nanosecond_ be 0.
11131113
1. If ! IsValidISODate(_year_, _month_, _day_) is *false*, throw a *RangeError* exception.
11141114
1. If ! IsValidTime(_hour_, _minute_, _second_, _millisecond_, _microsecond_, _nanosecond_) is *false*, throw a *RangeError* exception.
1115-
1. Return the new Record {
1115+
1. Return the Record {
11161116
[[Year]]: _year_,
11171117
[[Month]]: _month_,
11181118
[[Day]]: _day_,
@@ -1139,7 +1139,7 @@ <h1>ParseTemporalInstantString ( _isoString_ )</h1>
11391139
1. Let _result_ be ! ParseISODateTime(_isoString_).
11401140
1. Let _timeZoneResult_ be ? ParseTemporalTimeZoneString(_isoString_).
11411141
1. Assert: _timeZoneResult_.[[OffsetString]] is not *undefined*.
1142-
1. Return the new Record {
1142+
1. Return the Record {
11431143
[[Year]]: _result_.[[Year]],
11441144
[[Month]]: _result_.[[Month]],
11451145
[[Day]]: _result_.[[Day]],
@@ -1167,7 +1167,7 @@ <h1>ParseTemporalZonedDateTimeString ( _isoString_ )</h1>
11671167
1. Let _timeZoneResult_ be ? ParseTemporalTimeZoneString(_isoString_).
11681168
1. If _timeZoneResult_.[[Z]] is not *undefined*, then
11691169
1. Throw a *RangeError* exception.
1170-
1. Return the new Record {
1170+
1. Return the Record {
11711171
[[Year]]: _result_.[[Year]],
11721172
[[Month]]: _result_.[[Month]],
11731173
[[Day]]: _result_.[[Day]],
@@ -1209,7 +1209,7 @@ <h1>ParseTemporalDateString ( _isoString_ )</h1>
12091209
1. If _isoString_ does not satisfy the syntax of a |TemporalDateString| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
12101210
1. Throw a *RangeError* exception.
12111211
1. Let _result_ be ? ParseISODateTime(_isoString_).
1212-
1. Return the new Record {
1212+
1. Return the Record {
12131213
[[Year]]: _result_.[[Year]],
12141214
[[Month]]: _result_.[[Month]],
12151215
[[Day]]: _result_.[[Day]],
@@ -1278,7 +1278,7 @@ <h1>ParseTemporalDurationString ( _isoString_ )</h1>
12781278
1. Else,
12791279
1. Set _fMinutes_ to 0.
12801280
1. Let _result_ be ? DurationHandleFractions(_fHours_, _minutes_, _fMinutes_, _seconds_, _milliseconds_, _microseconds_, _nanoseconds_).
1281-
1. Return the new Record {
1281+
1. Return the Record {
12821282
[[Years]]: _years_,
12831283
[[Months]]: _months_,
12841284
[[Weeks]]: _weeks_,
@@ -1314,7 +1314,7 @@ <h1>ParseTemporalMonthDayString ( _isoString_ )</h1>
13141314
1. Set _day_ to 1.
13151315
1. Else,
13161316
1. Set _day_ to ! ToIntegerOrInfinity(_day_).
1317-
1. Return the new Record {
1317+
1. Return the Record {
13181318
[[Year]]: _year_,
13191319
[[Month]]: _month_,
13201320
[[Day]]: _day_
@@ -1332,7 +1332,7 @@ <h1>ParseTemporalTimeString ( _isoString_ )</h1>
13321332
1. If _isoString_ does not satisfy the syntax of a |TemporalTimeString| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
13331333
1. Throw a *RangeError* exception.
13341334
1. Let _result_ be ? ParseISODateTime(_isoString_).
1335-
1. Return the new Record {
1335+
1. Return the Record {
13361336
[[Hour]]: _result_.[[Hour]],
13371337
[[Minute]]: _result_.[[Minute]],
13381338
[[Second]]: _result_.[[Second]],
@@ -1355,7 +1355,7 @@ <h1>ParseTemporalTimeZoneString ( _isoString_ )</h1>
13551355
1. Throw a *RangeError* exception.
13561356
1. Let _z_, _sign_, _hours_, _minutes_, _seconds_, _fraction_ and _name_ be the parts of _isoString_ produced respectively by the |UTCDesignator|, |TimeZoneUTCOffsetSign|, |TimeZoneUTCOffsetHour|, |TimeZoneUTCOffsetMinute|, |TimeZoneUTCOffsetSecond|, |TimeZoneUTCOffsetFraction|, and |TimeZoneIANAName| productions, or *undefined* if not present.
13571357
1. If _z_ is not *undefined*, then
1358-
1. Return the new Record: {
1358+
1. Return the Record {
13591359
[[Z]]: *"Z"*,
13601360
[[OffsetString]]: *"+00:00"*,
13611361
[[Name]]: *undefined*
@@ -1382,7 +1382,7 @@ <h1>ParseTemporalTimeZoneString ( _isoString_ )</h1>
13821382
1. If _name_ is not *undefined*, then
13831383
1. If ! IsValidTimeZoneName(_name_) is *false*, throw a *RangeError* exception.
13841384
1. Set _name_ to ! CanonicalizeTimeZoneName(_name_).
1385-
1. Return the new Record: {
1385+
1. Return the Record {
13861386
[[Z]]: *undefined*,
13871387
[[OffsetString]]: _offsetString_,
13881388
[[Name]]: _name_
@@ -1401,7 +1401,7 @@ <h1>ParseTemporalYearMonthString ( _isoString_ )</h1>
14011401
1. If _isoString_ does not satisfy the syntax of a |TemporalYearMonthString| (see <emu-xref href="#sec-temporal-iso8601grammar"></emu-xref>), then
14021402
1. Throw a *RangeError* exception.
14031403
1. Let _result_ be ? ParseISODateTime(_isoString_).
1404-
1. Return the new Record {
1404+
1. Return the Record {
14051405
[[Year]]: _result_.[[Year]],
14061406
[[Month]]: _result_.[[Month]],
14071407
[[Day]]: _result_.[[Day]],

spec/calendar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ <h1>ISOYearMonthFromFields ( _fields_, _options_ )</h1>
507507
1. If _year_ is *undefined*, throw a *TypeError* exception.
508508
1. Let _month_ be ? ResolveISOMonth(_fields_).
509509
1. Let _result_ be ? RegulateISOYearMonth(_year_, _month_, _overflow_).
510-
1. Return the new Record {
510+
1. Return the Record {
511511
[[Year]]: _result_.[[Year]],
512512
[[Month]]: _result_.[[Month]],
513513
[[ReferenceISODay]]: 1
@@ -537,7 +537,7 @@ <h1>ISOMonthDayFromFields ( _fields_, _options_ )</h1>
537537
1. Let _result_ be ? RegulateISODate(_year_, _month_, _day_, _overflow_).
538538
1. Else,
539539
1. Let _result_ be ? RegulateISODate(_referenceISOYear_, _month_, _day_, _overflow_).
540-
1. Return the new Record {
540+
1. Return the Record {
541541
[[Month]]: _result_.[[Month]],
542542
[[Day]]: _result_.[[Day]],
543543
[[ReferenceISOYear]]: _referenceISOYear_

spec/duration.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ <h1>ToPartialDuration ( _temporalDurationLike_ )</h1>
763763
<emu-alg>
764764
1. If Type(_temporalDurationLike_) is not Object, then
765765
1. Throw a *TypeError* exception.
766-
1. Let _result_ be the new Record {
766+
1. Let _result_ be the Record {
767767
[[Years]]: *undefined*,
768768
[[Months]]: *undefined*,
769769
[[Weeks]]: *undefined*,
@@ -900,7 +900,7 @@ <h1>BalanceDuration ( _days_, _hours_, _minutes_, _seconds_, _milliseconds_, _mi
900900
1. Set _nanoseconds_ to _nanoseconds_ modulo 1000.
901901
1. Else,
902902
1. Assert: _largestUnit_ is *"nanosecond"*.
903-
1. Return the new Record {
903+
1. Return the Record {
904904
[[Days]]: 𝔽(_days_),
905905
[[Hours]]: 𝔽(_hours_ × _sign_),
906906
[[Minutes]]: 𝔽(_minutes_ × _sign_),
@@ -918,7 +918,7 @@ <h1>UnbalanceDurationRelative ( _years_, _months_, _weeks_, _days_, _largestUnit
918918
<emu-alg>
919919
1. If _relativeTo_ is not present, set _relativeTo_ to *undefined*.
920920
1. If _largestUnit_ is *"year"*, or _years_, _months_, _weeks_, and _days_ are all 0, then
921-
1. Return the new Record {
921+
1. Return the Record {
922922
[[Years]]: _years_,
923923
[[Months]]: _months_,
924924
[[Weeks]]: _weeks_,
@@ -981,7 +981,7 @@ <h1>UnbalanceDurationRelative ( _years_, _months_, _weeks_, _days_, _largestUnit
981981
1. Set _relativeTo_ to _moveResult_.[[RelativeTo]].
982982
1. Set _days_ to _days_ + _moveResult_.[[Days]].
983983
1. Set _weeks_ to _weeks__sign_.
984-
1. Return the new Record {
984+
1. Return the Record {
985985
[[Years]]: _years_,
986986
[[Months]]: _months_,
987987
[[Weeks]]: _weeks_,
@@ -995,7 +995,7 @@ <h1>BalanceDurationRelative ( _years_, _months_, _weeks_, _days_, _largestUnit_,
995995
<p>The abstract operation BalanceDurationRelative converts the calendar units of a duration into a form where lower units are converted into higher units as much as possible, up to _largestUnit_.</p>
996996
<emu-alg>
997997
1. If _largestUnit_ is not one of *"year"*, *"month"*, or *"week"*, or _years_, _months_, _weeks_, and _days_ are all 0, then
998-
1. Return the new Record {
998+
1. Return the Record {
999999
[[Years]]: _years_,
10001000
[[Months]]: _months_,
10011001
[[Weeks]]: _weeks_,
@@ -1066,7 +1066,7 @@ <h1>BalanceDurationRelative ( _years_, _months_, _weeks_, _days_, _largestUnit_,
10661066
1. Set _moveResult_ to ? MoveRelativeDate(_calendar_, _relativeTo_, _oneWeek_).
10671067
1. Set _relativeTo_ to _moveResult_.[[RelativeTo]].
10681068
1. Set _oneWeekDays_ to _moveResult_.[[Days]].
1069-
1. Return the new Record {
1069+
1. Return the Record {
10701070
[[Years]]: _years_,
10711071
[[Months]]: _months_,
10721072
[[Weeks]]: _weeks_,
@@ -1156,7 +1156,7 @@ <h1>AddDuration ( _y1_, _mon1_, _w1_, _d1_, _h1_, _min1_, _s1_, _ms1_, _mus1_, _
11561156
1. Let _microseconds_ be _result_.[[Microseconds]].
11571157
1. Let _nanoseconds_ be _result_.[[Nanoseconds]].
11581158
1. If ! IsValidDuration(_years_, _months_, _weeks_, _days_, _hours_, _minutes_, _seconds_, _milliseconds_, _microseconds_, _nanoseconds_) is *false*, throw a *RangeError* exception.
1159-
1. Return the new Record {
1159+
1. Return the Record {
11601160
[[Years]]: _years_,
11611161
[[Months]]: _months_,
11621162
[[Weeks]]: _weeks_,
@@ -1195,7 +1195,7 @@ <h1>MoveRelativeDate ( _calendar_, _relativeTo_, _duration_ )</h1>
11951195
1. Let _later_ be ? CalendarDateAdd(_calendar_, _relativeTo_, _duration_, _options_).
11961196
1. Let _days_ be ? DaysUntil(_relativeTo_, _later_).
11971197
1. Let _dateTime_ be ? CreateTemporalDateTime(_later_.[[ISOYear]], _later_.[[ISOMonth]], _later_.[[ISODay]], _relativeTo_.[[ISOHour]], _relativeTo_.[[ISOMinute]], _relativeTo_.[[ISOSecond]], _relativeTo_.[[ISOMillisecond]], _relativeTo_.[[ISOMicrosecond]], _relativeTo_.[[ISONanosecond]], _relativeTo_.[[Calendar]]).
1198-
1. Return the new Record {
1198+
1. Return the Record {
11991199
[[RelativeTo]]: _dateTime_,
12001200
[[Days]]: _days_
12011201
}.
@@ -1351,7 +1351,7 @@ <h1>RoundDuration ( _years_, _months_, _weeks_, _days_, _hours_, _minutes_, _sec
13511351
1. Set _remainder_ to _nanoseconds_.
13521352
1. Set _nanoseconds_ to ! RoundNumberToIncrement(_nanoseconds_, _increment_, _roundingMode_).
13531353
1. Set _remainder_ to _remainder__nanoseconds_.
1354-
1. Return the new Record {
1354+
1. Return the Record {
13551355
[[Years]]: _years_,
13561356
[[Months]]: _months_,
13571357
[[Weeks]]: _weeks_,
@@ -1376,7 +1376,7 @@ <h1>AdjustRoundedDurationDays ( _years_, _months_, _weeks_, _days_, _hours_, _mi
13761376
</p>
13771377
<emu-alg>
13781378
1. If _relativeTo_ is not present; or Type(_relativeTo_) is not Object; or _relativeTo_ does not have an [[InitializedTemporalZonedDateTime]] internal slot; or _unit_ is one of *"year"*, *"month"*, *"week"*, or *"day"*; or _unit_ is *"nanosecond"* and _increment_ is 1, then
1379-
1. Return the new Record {
1379+
1. Return the Record {
13801380
[[Years]]: _years_,
13811381
[[Months]]: _months_,
13821382
[[Weeks]]: _weeks_,
@@ -1394,7 +1394,7 @@ <h1>AdjustRoundedDurationDays ( _years_, _months_, _weeks_, _days_, _hours_, _mi
13941394
1. Let _dayEnd_ be ? AddZonedDateTime(_dayStart_, _relativeTo_.[[TimeZone]], _relativeTo_.[[Calendar]], 0, 0, 0, _direction_, 0, 0, 0, 0, 0, 0).
13951395
1. Let _dayLengthNs_ be ℝ(_dayEnd__dayStart_).
13961396
1. If (_timeRemainderNs__dayLengthNs_) × _direction_ &lt; 0, then
1397-
1. Return the new Record {
1397+
1. Return the Record {
13981398
[[Years]]: _years_,
13991399
[[Months]]: _months_,
14001400
[[Weeks]]: _weeks_,
@@ -1409,7 +1409,7 @@ <h1>AdjustRoundedDurationDays ( _years_, _months_, _weeks_, _days_, _hours_, _mi
14091409
1. Set _timeRemainderNs_ to ? RoundTemporalInstant(ℤ(_timeRemainderNs__dayLengthNs_), _increment_, _unit_, _roundingMode_).
14101410
1. Let _adjustedDateDuration_ be ? AddDuration(_years_, _months_, _weeks_, _days_, 0, 0, 0, 0, 0, 0, 0, 0, 0, _direction_, 0, 0, 0, 0, 0, 0, _relativeTo_).
14111411
1. Let _adjustedTimeDuration_ be ? BalanceDuration(0, 0, 0, 0, 0, 0, _timeRemainderNs_, *"hour"*).
1412-
1. Return the new Record {
1412+
1. Return the Record {
14131413
[[Years]]: _adjustedDateDuration_.[[Years]],
14141414
[[Months]]: _adjustedDateDuration_.[[Months]],
14151415
[[Weeks]]: _adjustedDateDuration_.[[Weeks]],

spec/intl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ <h1>HandleDateTimeValue ( _dateTimeFormat_, _x_ )</h1>
763763
1. Set _x_ to TimeClip(_x_).
764764
1. If _x_ is *NaN*, throw a *RangeError* exception.
765765
1. Let _epochNanoseconds_ be ℤ(_x_) × 10<sup>6</sup>.
766-
1. Return the new Record {
766+
1. Return the Record {
767767
[[pattern]]: _pattern_,
768768
[[rangePatterns]]: _rangePatterns_,
769769
[[epochNanoseconds]]: _epochNanoseconds_

0 commit comments

Comments
 (0)