Skip to content

Conversation

@sheetalkamat
Copy link
Member

Fixes #7122

return declareSymbolAndAddToSymbolTable(<Declaration>node, SymbolFlags.Function, SymbolFlags.FunctionExcludes);
if (inStrictMode) {
checkStrictModeFunctionDeclaration(node);
bindBlockScopedDeclaration(node, SymbolFlags.Function, SymbolFlags.FunctionExcludes);
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return?

@mhegazy
Copy link
Contributor

mhegazy commented Apr 11, 2016

can you add a test for renaming the block scoped function in ES6 output as well.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 11, 2016

👍

@sheetalkamat sheetalkamat merged commit dd49c28 into master Apr 11, 2016
@sheetalkamat sheetalkamat deleted the strictBlockScopeFunction branch April 11, 2016 23:48
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants