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

Ensure ~ operator converts to string #125

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pago
Copy link
Contributor

@pago pago commented Jun 25, 2019

Reference issue: #123

What changed in this PR:

Ensure that the binary concatenation operator (~) always produces a string value.
We do that by utilizing the string template syntax instead of the binary plus (+) operator
in the transpiled code.

To make the generated code more efficient and easier to read we'll also collapse
sibling template literals into a single.

pago added 2 commits June 25, 2019 08:06
Ensure that the binary concatenation operator (~) always produces a string value.
We do that by utilizing the string template syntax instead of the binary plus (+) operator
in the transpiled code.

To make the generated code more efficient and easier to read we'll also collapse
sibling template literals into a single.

fixes #123
@pago
Copy link
Contributor Author

pago commented Jun 25, 2019

@clivend could you take a look, please?

)
);
}
// path.replaceWithJS({
Copy link
Contributor

Choose a reason for hiding this comment

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

This can then be removed, right?

pago added 2 commits June 28, 2019 11:27
The correct Babel version includes spaces after { and before } when using template literal expressions.
@cpatti97100
Copy link

hey @pago sorry I rarely check github notifications. I see that there are new tests for this operator that cover different scenarios, we should be good to go here :)

@cpatti97100
Copy link

hallo this is still open right?

@ayusharma ayusharma removed their request for review June 17, 2020 18:40
@cpatti97100
Copy link

hallo all can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants