blob: c8f7a601d7c63f8c190d3f5e7779d94397161b33 [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.calendar.from
description: from() throws if the argument is not a built-in calendar name.
features: [Temporal]
---*/
const tests = [
"local",
"iso-8601",
"[u-ca=iso8601]",
"invalid-calendar",
];
for (const item of tests) {
assert.throws(RangeError, () => Temporal.Calendar.from(item));
}