mirror of https://github.com/tc39/test262.git
27 lines
616 B
JavaScript
27 lines
616 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-objects
|
||
|
description: Temporal has own property names
|
||
|
includes: [arrayContains.js]
|
||
|
features: [Temporal]
|
||
|
---*/
|
||
|
|
||
|
const expected = [
|
||
|
"Instant",
|
||
|
"TimeZone",
|
||
|
"PlainDate",
|
||
|
"PlainTime",
|
||
|
"PlainDateTime",
|
||
|
"ZonedDateTime",
|
||
|
"PlainYearMonth",
|
||
|
"PlainMonthDay",
|
||
|
"Duration",
|
||
|
"Calendar",
|
||
|
"Now",
|
||
|
];
|
||
|
const keys = Object.getOwnPropertyNames(Temporal);
|
||
|
assert.sameValue(keys.length, expected.length, "length");
|
||
|
assert(arrayContains(keys, expected), "contents");
|