test262/test/built-ins/Temporal/PlainMonthDay/from/argument-propertybag-calend...

16 lines
501 B
JavaScript
Raw Normal View History

2022-09-07 10:30:00 +02:00
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
2022-09-13 20:21:30 +02:00
esid: sec-temporal.plainmonthday.from
2022-09-07 10:30:00 +02:00
description: The calendar name is case-insensitive
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const calendar = "IsO8601";
const arg = { monthCode: "M11", day: 18, calendar };
const result = Temporal.PlainMonthDay.from(arg);
TemporalHelpers.assertPlainMonthDay(result, "M11", 18, "Calendar is case-insensitive");