···11+// Copyright (C) 2021 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plainyearmonth.prototype.since
66+description: RangeError thrown if calendars' IDs do not match
77+features: [Temporal]
88+---*/
99+1010+const plainYearMonth1 = new Temporal.PlainYearMonth(2000, 1, "gregory", 1);
1111+const plainYearMonth2 = new Temporal.PlainYearMonth(2000, 1, "japanese", 1);
1212+assert.throws(RangeError, () => plainYearMonth1.since(plainYearMonth2));
···11+// Copyright (C) 2021 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plainyearmonth.prototype.until
66+description: RangeError thrown if calendars' IDs do not match
77+features: [Temporal]
88+---*/
99+1010+const plainYearMonth1 = new Temporal.PlainYearMonth(2000, 1, "gregory", 1);
1111+const plainYearMonth2 = new Temporal.PlainYearMonth(2000, 1, "japanese", 1);
1212+assert.throws(RangeError, () => plainYearMonth1.until(plainYearMonth2));