islamic-rgsa.js (679B)
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.plaindatetime.prototype.from 7 description: islamic-rgsa calendar name is not supported 8 features: [Temporal, Intl.Era-monthcode] 9 ---*/ 10 11 const calendar = "islamic-rgsa"; 12 13 assert.throws(RangeError, () => 14 Temporal.PlainDateTime.from({year: 1500, month: 1, day: 1, hour: 12, minute: 34, calendar}), 15 "fallback for calendar ID 'islamic-rgsa' only supported in Intl.DateTimeFormat constructor, not Temporal" 16 ); 17 18 reportCompare(0, 0);