diff options
Diffstat (limited to 'js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js')
-rw-r--r-- | js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js b/js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js new file mode 100644 index 0000000000..1c4765e9db --- /dev/null +++ b/js/src/tests/test262/intl402/Temporal/PlainMonthDay/from/fields-missing-properties.js @@ -0,0 +1,15 @@ +// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally +// Copyright (C) 2023 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: > + Basic tests for PlainMonthDay.from(object) with missing properties for non-ISO + calendars +features: [Temporal] +---*/ + +assert.throws(TypeError, () => Temporal.PlainMonthDay.from({ month: 11, day: 18, calendar: "gregory" }), "month, day with non-iso8601 calendar"); + +reportCompare(0, 0); |