@@ -278,63 +278,63 @@ <h1>ToSecondsStringPrecision ( _normalizedOptions_ )</h1>
278
278
<emu-alg >
279
279
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_normalizedOptions_ , « *"year"* , *"month"* , *"week"* , *"day"* , *"hour"* », *undefined* ).
280
280
1. If _smallestUnit_ is *"minute"* , then
281
- 1. Return the new Record {
281
+ 1. Return the Record {
282
282
[[Precision]]: *"minute"* ,
283
283
[[Unit]]: *"minute"* ,
284
284
[[Increment]]: 1
285
285
}.
286
286
1. If _smallestUnit_ is *"second"* , then
287
- 1. Return the new Record {
287
+ 1. Return the Record {
288
288
[[Precision]]: 0,
289
289
[[Unit]]: *"second"* ,
290
290
[[Increment]]: 1
291
291
}.
292
292
1. If _smallestUnit_ is *"millisecond"* , then
293
- 1. Return the new Record {
293
+ 1. Return the Record {
294
294
[[Precision]]: 3,
295
295
[[Unit]]: *"millisecond"* ,
296
296
[[Increment]]: 1
297
297
}.
298
298
1. If _smallestUnit_ is *"microsecond"* , then
299
- 1. Return the new Record {
299
+ 1. Return the Record {
300
300
[[Precision]]: 6,
301
301
[[Unit]]: *"microsecond"* ,
302
302
[[Increment]]: 1
303
303
}.
304
304
1. If _smallestUnit_ is *"nanosecond"* , then
305
- 1. Return the new Record {
305
+ 1. Return the Record {
306
306
[[Precision]]: 9,
307
307
[[Unit]]: *"nanosecond"* ,
308
308
[[Increment]]: 1
309
309
}.
310
310
1. Assert: _smallestUnit_ is *undefined* .
311
311
1. Let _digits_ be ? GetStringOrNumberOption(_normalizedOptions_ , *"fractionalSecondDigits"* , « *"auto"* », 0, 9, *"auto"* ).
312
312
1. If _digits_ is *"auto"* , then
313
- 1. Return the new Record {
313
+ 1. Return the Record {
314
314
[[Precision]]: *"auto"* ,
315
315
[[Unit]]: *"nanosecond"* ,
316
316
[[Increment]]: 1
317
317
}.
318
318
1. If _digits_ is 0, then
319
- 1. Return the new Record {
319
+ 1. Return the Record {
320
320
[[Precision]]: 0,
321
321
[[Unit]]: *"second"* ,
322
322
[[Increment]]: 1
323
323
}.
324
324
1. If _digits_ is 1, 2, or 3, then
325
- 1. Return the new Record {
325
+ 1. Return the Record {
326
326
[[Precision]]: _digits_ ,
327
327
[[Unit]]: *"millisecond"* ,
328
328
[[Increment]]: 10<sup >3 − _digits_ </sup >
329
329
}.
330
330
1. If _digits_ is 4, 5, or 6, then
331
- 1. Return the new Record {
331
+ 1. Return the Record {
332
332
[[Precision]]: _digits_ ,
333
333
[[Unit]]: *"microsecond"* ,
334
334
[[Increment]]: 10<sup >6 − _digits_ </sup >
335
335
}.
336
336
1. Assert: _digits_ is 7, 8, or 9.
337
- 1. Return the new Record {
337
+ 1. Return the Record {
338
338
[[Precision]]: _digits_ ,
339
339
[[Unit]]: *"nanosecond"* ,
340
340
[[Increment]]: 10<sup >9 − _digits_ </sup >
@@ -1112,7 +1112,7 @@ <h1>ParseISODateTime ( _isoString_ )</h1>
1112
1112
1. Let _nanosecond_ be 0.
1113
1113
1. If ! IsValidISODate(_year_ , _month_ , _day_ ) is *false* , throw a *RangeError* exception.
1114
1114
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 {
1116
1116
[[Year]]: _year_ ,
1117
1117
[[Month]]: _month_ ,
1118
1118
[[Day]]: _day_ ,
@@ -1139,7 +1139,7 @@ <h1>ParseTemporalInstantString ( _isoString_ )</h1>
1139
1139
1. Let _result_ be ! ParseISODateTime(_isoString_ ).
1140
1140
1. Let _timeZoneResult_ be ? ParseTemporalTimeZoneString(_isoString_ ).
1141
1141
1. Assert: _timeZoneResult_ .[[OffsetString]] is not *undefined* .
1142
- 1. Return the new Record {
1142
+ 1. Return the Record {
1143
1143
[[Year]]: _result_ .[[Year]],
1144
1144
[[Month]]: _result_ .[[Month]],
1145
1145
[[Day]]: _result_ .[[Day]],
@@ -1167,7 +1167,7 @@ <h1>ParseTemporalZonedDateTimeString ( _isoString_ )</h1>
1167
1167
1. Let _timeZoneResult_ be ? ParseTemporalTimeZoneString(_isoString_ ).
1168
1168
1. If _timeZoneResult_ .[[Z]] is not *undefined* , then
1169
1169
1. Throw a *RangeError* exception.
1170
- 1. Return the new Record {
1170
+ 1. Return the Record {
1171
1171
[[Year]]: _result_ .[[Year]],
1172
1172
[[Month]]: _result_ .[[Month]],
1173
1173
[[Day]]: _result_ .[[Day]],
@@ -1209,7 +1209,7 @@ <h1>ParseTemporalDateString ( _isoString_ )</h1>
1209
1209
1. If _isoString_ does not satisfy the syntax of a | TemporalDateString | (see <emu-xref href =" #sec-temporal-iso8601grammar" ></emu-xref >), then
1210
1210
1. Throw a *RangeError* exception.
1211
1211
1. Let _result_ be ? ParseISODateTime(_isoString_ ).
1212
- 1. Return the new Record {
1212
+ 1. Return the Record {
1213
1213
[[Year]]: _result_ .[[Year]],
1214
1214
[[Month]]: _result_ .[[Month]],
1215
1215
[[Day]]: _result_ .[[Day]],
@@ -1278,7 +1278,7 @@ <h1>ParseTemporalDurationString ( _isoString_ )</h1>
1278
1278
1. Else,
1279
1279
1. Set _fMinutes_ to 0.
1280
1280
1. Let _result_ be ? DurationHandleFractions(_fHours_ , _minutes_ , _fMinutes_ , _seconds_ , _milliseconds_ , _microseconds_ , _nanoseconds_ ).
1281
- 1. Return the new Record {
1281
+ 1. Return the Record {
1282
1282
[[Years]]: _years_ ,
1283
1283
[[Months]]: _months_ ,
1284
1284
[[Weeks]]: _weeks_ ,
@@ -1314,7 +1314,7 @@ <h1>ParseTemporalMonthDayString ( _isoString_ )</h1>
1314
1314
1. Set _day_ to 1.
1315
1315
1. Else,
1316
1316
1. Set _day_ to ! ToIntegerOrInfinity(_day_ ).
1317
- 1. Return the new Record {
1317
+ 1. Return the Record {
1318
1318
[[Year]]: _year_ ,
1319
1319
[[Month]]: _month_ ,
1320
1320
[[Day]]: _day_
@@ -1332,7 +1332,7 @@ <h1>ParseTemporalTimeString ( _isoString_ )</h1>
1332
1332
1. If _isoString_ does not satisfy the syntax of a | TemporalTimeString | (see <emu-xref href =" #sec-temporal-iso8601grammar" ></emu-xref >), then
1333
1333
1. Throw a *RangeError* exception.
1334
1334
1. Let _result_ be ? ParseISODateTime(_isoString_ ).
1335
- 1. Return the new Record {
1335
+ 1. Return the Record {
1336
1336
[[Hour]]: _result_ .[[Hour]],
1337
1337
[[Minute]]: _result_ .[[Minute]],
1338
1338
[[Second]]: _result_ .[[Second]],
@@ -1355,7 +1355,7 @@ <h1>ParseTemporalTimeZoneString ( _isoString_ )</h1>
1355
1355
1. Throw a *RangeError* exception.
1356
1356
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.
1357
1357
1. If _z_ is not *undefined* , then
1358
- 1. Return the new Record: {
1358
+ 1. Return the Record {
1359
1359
[[Z]]: *"Z"* ,
1360
1360
[[OffsetString]]: *"+00:00"* ,
1361
1361
[[Name]]: *undefined*
@@ -1382,7 +1382,7 @@ <h1>ParseTemporalTimeZoneString ( _isoString_ )</h1>
1382
1382
1. If _name_ is not *undefined* , then
1383
1383
1. If ! IsValidTimeZoneName(_name_ ) is *false* , throw a *RangeError* exception.
1384
1384
1. Set _name_ to ! CanonicalizeTimeZoneName(_name_ ).
1385
- 1. Return the new Record: {
1385
+ 1. Return the Record {
1386
1386
[[Z]]: *undefined* ,
1387
1387
[[OffsetString]]: _offsetString_ ,
1388
1388
[[Name]]: _name_
@@ -1401,7 +1401,7 @@ <h1>ParseTemporalYearMonthString ( _isoString_ )</h1>
1401
1401
1. If _isoString_ does not satisfy the syntax of a | TemporalYearMonthString | (see <emu-xref href =" #sec-temporal-iso8601grammar" ></emu-xref >), then
1402
1402
1. Throw a *RangeError* exception.
1403
1403
1. Let _result_ be ? ParseISODateTime(_isoString_ ).
1404
- 1. Return the new Record {
1404
+ 1. Return the Record {
1405
1405
[[Year]]: _result_ .[[Year]],
1406
1406
[[Month]]: _result_ .[[Month]],
1407
1407
[[Day]]: _result_ .[[Day]],
0 commit comments