blob: b454ed12ddddc941976f813dd07c79f7cf5a327f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
// 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: String calendar argument
features: [Temporal]
---*/
const date = Temporal.Now.plainDate("gregory");
assert(date instanceof Temporal.PlainDate);
assert.sameValue(date.calendarId, "gregory");
reportCompare(0, 0);
|