Skip to content

Don't parse parenthesized string as directive#3220

Merged
sebmck merged 2 commits intobabel:masterfrom
jmm:not-a-directive
Dec 31, 2015
Merged

Don't parse parenthesized string as directive#3220
sebmck merged 2 commits intobabel:masterfrom
jmm:not-a-directive

Conversation

@jmm
Copy link
Member

@jmm jmm commented Dec 28, 2015

Copy link
Member Author

Choose a reason for hiding this comment

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

I assume there's no need to guard against non-existence of extra here ((stmt.expression.extra && ! stmt.expression.extra.parenthesized)).

Copy link
Contributor

Choose a reason for hiding this comment

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

Tests all pass so should be good.

@codecov-io
Copy link

Current coverage is 84.91%

Merging #3220 into master will decrease coverage by -0.27% as of 424d059

@@            master   #3220   diff @@
======================================
  Files          215     215       
  Stmts        15653   15653       
  Branches      3353    3353       
  Methods          0       0       
======================================
- Hit          13334   13291    -43
- Partial        675     718    +43
  Missed        1644    1644       

Review entire Coverage Diff as of 424d059

Powered by Codecov. Updated on successful CI builds.

@jmm jmm added the PR: Spec Compliance 👓 A type of pull request used for our changelog categories label Dec 29, 2015
sebmck added a commit that referenced this pull request Dec 31, 2015
Don't parse parenthesized string as directive
@sebmck sebmck merged commit 2ec842d into babel:master Dec 31, 2015
@jmm jmm deleted the not-a-directive branch January 19, 2016 22:18
@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: 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.

3 participants