blob: 8ce45d426b41a49e618b25ee691d5164a2095b67 [file] [log] [blame]
// 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.plaindate.prototype.add
description: Constrains with overflow constrain
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const jan31 = Temporal.PlainDate.from("2020-01-31");
TemporalHelpers.assertPlainDate(jan31.add({ months: 1 }, { overflow: "constrain" }),
2020, 2, "M02", 29);