Skip to content

Commit ef8e60d

Browse files
authored
Replace Get+Call by Invoke (#1361)
Fixes #1314.
1 parent a6f3690 commit ef8e60d

File tree

9 files changed

+70
-140
lines changed

9 files changed

+70
-140
lines changed

spec/calendar.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ <h1>CalendarMergeFields ( _calendar_, _fields_, _additionalFields_ )</h1>
6666
<h1>CalendarDateAdd ( _calendar_, _date_, _duration_, _constructor_ [ , _options_ ] )</h1>
6767
<emu-alg>
6868
1. Assert: Type(_calendar_) is Object.
69-
1. Let _dateAdd_ be ? Get(_calendar_, *"dateAdd"*).
70-
1. Let _addedDate_ be ? Call(_dateAdd_, _calendar_, « _date_, _duration_, _options_, _constructor_ »).
69+
1. Let _addedDate_ be ? Invoke( _calendar_, *"dateAdd"*, « _date_, _duration_, _options_, _constructor_ »).
7170
1. Perform ? RequireInternalSlot(_addedDate_, [[InitializedTemporalDate]]).
7271
1. Return _addedDate_.
7372
</emu-alg>
@@ -77,8 +76,7 @@ <h1>CalendarDateAdd ( _calendar_, _date_, _duration_, _constructor_ [ , _options
7776
<h1>CalendarDateUntil ( _calendar_, _one_, _two_, _options_ )</h1>
7877
<emu-alg>
7978
1. Assert: Type(_calendar_) is Object.
80-
1. Let _dateUntil_ be ? Get(_calendar_, *"dateUntil"*).
81-
1. Let _duration_ be ? Call(_dateUntil_ , _calendar_, « _one_, _two_, _options_ »).
79+
1. Let _duration_ be ? Invoke(_calendar_, *"dateUntil"*, « _one_, _two_, _options_ »).
8280
1. Perform ? RequireInternalSlot(_duration_, [[InitializedTemporalDuration]]).
8381
1. Return _duration_.
8482
</emu-alg>
@@ -136,8 +134,7 @@ <h1>DateFromFields ( _calendar_, _fields_, _constructor_, _options_ )</h1>
136134
<emu-alg>
137135
1. Assert: Type(_calendar_) is Object.
138136
1. Assert: Type(_fields_) is Object.
139-
1. Let _dateFromFields_ be ? Get(_calendar_, *"dateFromFields"*).
140-
1. Let _date_ be ? Call(_dateFromFields_, _calendar_, « _fields_, _options_, _constructor_ »).
137+
1. Let _date_ be ? Invoke(_calendar_, *"dateFromFields"*, « _fields_, _options_, _constructor_ »).
141138
1. Perform ? RequireInternalSlot(_date_, [[InitializedTemporalDate]]).
142139
1. Return _date_.
143140
</emu-alg>
@@ -148,8 +145,7 @@ <h1>YearMonthFromFields ( _calendar_, _fields_, _constructor_, _options_ )</h1>
148145
<emu-alg>
149146
1. Assert: Type(_calendar_) is Object.
150147
1. Assert: Type(_fields_) is Object.
151-
1. Let _yearMonthFromFields_ be ? Get(_calendar_, *"yearMonthFromFields"*).
152-
1. Let _yearMonth_ be ? Call(_yearMonthFromFields_, _calendar_, « _fields_, _options_, _constructor_ »).
148+
1. Let _yearMonth_ be ? Invoke(_calendar_, *"yearMonthFromFields"*, « _fields_, _options_, _constructor_ »).
153149
1. Perform ? RequireInternalSlot(_yearMonth_, [[InitializedTemporalYearMonth]]).
154150
1. Return _yearMonth_.
155151
</emu-alg>
@@ -160,8 +156,7 @@ <h1>MonthDayFromFields ( _calendar_, _fields_, _constructor_, _options_ )</h1>
160156
<emu-alg>
161157
1. Assert: Type(_calendar_) is Object.
162158
1. Assert: Type(_fields_) is Object.
163-
1. Let _monthDayFromFields_ be ? Get(_calendar_, *"monthDayFromFields"*).
164-
1. Let _monthDay_ be ? Call(_monthDayFromFields_, _calendar_, « _fields_, _options_, _constructor_ »).
159+
1. Let _monthDay_ be ? Invoke(_calendar_, *"monthDayFromFields"*, « _fields_, _options_, _constructor_ »).
165160
1. Perform ? RequireInternalSlot(_monthDay_, [[InitializedTemporalMonthDay]]).
166161
1. Return _monthDay_.
167162
</emu-alg>

spec/duration.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,10 +1149,9 @@ <h1>AddDuration ( _y1_, _mon1_, _w1_, _d1_, _h1_, _min1_, _s1_, _ms1_, _mus1_, _
11491149
1. Let _intermediate_ be ? Call(_dateAdd_, _calendar_, « _datePart_, _dateDuration1_, _options_, %Temporal.PlainDate% »).
11501150
1. Let _end_ be ? Call(_dateAdd_, _calendar_, « _intermediate_, _dateDuration2_, _options_, %Temporal.PlainDate% »).
11511151
1. Let _dateLargestUnit_ be ! LargerOfTwoTemporalDurationUnits(*"days"*, _largestUnit_).
1152-
1. Let _dateUntil_ be ? Get(_calendar_, *"dateUntil"*).
11531152
1. Let _differenceOptions_ be ! OrdinaryObjectCreate(%Object.prototype%).
11541153
1. Perform ! CreateDataPropertyOrThrow(_differenceOptions_, *"largestUnit"*, _dateLargestUnit_).
1155-
1. Let _dateDifference_ be ? Call(_dateUntil_, _calendar_, « _datePart_, _end_, _differenceOptions_ »).
1154+
1. Let _dateDifference_ be ? Invoke(_calendar_, *"dateUntil"*, « _datePart_, _end_, _differenceOptions_ »).
11561155
1. Let _result_ be ! BalanceDuration(_dateDifference_.[[Days]], _h1_ + _h2_, _min1_ + _min2_, _s1_ + _s2_, _ms1_ + _ms2_, _mus1_ + _mus2_, _ns1_ + _ns2_, _largestUnit_).
11571156
1. Let _years_ be _dateDifference_.[[Years]].
11581157
1. Let _months_ be _dateDifference_.[[Months]].
@@ -1232,9 +1231,8 @@ <h1>MoveRelativeDate ( _calendar_, _relativeTo_, _duration_ )</h1>
12321231
This is used when balancing or rounding durations relative to a particular date.
12331232
</p>
12341233
<emu-alg>
1235-
1. Let _dateAdd_ be ? Get(_calendar_, *"dateAdd"*).
12361234
1. Let _options_ be ! OrdinaryObjectCreate(%Object.prototype%).
1237-
1. Let _later_ be ? Call(_dateAdd_, _calendar_, « _relativeTo_, _duration_, _options_, %Temporal.PlainDate% »).
1235+
1. Let _later_ be ? Invoke(_calendar_, *"dateAdd"*, « _relativeTo_, _duration_, _options_, %Temporal.PlainDate% »).
12381236
1. Let _days_ be ? DaysUntil(_relativeTo_, _later_).
12391237
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]]).
12401238
1. Return the new Record {

spec/intl.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,7 @@ <h1>get Temporal.PlainDate.prototype.era</h1>
13331333
1. Let _plainDate_ be the *this* value.
13341334
1. Perform ? RequireInternalSlot(_plainDate_, [[InitializedTemporalDate]]).
13351335
1. Let _calendar_ be _plainDate_.[[Calendar]].
1336-
1. Let _method_ be ? Get(_calendar_, *"era"*).
1337-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainDate_ »).
1336+
1. Let _result_ be ? Invoke(_calendar_, *"era"*, « _plainDate_ »).
13381337
1. If _result_ is not *undefined*, then
13391338
1. Set _result_ to ? ToString(_result_).
13401339
1. Return _result_.
@@ -1351,8 +1350,7 @@ <h1>get Temporal.PlainDate.prototype.eraYear</h1>
13511350
1. Let _plainDate_ be the *this* value.
13521351
1. Perform ? RequireInternalSlot(_plainDate_, [[InitializedTemporalDate]]).
13531352
1. Let _calendar_ be _plainDate_.[[Calendar]].
1354-
1. Let _method_ be ? Get(_calendar_, *"eraYear"*).
1355-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainDate_ »).
1353+
1. Let _result_ be ? Invoke(_calendar_, *"eraYear"*, « _plainDate_ »).
13561354
1. If _result_ is not *undefined*, then
13571355
1. Set _result_ to ? ToIntegerOrInfinity(_result_).
13581356
1. Return _result_.
@@ -1387,8 +1385,7 @@ <h1>get Temporal.PlainDateTime.prototype.era</h1>
13871385
1. Let _plainDateTime_ be the *this* value.
13881386
1. Perform ? RequireInternalSlot(_plainDateTime_, [[InitializedTemporalDateTime]]).
13891387
1. Let _calendar_ be _plainDateTime_.[[Calendar]].
1390-
1. Let _method_ be ? Get(_calendar_, *"era"*).
1391-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainDateTime_ »).
1388+
1. Let _result_ be ? Invoke(_calendar_, *"era"*, « _plainDateTime_ »).
13921389
1. If _result_ is not *undefined*, then
13931390
1. Set _result_ to ? ToString(_result_).
13941391
1. Return _result_.
@@ -1405,8 +1402,7 @@ <h1>get Temporal.PlainDateTime.prototype.eraYear</h1>
14051402
1. Let _plainDateTime_ be the *this* value.
14061403
1. Perform ? RequireInternalSlot(_plainDateTime_, [[InitializedTemporalDateTime]]).
14071404
1. Let _calendar_ be _plainDateTime_.[[Calendar]].
1408-
1. Let _method_ be ? Get(_calendar_, *"eraYear"*).
1409-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainDateTime_ »).
1405+
1. Let _result_ be ? Invoke(_calendar_, *"eraYear"*, « _plainDateTime_ »).
14101406
1. If _result_ is not *undefined*, then
14111407
1. Set _result_ to ? ToIntegerOrInfinity(_result_).
14121408
1. Return _result_.
@@ -1477,8 +1473,7 @@ <h1>get Temporal.PlainYearMonth.prototype.era</h1>
14771473
1. Let _plainYearMonth_ be the *this* value.
14781474
1. Perform ? RequireInternalSlot(_plainYearMonth_, [[InitializedTemporalYearMonth]]).
14791475
1. Let _calendar_ be _plainYearMonth_.[[Calendar]].
1480-
1. Let _method_ be ? Get(_calendar_, *"era"*).
1481-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainYearMonth_ »).
1476+
1. Let _result_ be ? Invoke(_calendar_, *"era"*, « _plainYearMonth_ »).
14821477
1. If _result_ is not *undefined*, then
14831478
1. Set _result_ to ? ToString(_result_).
14841479
1. Return _result_.
@@ -1495,8 +1490,7 @@ <h1>get Temporal.PlainYearMonth.prototype.eraYear</h1>
14951490
1. Let _plainYearMonth_ be the *this* value.
14961491
1. Perform ? RequireInternalSlot(_plainYearMonth_, [[InitializedTemporalYearMonth]]).
14971492
1. Let _calendar_ be _plainYearMonth_.[[Calendar]].
1498-
1. Let _method_ be ? Get(_calendar_, *"eraYear"*).
1499-
1. Let _result_ be ? Call(_method_, _calendar_, « _plainYearMonth_ »).
1493+
1. Let _result_ be ? Invoke(_calendar_, *"eraYear"*, « _plainYearMonth_ »).
15001494
1. If _result_ is not *undefined*, then
15011495
1. Set _result_ to ? ToIntegerOrInfinity(_result_).
15021496
1. Return _result_.
@@ -1531,8 +1525,7 @@ <h1>get Temporal.ZonedDateTime.prototype.era</h1>
15311525
1. Let _zonedDateTime_ be the *this* value.
15321526
1. Perform ? RequireInternalSlot(_zonedDateTime_, [[InitializedTemporalZonedDateTime]]).
15331527
1. Let _calendar_ be _zonedDateTime_.[[Calendar]].
1534-
1. Let _method_ be ? Get(_calendar_, *"era"*).
1535-
1. Let _result_ be ? Call(_method_, _calendar_, « _zonedDateTime_ »).
1528+
1. Let _result_ be ? Invoke(_calendar_, *"era"*, « _zonedDateTime_ »).
15361529
1. If _result_ is not *undefined*, then
15371530
1. Set _result_ to ? ToString(_result_).
15381531
1. Return _result_.
@@ -1549,8 +1542,7 @@ <h1>get Temporal.ZonedDateTime.prototype.eraYear</h1>
15491542
1. Let _zonedDateTime_ be the *this* value.
15501543
1. Perform ? RequireInternalSlot(_zonedDateTime_, [[InitializedTemporalZonedDateTime]]).
15511544
1. Let _calendar_ be _zonedDateTime_.[[Calendar]].
1552-
1. Let _method_ be ? Get(_calendar_, *"eraYear"*).
1553-
1. Let _result_ ? Call(_method_, _calendar_, « _zonedDateTime_ »).
1545+
1. Let _result_ ? Invoke(_calendar_, *"eraYear"*, « _zonedDateTime_ »).
15541546
1. If _result_ is not *undefined*, then
15551547
1. Set _result_ to ? ToIntegerOrInfinity(_result_).
15561548
1. Return _result_.

spec/plaindate.html

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ <h1>get Temporal.PlainDate.prototype.year</h1>
139139
1. Let _temporalDate_ be the *this* value.
140140
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
141141
1. Let _calendar_ be _temporalDate_.[[Calendar]].
142-
1. Let _method_ be ? Get(_calendar_, *"year"*).
143-
1. Let _result_ be ? Call(_method_, _calendar_, « _temporalDate_ »).
142+
1. Let _result_ be ? Invoke(_calendar_, *"year"*, « _temporalDate_ »).
144143
1. If _result_ is *undefined*, then
145144
1. Throw a *RangeError* exception.
146145
1. Return ? ToIntegerOrInfinity(_result_).
@@ -157,8 +156,7 @@ <h1>get Temporal.PlainDate.prototype.month</h1>
157156
1. Let _temporalDate_ be the *this* value.
158157
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
159158
1. Let _calendar_ be _temporalDate_.[[Calendar]].
160-
1. Let _method_ be ? Get(_calendar_, *"month"*).
161-
1. Let _result_ be ? Call(_method_, _calendar_, « _temporalDate_ »).
159+
1. Let _result_ be ? Invoke(_calendar_, *"month"*, « _temporalDate_ »).
162160
1. If _result_ is *undefined*, then
163161
1. Throw a *RangeError* exception.
164162
1. Return ? ToPositiveIntegerOrInfinity(_result_).
@@ -175,8 +173,7 @@ <h1>get Temporal.PlainDate.prototype.monthCode</h1>
175173
1. Let _temporalDate_ be the *this* value.
176174
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
177175
1. Let _calendar_ be _temporalDate_.[[Calendar]].
178-
1. Let _method_ be ? Get(_calendar_, *"monthCode"*).
179-
1. Let _result_ be ? Call(_method_, _calendar_, « _temporalDate_ »).
176+
1. Let _result_ be ? Invoke(_calendar_, *"monthCode"*, « _temporalDate_ »).
180177
1. If _result_ is *undefined*, then
181178
1. Throw a *RangeError* exception.
182179
1. Return ? ToString(_result_).
@@ -193,8 +190,7 @@ <h1>get Temporal.PlainDate.prototype.day</h1>
193190
1. Let _temporalDate_ be the *this* value.
194191
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
195192
1. Let _calendar_ be _temporalDate_.[[Calendar]].
196-
1. Let _method_ be ? Get(_calendar_, *"day"*).
197-
1. Let _result_ be ? Call(_method_, _calendar_, « _temporalDate_ »).
193+
1. Let _result_ be ? Invoke(_calendar_, *"day"*, « _temporalDate_ »).
198194
1. If _result_ is *undefined*, then
199195
1. Throw a *RangeError* exception.
200196
1. Return ? ToPositiveIntegerOrInfinity(_result_).
@@ -211,8 +207,7 @@ <h1>get Temporal.PlainDate.prototype.dayOfWeek</h1>
211207
1. Let _temporalDate_ be the *this* value.
212208
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
213209
1. Let _calendar_ be _temporalDate_.[[Calendar]].
214-
1. Let _method_ be ? Get(_calendar_, *"dayOfWeek"*).
215-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
210+
1. Return ? Invoke(_calendar_, *"dayOfWeek"*, « _temporalDate_ »).
216211
</emu-alg>
217212
</emu-clause>
218213

