blob: b7b27961c2eb742951e3c7767bedf8cbef165443 [file] [log] [blame]
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.plainyearmonth.prototype.with
description: Objects of a subclass are never created as return values for with()
includes: [temporalHelpers.js]
features: [Temporal]
---*/
TemporalHelpers.checkSubclassingIgnored(
Temporal.PlainYearMonth,
[2000, 5],
"with",
[{ month: 11 }],
(result) => TemporalHelpers.assertPlainYearMonth(result, 2000, 11, "M11"),
);