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

Remove ES2015 tests than do not parse in ES2016 #4501

Merged
merged 1 commit into from Sep 12, 2016
Merged

Remove ES2015 tests than do not parse in ES2016 #4501

merged 1 commit into from Sep 12, 2016

Conversation

TimothyGu
Copy link
Contributor

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? yes (ES2016)
Tests added/pass? yes
Fixed tickets babel/babylon#106
License MIT
Doc PR none

The test fragments contain code that are valid ES2015 programs, but not valid ES2016 ones (they were originally from Traceur, which does not fully support ES2016). To support the ES2016 semantics in Babylon (babel/babylon#106), these tests must be removed.

Specifically, per e.g. ECMA-262 7th Edition § 14.1.2:

It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false.

Similar clauses cover arrow functions, methods, and generator functions/methods, as well as async functions and async arrow functions.

These tests are originally from Traceur, which does not fully support
ES2016.

See babel/babylon#106 for a rationale why these code blocks are not
valid ES2016.
@codecov-io
Copy link

codecov-io commented Sep 11, 2016

Current coverage is 88.32% (diff: 100%)

Merging #4501 into master will not change coverage

@@             master      #4501   diff @@
==========================================
  Files           194        194          
  Lines         13609      13609          
  Methods        1426       1426          
  Messages          0          0          
  Branches       3145       3145          
==========================================
  Hits          12020      12020          
  Misses         1589       1589          
  Partials          0          0          

Powered by Codecov. Last update d2d34ba...bc58d75

@hzoo hzoo added PR: Spec Compliance 👓 A type of pull request used for our changelog categories PR: Internal 🏠 A type of pull request used for our changelog categories labels Sep 12, 2016
@hzoo
Copy link
Member

hzoo commented Sep 12, 2016

Thanks!

@hzoo hzoo merged commit 5249b9d into babel:master Sep 12, 2016
@TimothyGu TimothyGu deleted the es2016-tests branch September 12, 2016 02:00
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
These tests are originally from Traceur, which does not fully support
ES2016.

See babel/babylon#106 for a rationale why these code blocks are not
valid ES2016.
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories PR: Spec Compliance 👓 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants