test262/test/built-ins/Date/length.js

26 lines
707 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright (C) 2024 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-properties-of-the-date-constructor
description: >
Date.length is 7.
info: |
Properties of the Date Constructor
The Date constructor has a "length" property whose value is 7𝔽.
17 ECMAScript Standard Built-in Objects:
Unless otherwise specified, the "length" property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
verifyProperty(Date, "length", {
value: 7,
writable: false,
enumerable: false,
configurable: true,
});