@@ -226,8 +221,7 @@ <h1>get Temporal.PlainDate.prototype.dayOfYear</h1>
226221
1. Let _temporalDate_ be the *this* value.
227222
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
228223
1. Let _calendar_ be _temporalDate_.[[Calendar]].
229-
1. Let _method_ be ? Get(_calendar_, *"dayOfYear"*).
230-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
224+
1. Return ? Invoke(_calendar_, *"dayOfYear"*, « _temporalDate_ »).
231225
</emu-alg>
232226
</emu-clause>
233227

@@ -241,8 +235,7 @@ <h1>get Temporal.PlainDate.prototype.weekOfYear</h1>
241235
1. Let _temporalDate_ be the *this* value.
242236
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
243237
1. Let _calendar_ be _temporalDate_.[[Calendar]].
244-
1. Let _method_ be ? Get(_calendar_, *"weekOfYear"*).
245-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
238+
1. Return ? Invoke(_calendar_, *"weekOfYear"*, « _temporalDate_ »).
246239
</emu-alg>
247240
</emu-clause>
248241

@@ -256,8 +249,7 @@ <h1>get Temporal.PlainDate.prototype.daysInWeek</h1>
256249
1. Let _temporalDate_ be the *this* value.
257250
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
258251
1. Let _calendar_ be _temporalDate_.[[Calendar]].
259-
1. Let _method_ be ? Get(_calendar_, *"daysInWeek"*).
260-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
252+
1. Return ? Invoke(_calendar_, *"daysInWeek"*, « _temporalDate_ »).
261253
</emu-alg>
262254
</emu-clause>
263255

@@ -271,8 +263,7 @@ <h1>get Temporal.PlainDate.prototype.daysInMonth</h1>
271263
1. Let _temporalDate_ be the *this* value.
272264
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
273265
1. Let _calendar_ be _temporalDate_.[[Calendar]].
274-
1. Let _method_ be ? Get(_calendar_, *"daysInMonth"*).
275-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
266+
1. Return ? Invoke(_calendar_, *"daysInMonth"*, « _temporalDate_ »).
276267
</emu-alg>
277268
</emu-clause>
278269

@@ -286,8 +277,7 @@ <h1>get Temporal.PlainDate.prototype.daysInYear</h1>
286277
1. Let _temporalDate_ be the *this* value.
287278
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
288279
1. Let _calendar_ be _temporalDate_.[[Calendar]].
289-
1. Let _method_ be ? Get(_calendar_, *"daysInYear"*).
290-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
280+
1. Return ? Invoke(_calendar_, *"daysInYear"*, « _temporalDate_ »).
291281
</emu-alg>
292282
</emu-clause>
293283

@@ -301,8 +291,7 @@ <h1>get Temporal.PlainDate.prototype.monthsInYear</h1>
301291
1. Let _temporalDate_ be the *this* value.
302292
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
303293
1. Let _calendar_ be _temporalDate_.[[Calendar]].
304-
1. Let _method_ be ? Get(_calendar_, *"monthsInYear"*).
305-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
294+
1. Return ? Invoke(_calendar_, *"monthsInYear"*, « _temporalDate_ »).
306295
</emu-alg>
307296
</emu-clause>
308297

