mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +02:00
This commit is contained in:
parent
b7822bb0b8
commit
45f352d37b
14
test/intl402/Temporal/PlainYearMonth/prototype/with/minimum-valid-year-month.js
vendored
Normal file
14
test/intl402/Temporal/PlainYearMonth/prototype/with/minimum-valid-year-month.js
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-temporal.plainyearmonth.prototype.with
|
||||||
|
description: Can set the minimum valid year-month for non-ISO8601 calendars.
|
||||||
|
includes: [temporalHelpers.js]
|
||||||
|
features: [Temporal]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
const apr2000 = new Temporal.PlainYearMonth(2000, 4, "gregory");
|
||||||
|
|
||||||
|
TemporalHelpers.assertPlainYearMonth(apr2000.with({year: -271821}),
|
||||||
|
-271821, 4, "M04", "", "gregory-inverse", 271822);
|
Loading…
x
Reference in New Issue
Block a user