// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally // Copyright (C) 2025 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plaindate.from description: Months and days must be non-negative integers features: [Temporal] ---*/ assert.throws(RangeError, () => Temporal.PlainDate.from({ year: 2000, day: 1, month: -1 })); assert.throws(RangeError, () => Temporal.PlainDate.from({ year: 2000, month: 1, day: -1 })); reportCompare(0, 0);