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

Normative: Allow FiB to be redeclared in non-strict mode Annex B. #414

Closed
wants to merge 3 commits into from

Conversation

syg
Copy link
Contributor

@syg syg commented Feb 25, 2016

For #320. @littledan is co-championing (perhaps also reviewing?) this.

Note that this will most likely need to be rebased on top of #400.

@bterlson
Copy link
Member

Probably better to add this commit to #400. Easier to review together.

1. If the production is contained in strict mode code, then
1. Append to _names_ the elements of the TopLevelLexicallyDeclaredNames of |StatementListItem|.
1. Else,
1. If |StatementListItem| is <emu-grammar>StatementListItem : Declaration</emu-grammar> and |Declaration| is <emu-grammar>Declaration : HoistableDeclaration</emu-grammar> and |HoistableDeclaration| is <emu-grammar>HoistableDeclaration : FunctionDeclaration</emu-grammar> , then
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is possible to use the following abbreviation (just in case you want to shorten the if-condition).

If |StatementListItem| is <emu-grammar>StatementListItem : Declaration</emu-grammar> and DeclarationPart(|Declaration|) is |FunctionDeclaration|, then

@syg
Copy link
Contributor Author

syg commented Feb 25, 2016

@anba Thanks for the review. The early error language simplification is a good suggestion. I'll also take @bterlson's advice and rebase this on top of #400.

@syg
Copy link
Contributor Author

syg commented Feb 25, 2016

Closing this and folding it into #400.

@syg syg closed this Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants