bublejs / bublejs/buble

no semi style bug

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

Description

Input:

```js
const oneObj = {
arr: []
}
oneObj.arr.push(...[1,2,3])
```

Output:

```js
var ref;
var oneObj = {
arr: []
}
(ref = oneObj.arr).push.apply(ref, [1,2,3])
```

Should be:

```js
var ref;
var oneObj = {
arr: []
}; // <--
(ref = oneObj.arr).push.apply(ref, [1,2,3])
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the provided JavaScript input through Buble and compare the generated output with the expected output. Trace the transformation responsible for converting the object and spread call, then verify that the generated object assignment receives the missing semicolon without changing the surrounding output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.