mirror of
https://github.com/tc39/test262.git
synced 2025-09-25 11:08:49 +02:00
Previously, "nested" calendar property bags were unwrapped up to one level. That is, this object: { calendar: { // ...Temporal.Calendar methods } } would not be considered to implement the Calendar protocol, but would have its calendar property used instead, if it were passed to an API that required a Calendar protocol object. These nested property bags are no longer supported. Discussion: https://github.com/tc39/proposal-temporal/issues/2104#issuecomment-1409549753 Corresponding normative PR: https://github.com/tc39/proposal-temporal/pull/2485
16 lines
501 B
JavaScript
16 lines
501 B
JavaScript
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.plainmonthday.from
|
|
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");
|