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

Account for template literals revision #5523

Merged
merged 4 commits into from Mar 22, 2017

Conversation

Projects
None yet
7 participants
@hzoo
Member

hzoo commented Mar 22, 2017

Input

tag`\unicode and \u{55}`;

Output

function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var _templateObject = _taggedTemplateLiteral([], ["\\unicode and \\u{55}"]);
tag(_templateObject);

Fixes #4798

  • need to add more tests
  • also release a version of babylon that removes the need for the plugin since it's stage 4

cc @bakkot @TimothyGu

@hzoo hzoo added this to the Babel 7 milestone Mar 22, 2017

@codecov

This comment has been minimized.

Show comment
Hide comment
@codecov

codecov bot Mar 22, 2017

Codecov Report

Merging #5523 into 7.0 will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              7.0    #5523      +/-   ##
==========================================
+ Coverage   85.38%   85.39%   +<.01%     
==========================================
  Files         200      200              
  Lines        9492     9495       +3     
  Branches     2696     2698       +2     
==========================================
+ Hits         8105     8108       +3     
  Misses        889      889              
  Partials      498      498
Impacted Files Coverage Δ
...in-transform-es2015-template-literals/src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 492ee95...b7aa909. Read the comment docs.

codecov bot commented Mar 22, 2017

Codecov Report

Merging #5523 into 7.0 will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              7.0    #5523      +/-   ##
==========================================
+ Coverage   85.38%   85.39%   +<.01%     
==========================================
  Files         200      200              
  Lines        9492     9495       +3     
  Branches     2696     2698       +2     
==========================================
+ Hits         8105     8108       +3     
  Misses        889      889              
  Partials      498      498
Impacted Files Coverage Δ
...in-transform-es2015-template-literals/src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 492ee95...b7aa909. Read the comment docs.

@hzoo

This comment has been minimized.

Show comment
Hide comment
@hzoo

hzoo Mar 22, 2017

Member

changed to use path.scope.buildUndefinedNode() (although hasBinding has issues)

also added tests for spec/loose mode (no differences really)

Member

hzoo commented Mar 22, 2017

changed to use path.scope.buildUndefinedNode() (although hasBinding has issues)

also added tests for spec/loose mode (no differences really)

@hzoo hzoo merged commit b638c8b into 7.0 Mar 22, 2017

2 of 3 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@hzoo

This comment has been minimized.

Show comment
Hide comment
@hzoo

hzoo Mar 22, 2017

Member

btw @bakkot do you want to be a collaborator? (messaged you on slack)

Member

hzoo commented Mar 22, 2017

btw @bakkot do you want to be a collaborator? (messaged you on slack)

@hzoo hzoo deleted the template-literals-revision branch Mar 22, 2017

@ljharb

This comment has been minimized.

Show comment
Hide comment
@ljharb

ljharb May 8, 2017

Any chance this could be backported to v6?

ljharb commented May 8, 2017

Any chance this could be backported to v6?

@xtuc

This comment has been minimized.

Show comment
Hide comment
@xtuc

xtuc May 9, 2017

Member

Yes this is a bug fix but also a breaking changes for people relying on this (don't want to know why 😄), it also require Babylon to backport it.

I don't think we want to land this on 6.

Member

xtuc commented May 9, 2017

Yes this is a bug fix but also a breaking changes for people relying on this (don't want to know why 😄), it also require Babylon to backport it.

I don't think we want to land this on 6.

@ljharb

This comment has been minimized.

Show comment
Hide comment
@ljharb

ljharb May 9, 2017

Relying on a tagged template literal throwing?

ljharb commented May 9, 2017

Relying on a tagged template literal throwing?

@loganfsmyth

This comment has been minimized.

Show comment
Hide comment
@loganfsmyth

loganfsmyth May 9, 2017

Member

I think this+babylon seems backportable. Probably a good issue to file as a help-wanted?

Member

loganfsmyth commented May 9, 2017

I think this+babylon seems backportable. Probably a good issue to file as a help-wanted?

@xtuc

This comment has been minimized.

Show comment
Hide comment
@xtuc

xtuc May 9, 2017

Member

As discussed on Slack, i'm fine landing this in 6.

Member

xtuc commented May 9, 2017

As discussed on Slack, i'm fine landing this in 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment