Skip to content

Commit 0825f8b

Browse files
authored
Make Date serialization follow Date Time String format (#237)
1 parent 05d75bf commit 0825f8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/
9494
text: CreateSetIterator; url: sec-createsetiterator
9595
text: Date; url: sec-date-constructor
9696
text: Date Time String Format; url: sec-date-time-string-format
97-
text: Date.ToDateString; url: sec-todatestring
97+
text: Date.toISOString; url: sec-date.prototype.toisostring
9898
text: EnumerableOwnPropertyNames; url: sec-enumerableownpropertynames
9999
text: Get; url: sec-get
100100
text: HasProperty; url: sec-hasproperty
@@ -114,7 +114,6 @@ spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/
114114
text: StringToBigInt; url: sec-stringtobigint
115115
text: StringToNumber; url: sec-stringtonumber
116116
text: RegExp; url: sec-regexp-pattern-flags
117-
text: ThisTimeValue; url: thistimevalue
118117
text: ToString; url: sec-tostring
119118
text: Type; url: sec-ecmascript-data-types-and-values
120119
text: abrupt completion; url: sec-completion-record-specification-type
@@ -125,6 +124,7 @@ spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/
125124
text: realm; url: sec-code-realms
126125
text: running execution context; url: running-execution-context
127126
text: time value; url: sec-time-values-and-time-range
127+
text: throw completion; url: sec-completion-record-specification-type
128128
spec: GEOMETRY; urlPrefix: https://drafts.fxtf.org/geometry/
129129
type: dfn
130130
text: rectangle; url: rectangle
@@ -1749,7 +1749,9 @@ an |ownership type|, a |serialization internal map| and a |realm|:
17491749

17501750
<dt>|value| has a \[[DateValue]] [=internal slot=].
17511751
<dd>
1752-
1. Let |serialized| be [=Date.ToDateString=]([=thisTimeValue=](|value|)).
1752+
1. Set |serialized| to [=Call=]([=Date.toISOString=], |value|).
1753+
1754+
1. Assert: |serialized| is not a [=throw completion=].
17531755

17541756
1. Let |remote value| be a map matching the <code>DateRemoteValue</code>
17551757
production in the [=local end definition=], with the <code>handle</code>

0 commit comments

Comments
 (0)