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

Prohibit labelled class/generator/function declaration #1665

Closed
wants to merge 1 commit into from

Conversation

ariya
Copy link
Contributor

@ariya ariya commented Dec 10, 2016

The only allowed situation is labelled function declaration in non-strict mode
(for web compatibility reason).

Fix #1484

@ariya
Copy link
Contributor Author

ariya commented Dec 10, 2016

Please ignore the failing downstream test. It's is a false alarm, it's due to Assetgraph not working with the latest ESLint (see assetgraph/assetgraph#662 for more details).

@mikesherov
Copy link
Member

Super interesting set of tests. I learn more about JS reviewing these PRs then anywhere else. 👍

The only allowed situation is labelled function declaration in non-strict mode
(for web compatibility reason).

Fix jquery#1484
@codecov-io
Copy link

codecov-io commented Dec 11, 2016

Current coverage is 100% (diff: 100%)

Merging #1665 into master will not change coverage

@@           master   #1665   diff @@
=====================================
  Files           1       1          
  Lines        3955    3967    +12   
  Methods         0       0          
  Messages        0       0          
  Branches      682     686     +4   
=====================================
+ Hits         3955    3967    +12   
  Misses          0       0          
  Partials        0       0          

Powered by Codecov. Last update 9d9aadb...0fe20f9

@ariya ariya closed this in 84f394d Dec 11, 2016
@ariya ariya deleted the label-decl branch December 14, 2016 13:43
ariya added a commit to ariya/esprima that referenced this pull request Dec 16, 2016
The workaround is not necessary anymore (solved in AssetGraph itself).

Refs jquery#1665
ariya added a commit that referenced this pull request Dec 17, 2016
The workaround is not necessary anymore (solved in AssetGraph itself).

Refs #1665
Closes gh-1676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants