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.from
7 description: Negative zero, as an extended year, is rejected
8 features: [Temporal, arrow-function]
11 const invalidStrings = [
13 "-000000-10-31T17:45",
14 "-000000-10-31T17:45Z",
15 "-000000-10-31T17:45+01:00",
16 "-000000-10-31T17:45+00:00[UTC]",
19 invalidStrings.forEach((str) => {
20 const arg = { year: 1976, month: 11, day: 18, calendar: str };
23 () => Temporal.PlainYearMonth.from(arg),
24 "reject minus zero as extended year"