test262/test/built-ins/Temporal/Now/plainDate/calendar-undefined.js

12 lines
406 B
JavaScript

// 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.now.plaindate
description: Throws when the calendar argument is undefined
features: [Temporal]
---*/
assert.throws(RangeError, () => Temporal.Now.plainDate(), "implicit");
assert.throws(RangeError, () => Temporal.Now.plainDate(undefined), "implicit");