summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Temporal/Now/plainDateISO/return-value.js
blob: 1431597fcdf53d6ed5764edae364673628e1a2f6 (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.plaindateiso
description: Functions when time zone argument is omitted
features: [Temporal]
---*/

const d = Temporal.Now.plainDateISO();
assert(d instanceof Temporal.PlainDate);
assert.sameValue(d.getISOFields().calendar, "iso8601", "calendar slot should store a string");

reportCompare(0, 0);