Skip to content

Commit 900e4bc

Browse files
linusgptomato
authored andcommitted
Normative: Fix "smallestUnit" property name for options objects created from string argument
Fixes incorrect property names "_smallestUnit_" -> "smallestUnit" when creating options objects from a string argument, which was introduced as a new feature in #1875.
1 parent 5ab1822 commit 900e4bc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

spec/duration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ <h1>Temporal.Duration.prototype.round ( _roundTo_ )</h1>
422422
1. If Type(_roundTo_) is String, then
423423
1. Let _paramString_ be _roundTo_.
424424
1. Set _roundTo_ to ! OrdinaryObjectCreate(*null*).
425-
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"_smallestUnit_"*, _paramString_).
425+
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"smallestUnit"*, _paramString_).
426426
1. Else,
427427
1. Set _roundTo_ to ? GetOptionsObject(_roundTo_).
428428
1. Let _smallestUnitPresent_ be *true*.

spec/instant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ <h1>Temporal.Instant.prototype.round ( _roundTo_ )</h1>
309309
1. If Type(_roundTo_) is String, then
310310
1. Let _paramString_ be _roundTo_.
311311
1. Set _roundTo_ to ! OrdinaryObjectCreate(*null*).
312-
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"_smallestUnit_"*, _paramString_).
312+
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"smallestUnit"*, _paramString_).
313313
1. Else,
314314
1. Set _roundTo_ to ? GetOptionsObject(_roundTo_).
315315
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_roundTo_, « *"year"*, *"month"*, *"week"*, *"day"* », *undefined*).

spec/plaindatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ <h1>Temporal.PlainDateTime.prototype.round ( _roundTo_ )</h1>
548548
1. If Type(_roundTo_) is String, then
549549
1. Let _paramString_ be _roundTo_.
550550
1. Set _roundTo_ to ! OrdinaryObjectCreate(*null*).
551-
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"_smallestUnit_"*, _paramString_).
551+
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"smallestUnit"*, _paramString_).
552552
1. Else,
553553
1. Set _roundTo_ to ? GetOptionsObject(_roundTo_).
554554
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_roundTo_, « *"year"*, *"month"*, *"week"* », *undefined*).

spec/plaintime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h1>Temporal.PlainTime.prototype.round ( _roundTo_ )</h1>
340340
1. If Type(_roundTo_) is String, then
341341
1. Let _paramString_ be _roundTo_.
342342
1. Set _roundTo_ to ! OrdinaryObjectCreate(*null*).
343-
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"_smallestUnit_"*, _paramString_).
343+
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"smallestUnit"*, _paramString_).
344344
1. Else,
345345
1. Set _roundTo_ to ? GetOptionsObject(_roundTo_).
346346
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_roundTo_, « *"year"*, *"month"*, *"week"*, *"day"* », *undefined*).

spec/zoneddatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ <h1>Temporal.ZonedDateTime.prototype.round ( _roundTo_ )</h1>
777777
1. If Type(_roundTo_) is String, then
778778
1. Let _paramString_ be _roundTo_.
779779
1. Set _roundTo_ to ! OrdinaryObjectCreate(*null*).
780-
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"_smallestUnit_"*, _paramString_).
780+
1. Perform ! CreateDataPropertyOrThrow(_roundTo_, *"smallestUnit"*, _paramString_).
781781
1. Else,
782782
1. Set _roundTo_ to ? GetOptionsObject(_roundTo_).
783783
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_roundTo_, « *"year"*, *"month"*, *"week"* », *undefined*).

0 commit comments

Comments
 (0)