@@ -316,8 +305,7 @@ <h1>get Temporal.PlainDate.prototype.inLeapYear</h1>
316305
1. Let _temporalDate_ be the *this* value.
317306
1. Perform ? RequireInternalSlot(_temporalDate_, [[InitializedTemporalDate]]).
318307
1. Let _calendar_ be _temporalDate_.[[Calendar]].
319-
1. Let _method_ be ? Get(_calendar_, *"inLeapYear"*).
320-
1. Return ? Call(_method_, _calendar_, « _temporalDate_ »).
308+
1. Return ? Invoke(_calendar_, *"inLeapYear"*, « _temporalDate_ »).
321309
</emu-alg>
322310
</emu-clause>
323311

@@ -382,8 +370,7 @@ <h1>Temporal.PlainDate.prototype.add ( _temporalDurationLike_ [ , _options_ ] )<
382370
1. Let _balanceResult_ be ? BalanceDuration(_duration_.[[Days]], _duration_.[[Hours]], _duration_.[[Minutes]], _duration_.[[Seconds]], _duration_.[[Milliseconds]], _duration_.[[Microseconds]], _duration_.[[Nanoseconds]], *"days"*).
383371
1. Set _options_ to ? NormalizeOptionsObject(_options_).
384372
1. Let _constructor_ be ? SpeciesConstructor(_temporalDate_, %Temporal.PlainDate%).
385-
1. Let _dateAdd_ be ? Get(_calendar_, *"dateAdd"*).
386-
1. Return ? Call(_dateAdd_, _calendar_, « _temporalDate_, _duration_, _options_, _constructor_ »).
373+
1. Return ? Invoke(_calendar_, *"dateAdd"*, « _temporalDate_, _duration_, _options_, _constructor_ »).
387374
</emu-alg>
388375
</emu-clause>
389376

@@ -402,8 +389,7 @@ <h1>Temporal.PlainDate.prototype.subtract ( _temporalDurationLike_ [ , _options_
402389
1. Set _options_ to ? NormalizeOptionsObject(_options_).
403390
1. Let _negatedDuration_ be ? CreateTemporalDuration(−_duration_.[[Years]], −_duration_.[[Months]], −_duration_.[[Weeks]], −_duration_.[[Days]], −_duration_.[[Hours]], −_duration_.[[Minutes]], −_duration_.[[Seconds]], −_duration_.[[Milliseconds]], −_duration_.[[Microseconds]], −_duration_.[[Nanoseconds]]).
404391
1. Let _constructor_ be ? SpeciesConstructor(_temporalDate_, %Temporal.PlainDate%).
405-
1. Let _dateAdd_ be ? Get(_calendar_, *"dateAdd"*).
406-
1. Return ? Call(_dateAdd_, _calendar_, « _temporalDate_, _negatedDuration_, _options_, _constructor_ »).
392+
1. Return ? Invoke(_calendar_, *"dateAdd"*, « _temporalDate_, _negatedDuration_, _options_, _constructor_ »).
407393
</emu-alg>
408394
</emu-clause>
409395

0 commit comments

Comments
 (0)