bublejs / bublejs/buble

double parentheses on template strings

Open
#201 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
874
Forks
62
PR merge metrics
No merged PRs in 30d

Description

I am getting a double parentheses when using template strings.

The following is just a dummy example...

```javascript
function logInvalid(obj) {
console.log(`${obj} is not valid.`);
}
```
gets compile to...
```javascript
function logInvalid(obj) {
console.log((obj + " is not valid."));
}
```
I am not sure that's the intended behavior.

see the life example [here](https://buble.surge.sh/#function%20logInvalid(obj)%20%7B%0A%20%20console.log(%60%24%7Bobj%7D%20is%20not%20valid.%60)%3B%0A%7D)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.