Skip to content
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

Editorial: document that functions are objects #3250

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Dec 28, 2023

The phrase "is an object" links to The Object Type, but if someone is clicking that link they probably want to know the answer to the question "are functions objects in this sense". The answer is yes, but to discern that from the current section you need to go down to between two tables in the Object Internal Methods and Internal Slots subsection and find the "Table 5 summarizes additional essential internal methods that are supported by objects that may be called as functions. A function object is an object that supports the [[Call]] internal method" bit.

This PR adds a paragraph pointing out that functions are objects to the introduction of the Object Type section, where it has some hope of being seen.

spec.html Show resolved Hide resolved
Copy link
Contributor

@syg syg left a comment

Choose a reason for hiding this comment

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

This seems useful, lgtm.

@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jan 17, 2024
@ljharb ljharb force-pushed the function-is-object branch from f8c7b21 to 17d66b5 Compare January 17, 2024 22:33
@ljharb ljharb merged commit 17d66b5 into main Jan 17, 2024
8 checks passed
@ljharb ljharb deleted the function-is-object branch January 17, 2024 22:38
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.

4 participants