2021-09-29 21:48:22 +02:00
|
|
|
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-temporal.plainyearmonth
|
|
|
|
description: Calendar argument defaults to the built-in ISO 8601 calendar
|
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
const args = [2000, 5];
|
|
|
|
|
|
|
|
const dateExplicit = new Temporal.PlainYearMonth(...args, undefined);
|
2023-02-17 21:28:55 +01:00
|
|
|
assert.sameValue(dateExplicit.calendarId, "iso8601");
|
2021-09-29 21:48:22 +02:00
|
|
|
|
|
|
|
const dateImplicit = new Temporal.PlainYearMonth(...args);
|
2023-02-17 21:28:55 +01:00
|
|
|
assert.sameValue(dateImplicit.calendarId, "iso8601");
|