islamic.js (642B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2025 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.zoneddatetime.prototype.from 7 description: islamic calendar name is not supported 8 features: [Temporal, Intl.Era-monthcode] 9 ---*/ 10 11 const calendar = "islamic"; 12 13 assert.throws(RangeError, () => 14 Temporal.ZonedDateTime.from({year: 1500, month: 1, day: 1, calendar}), 15 "fallback for calendar ID 'islamic' only supported in Intl.DateTimeFormat constructor, not Temporal" 16 ); 17 18 reportCompare(0, 0);