Skip to content

Conversation

@michaelficarra
Copy link
Member

Fixes #3627 according to the conclusion from last week's editor call.

Copy link
Contributor

@arai-a arai-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing this!

The change itself looks good, but I think there's some room for the consistency between other sections.

spec.html Outdated
<li>has a *"length"* property whose value is *1*<sub>𝔽</sub>.</li>
<li>has the following additional properties:</li>
</ul>
<p>The Object constructor has a [[Prototype]] internal slot whose value is %Function.prototype%. It also has the following properties:</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are multiple sections which still uses the "ul" listing even with 2 items

and also I don't see any existing paragraph that uses the new style.

So I think it's better keeping the "ul" listing style, with the length bullet removed, for the consistency.

Copy link
Member Author

@michaelficarra michaelficarra Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the benefit of this kind of consistency. I think it's awkward to use a bulleted list to describe just 2 aspects of something, especially when they are as terse as this. I'd prefer to change the existing cases to use phrasing like what I've introduced here, and I also don't think that work would block landing this in its current form because, again, that kind of consistency isn't necessary. I'll open an issue.

edit: #3684

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, makes sense.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the benefit of this kind of consistency.

One benefit is easier automated processing + checking.

E.g., the "WebIDL in ES" effort wants "to produce a representation of ECMAScript built-ins that could be automatically generated from the ECMAScript specification HTML file", and these <ul> elements appear to be relevant to that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think it can help human readers. If you want certain kinds of info about an intrinsic object, you can look for a <p>+<ul> combo of a certain 'shape'.

@michaelficarra michaelficarra added the editor call to be discussed in the next editor call label Aug 31, 2025
@bakkot bakkot removed the editor call to be discussed in the next editor call label Sep 29, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

The rendered spec for this PR is available at https://tc39.es/ecma262/pr/3682.

@michaelficarra michaelficarra requested a review from bakkot December 9, 2025 20:53
@michaelficarra
Copy link
Member Author

Reverted back to the list format for now, until we make a more holistic change. Should be good to go.

@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Dec 9, 2025
@ljharb ljharb force-pushed the object-mandatory-param branch from d213786 to 594e44e Compare December 10, 2025 05:33
@ljharb ljharb merged commit 594e44e into main Dec 10, 2025
9 checks passed
@ljharb ljharb deleted the object-mandatory-param branch December 10, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop the explicit function length and always use the implicit function length

6 participants