@@ -139,8 +139,7 @@ <h1>get Temporal.PlainDate.prototype.year</h1>
139
139
1. Let _temporalDate_ be the *this* value.
140
140
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
141
141
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_ »).
144
143
1. If _result_ is *undefined* , then
145
144
1. Throw a *RangeError* exception.
146
145
1. Return ? ToIntegerOrInfinity(_result_ ).
@@ -157,8 +156,7 @@ <h1>get Temporal.PlainDate.prototype.month</h1>
157
156
1. Let _temporalDate_ be the *this* value.
158
157
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
159
158
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_ »).
162
160
1. If _result_ is *undefined* , then
163
161
1. Throw a *RangeError* exception.
164
162
1. Return ? ToPositiveIntegerOrInfinity(_result_ ).
@@ -175,8 +173,7 @@ <h1>get Temporal.PlainDate.prototype.monthCode</h1>
175
173
1. Let _temporalDate_ be the *this* value.
176
174
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
177
175
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_ »).
180
177
1. If _result_ is *undefined* , then
181
178
1. Throw a *RangeError* exception.
182
179
1. Return ? ToString(_result_ ).
@@ -193,8 +190,7 @@ <h1>get Temporal.PlainDate.prototype.day</h1>
193
190
1. Let _temporalDate_ be the *this* value.
194
191
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
195
192
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_ »).
198
194
1. If _result_ is *undefined* , then
199
195
1. Throw a *RangeError* exception.
200
196
1. Return ? ToPositiveIntegerOrInfinity(_result_ ).
@@ -211,8 +207,7 @@ <h1>get Temporal.PlainDate.prototype.dayOfWeek</h1>
211
207
1. Let _temporalDate_ be the *this* value.
212
208
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
213
209
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_ »).
216
211
</emu-alg >
217
212
</emu-clause >
218
213
@@ -226,8 +221,7 @@ <h1>get Temporal.PlainDate.prototype.dayOfYear</h1>
226
221
1. Let _temporalDate_ be the *this* value.
227
222
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
228
223
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_ »).
231
225
</emu-alg >
232
226
</emu-clause >
233
227
@@ -241,8 +235,7 @@ <h1>get Temporal.PlainDate.prototype.weekOfYear</h1>
241
235
1. Let _temporalDate_ be the *this* value.
242
236
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
243
237
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_ »).
246
239
</emu-alg >
247
240
</emu-clause >
248
241
@@ -256,8 +249,7 @@ <h1>get Temporal.PlainDate.prototype.daysInWeek</h1>
256
249
1. Let _temporalDate_ be the *this* value.
257
250
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
258
251
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_ »).
261
253
</emu-alg >
262
254
</emu-clause >
263
255
@@ -271,8 +263,7 @@ <h1>get Temporal.PlainDate.prototype.daysInMonth</h1>
271
263
1. Let _temporalDate_ be the *this* value.
272
264
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
273
265
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_ »).
276
267
</emu-alg >
277
268
</emu-clause >
278
269
@@ -286,8 +277,7 @@ <h1>get Temporal.PlainDate.prototype.daysInYear</h1>
286
277
1. Let _temporalDate_ be the *this* value.
287
278
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
288
279
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_ »).
291
281
</emu-alg >
292
282
</emu-clause >
293
283
@@ -301,8 +291,7 @@ <h1>get Temporal.PlainDate.prototype.monthsInYear</h1>
301
291
1. Let _temporalDate_ be the *this* value.
302
292
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
303
293
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_ »).
306
295
</emu-alg >
307
296
</emu-clause >
308
297
@@ -316,8 +305,7 @@ <h1>get Temporal.PlainDate.prototype.inLeapYear</h1>
316
305
1. Let _temporalDate_ be the *this* value.
317
306
1. Perform ? RequireInternalSlot(_temporalDate_ , [[InitializedTemporalDate]]).
318
307
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_ »).
321
309
</emu-alg >
322
310
</emu-clause >
323
311
@@ -382,8 +370,7 @@ <h1>Temporal.PlainDate.prototype.add ( _temporalDurationLike_ [ , _options_ ] )<
382
370
1. Let _balanceResult_ be ? BalanceDuration(_duration_ .[[Days]], _duration_ .[[Hours]], _duration_ .[[Minutes]], _duration_ .[[Seconds]], _duration_ .[[Milliseconds]], _duration_ .[[Microseconds]], _duration_ .[[Nanoseconds]], *"days"* ).
383
371
1. Set _options_ to ? NormalizeOptionsObject(_options_ ).
384
372
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_ »).
387
374
</emu-alg >
388
375
</emu-clause >
389
376
@@ -402,8 +389,7 @@ <h1>Temporal.PlainDate.prototype.subtract ( _temporalDurationLike_ [ , _options_
402
389
1. Set _options_ to ? NormalizeOptionsObject(_options_ ).
403
390
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]]).
404
391
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_ »).
407
393
</emu-alg >
408
394
</emu-clause >
409
395
0 commit comments