blob: 33a31aeef81627d10eb6800aad2f4b6045eaa639 [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.plaindatetime.prototype.withplaindate
description: Objects of a subclass are never created as return values.
includes: [temporalHelpers.js]
features: [Temporal]
---*/
TemporalHelpers.checkSubclassingIgnored(
Temporal.PlainDateTime,
[2000, 5, 2, 12, 34, 56, 987, 654, 321],
"withPlainDate",
["1999-04-27"],
(result) => TemporalHelpers.assertPlainDateTime(result, 1999, 4, "M04", 27, 12, 34, 56, 987, 654, 321),
);