mirror of https://github.com/tc39/test262.git
12 lines
406 B
JavaScript
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");
|