mirror of https://github.com/tc39/test262.git
12 lines
424 B
JavaScript
12 lines
424 B
JavaScript
// 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: Converting objects to Temporal.Calendar
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
assert.throws(RangeError, () => Temporal.Calendar.from({ calendar: "local" }));
|
|
assert.throws(RangeError, () => Temporal.Calendar.from({ calendar: { calendar: "iso8601" } }));
|