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: Fix ambiguities and type mismatches in Function.prototype.toString #2828

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

This extracts the editorial fixes of #2695 and will serve as a rebase target for it.

spec.html Outdated
Comment on lines 30126 to 30129
`function` NativeFunctionName `(` FormalParameters[~Yield, ~Await] `)` `{` `[` `native` `code` `]` `}`

NativeFunctionName :
[empty]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`function` NativeFunctionName `(` FormalParameters[~Yield, ~Await] `)` `{` `[` `native` `code` `]` `}`
NativeFunctionName :
[empty]
`function` NativeFunctionName? `(` FormalParameters[~Yield, ~Await] `)` `{` `[` `native` `code` `]` `}`
NativeFunctionName :

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't believe that would be compatible with "the portion of sourceText corresponding to |NativeFunctionName| must be StringToCodePoints(func.[[InitialName]])" (because "the portion of sourceText corresponding to |NativeFunctionName|" is an incoherent concept when |NativeFunctionName| is absent). This is one of the problems with the current text that I am attempting to fix.

@michaelficarra michaelficarra added the editor call to be discussed in the next editor call label Jul 15, 2022
@michaelficarra michaelficarra removed the editor call to be discussed in the next editor call label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants