1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-temporal.plainyearmonth.prototype.until
7 description: A number as calendar in a property bag is not accepted
11 const instance = new Temporal.PlainYearMonth(2019, 6);
20 for (const calendar of numbers) {
21 const arg = { year: 2019, monthCode: "M06", calendar };
24 () => instance.until(arg),
25 "Numbers cannot be used as a calendar"