-
Notifications
You must be signed in to change notification settings - Fork 166
Specifcation of property descriptors of Temporal.___ is missing #1978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What about the attributes of static methods on Temporal types? |
Those should have a default, like the static methods on Array and Promise etc. |
@ljharb - Could you clarify what you mean by "default"? Are you saying that there's already a default property descriptor in the 262 spec for builtin objects' static methods, and Temporal objects should use it unless noted otherwise? Or are you saying that the Temporal spec should include a default descriptor somewhere that should apply to all static methods? Or do you mean something else? |
The former. See https://tc39.es/ecma262/#sec-ecmascript-standard-built-in-objects:
|
@ljharb would you say this issue can be closed no change, then? |
Yes. |
In Section 1.2, Constructor Properties of the Temporal Object, we refer to other sections to describe the value of properties such as Temporal.Instant. However, we never specify what attributes those properties should have.
I believe it would be usual for these properties to have the attributes [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true, and there are already test262 tests that assume this.
I'm not sure whether this would be an editorial change since it is fixing an omission in the spec, or a normative change because implementations might already have made their own decision. Due to the presence of the test262 test it's probably unlikely that implementations decided something different.
The text was updated successfully, but these errors were encountered: