Skip to content

Commit 53f0834

Browse files
committed
order of operations
1 parent 2bdca83 commit 53f0834

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/builtins/core/plain_year_month.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ impl PlainYearMonth {
194194
// 4. Let durationToAdd be internalDuration.[[Date]].
195195
let duration_to_add = internal_duration.date();
196196

197-
// 5. If durationToAdd.[[Weeks]] ≠ 0, or durationToAdd.[[Days]] ≠ 0, or internalDuration.[[Time]] ≠ 0,
197+
// NOTE: The following are engine specific:
198+
// SKIP: 5. Let resolvedOptions be ? GetOptionsObject(options).
199+
// SKIP: 6. Let overflow be ? GetTemporalOverflowOption(resolvedOptions).
200+
201+
// 7. If durationToAdd.[[Weeks]] ≠ 0, or durationToAdd.[[Days]] ≠ 0, or internalDuration.[[Time]] ≠ 0,
198202
// throw a RangeError exception.
199203

200204
if duration_to_add.weeks != 0
@@ -205,10 +209,6 @@ impl PlainYearMonth {
205209
.with_message("Can only add years or months to PlainYearMonth."));
206210
}
207211

208-
// NOTE: The following are engine specific:
209-
// SKIP: 6. Let resolvedOptions be ? GetOptionsObject(options).
210-
// SKIP: 7. Let overflow be ? GetTemporalOverflowOption(resolvedOptions).
211-
212212
// 8. Let calendar be yearMonth.[[Calendar]].
213213
let calendar = self.calendar();
214214

0 commit comments

Comments
 (0)