fields-missing-properties.js (574B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2023 Igalia, S.L. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-temporal.plainmonthday.from 7 description: > 8 Basic tests for PlainMonthDay.from(object) with missing properties for non-ISO 9 calendars 10 features: [Temporal] 11 ---*/ 12 13 assert.throws(TypeError, () => Temporal.PlainMonthDay.from({ month: 11, day: 18, calendar: "gregory" }), "month, day with non-iso8601 calendar"); 14 15 reportCompare(0, 0);