blob: 3b883232b81088c338e44c744571ba0f3b2694f6 [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.plainyearmonth.prototype.with
description: TypeError thrown when argument doesn't contain any of the supported properties
features: [Temporal]
---*/
const ym = Temporal.PlainYearMonth.from("2019-10");
assert.throws(TypeError, () => ym.with({}), "No properties");
assert.throws(TypeError, () => ym.with({ months: 12 }), "Only plural 'months' property");