1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-temporal.plaindatetime.prototype.weekofyear
8 Temporal.PlainDateTime.prototype.weekOfYear returns undefined for all
9 custom calendars where weekOfYear() returns undefined.
13 class CustomCalendar extends Temporal.Calendar {
22 const calendar = new CustomCalendar();
23 const customCalendarDate = new Temporal.PlainDateTime(2024, 1, 1, 12, 34, 56, 987, 654, 321, calendar);
24 assert.sameValue(customCalendarDate.weekOfYear, undefined);