Debian Codegraph @

js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2023 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-temporal.plainmonthday.from
7 description: >
8 Basic tests for PlainMonthDay.from(object) with missing properties for non-ISO
9 calendars
10 features: [Temporal]
11 ---*/
12
13 assert.throws(TypeError, () => Temporal.PlainMonthDay.from({ month: 11, day: 18, calendar: "gregory" }), "month, day with non-iso8601 calendar");
14
15 reportCompare(0, 0);